ifw-fcf  3.0.0
Classes | Enumerations | Functions | Variables
fcf::devmgr::sensor Namespace Reference

Classes

struct  Channel
 
struct  ChannelData
 The ChannelData struct. More...
 
class  Sensor
 The Sensor class. More...
 
class  SensorConfig
 sensor Configuration class More...
 
struct  SensorControllerData
 The sensorControllerData struct. More...
 
class  SensorLcsIf
 Sensor Local Control System (LCS) Interface (IF) class. More...
 

Enumerations

enum  {
  HW_SUCCESS = 0, HW_ERR_HW_NOT_OP = 1, HW_ERR_WRONG_CMD = 2, HW_ERR_INCONSISTENT = 3,
  HW_ERR_INIT_FAILURE = 4, HW_ERR_ENABLE_FAILURE = 5, HW_ERR_DISABLE_FAILURE = 6, RPC_SUCCESS = 0,
  RPC_ERR_NOT_OP = -1, RPC_ERR_NOT_OP_READY = -2, RPC_ERR_NOT_OP_NOTREADY = -3
}
 
enum  {
  HW_SUCCESS = 0, HW_ERR_HW_NOT_OP = 1, HW_ERR_WRONG_CMD = 2, HW_ERR_INCONSISTENT = 3,
  HW_ERR_INIT_FAILURE = 4, HW_ERR_ENABLE_FAILURE = 5, HW_ERR_DISABLE_FAILURE = 6, RPC_SUCCESS = 0,
  RPC_ERR_NOT_OP = -1, RPC_ERR_NOT_OP_READY = -2, RPC_ERR_NOT_OP_NOTREADY = -3
}
 

Functions

 REGISTER_DEVICE (Sensor)
 
std::ostream & operator<< (std::ostream &dest, const ChannelData &obj)
 

Variables

constexpr auto CI_READONLY = "readonly"
 
constexpr auto CI_CHANNELS = "channels"
 
constexpr auto CI_DESCRIPTION = "description"
 
constexpr auto CI_ALIAS = "alias"
 
constexpr auto CI_TYPE = "type"
 
constexpr auto CI_HEADER = "header"
 
constexpr auto CI_LOG = "log"
 
constexpr auto CI_UNIT = "unit"
 
constexpr auto CI_MAP = "map"
 
constexpr int SUBSTATE_OP_MONITORING = 200
 
constexpr auto SUBSTATE_OP_MONITORING_STR = "Monitoring"
 
const std::unordered_map< short, std::string > SubstateMap
 
constexpr auto DI_TYPE_STR = "DI"
 
constexpr auto AI_TYPE_STR = "AI"
 
constexpr auto II_TYPE_STR = "II"
 
constexpr auto SI_TYPE_STR = "SI"
 
constexpr auto DI_CAT_STR = "diChannels"
 
constexpr auto AI_CAT_STR = "aiChannels"
 
constexpr auto II_CAT_STR = "iiChannels"
 
constexpr auto SI_CAT_STR = "siChannels"
 
const std::unordered_map< std::string, std::string > ChannelTypeMap
 
const std::vector< std::string > cfgMapping
 
const std::vector< std::string > statMapping
 
const std::vector< std::string > rpcMapping
 
const std::unordered_map< short, std::string > hw_errors
 
const std::unordered_map< short, std::string > rpc_errors
 

Enumeration Type Documentation

◆ anonymous enum [1/2]

anonymous enum
Enumerator
HW_SUCCESS 
HW_ERR_HW_NOT_OP 
HW_ERR_WRONG_CMD 
HW_ERR_INCONSISTENT 
HW_ERR_INIT_FAILURE 
HW_ERR_ENABLE_FAILURE 
HW_ERR_DISABLE_FAILURE 
RPC_SUCCESS 
RPC_ERR_NOT_OP 
RPC_ERR_NOT_OP_READY 
RPC_ERR_NOT_OP_NOTREADY 

◆ anonymous enum [2/2]

anonymous enum
Enumerator
HW_SUCCESS 
HW_ERR_HW_NOT_OP 
HW_ERR_WRONG_CMD 
HW_ERR_INCONSISTENT 
HW_ERR_INIT_FAILURE 
HW_ERR_ENABLE_FAILURE 
HW_ERR_DISABLE_FAILURE 
RPC_SUCCESS 
RPC_ERR_NOT_OP 
RPC_ERR_NOT_OP_READY 
RPC_ERR_NOT_OP_NOTREADY 

Function Documentation

◆ operator<<()

std::ostream& fcf::devmgr::sensor::operator<< ( std::ostream &  dest,
const ChannelData obj 
)

◆ REGISTER_DEVICE()

fcf::devmgr::sensor::REGISTER_DEVICE ( Sensor  )

Variable Documentation

◆ AI_CAT_STR

constexpr auto fcf::devmgr::sensor::AI_CAT_STR = "aiChannels"
constexpr

◆ AI_TYPE_STR

constexpr auto fcf::devmgr::sensor::AI_TYPE_STR = "AI"
constexpr

◆ cfgMapping

const std::vector<std::string> fcf::devmgr::sensor::cfgMapping
Initial value:
= {
}

◆ ChannelTypeMap

const std::unordered_map<std::string, std::string> fcf::devmgr::sensor::ChannelTypeMap

◆ CI_ALIAS

constexpr auto fcf::devmgr::sensor::CI_ALIAS = "alias"
constexpr

◆ CI_CHANNELS

constexpr auto fcf::devmgr::sensor::CI_CHANNELS = "channels"
constexpr

◆ CI_DESCRIPTION

constexpr auto fcf::devmgr::sensor::CI_DESCRIPTION = "description"
constexpr

◆ CI_HEADER

constexpr auto fcf::devmgr::sensor::CI_HEADER = "header"
constexpr

◆ CI_LOG

constexpr auto fcf::devmgr::sensor::CI_LOG = "log"
constexpr

◆ CI_MAP

constexpr auto fcf::devmgr::sensor::CI_MAP = "map"
constexpr

◆ CI_READONLY

constexpr auto fcf::devmgr::sensor::CI_READONLY = "readonly"
constexpr

◆ CI_TYPE

constexpr auto fcf::devmgr::sensor::CI_TYPE = "type"
constexpr

◆ CI_UNIT

constexpr auto fcf::devmgr::sensor::CI_UNIT = "unit"
constexpr

◆ DI_CAT_STR

constexpr auto fcf::devmgr::sensor::DI_CAT_STR = "diChannels"
constexpr

◆ DI_TYPE_STR

constexpr auto fcf::devmgr::sensor::DI_TYPE_STR = "DI"
constexpr

◆ hw_errors

const std::unordered_map<short, std::string> fcf::devmgr::sensor::hw_errors
Initial value:
= {
{HW_ERR_HW_NOT_OP, "TwinCAT not in OP state or CouplerState not mapped"},
{HW_ERR_WRONG_CMD, "unknown command"},
{HW_ERR_INCONSISTENT, "inconsistent hardware signals"},
{HW_ERR_INIT_FAILURE, "init failure"},
{HW_ERR_ENABLE_FAILURE, "enable failure"},
{HW_ERR_DISABLE_FAILURE, "disable failure"},
}

◆ II_CAT_STR

constexpr auto fcf::devmgr::sensor::II_CAT_STR = "iiChannels"
constexpr

◆ II_TYPE_STR

constexpr auto fcf::devmgr::sensor::II_TYPE_STR = "II"
constexpr

◆ rpc_errors

const std::unordered_map<short, std::string> fcf::devmgr::sensor::rpc_errors
Initial value:
= {
{RPC_ERR_NOT_OP, "Cannot disable Sensor. Not in OP state"},
{RPC_ERR_NOT_OP_READY, "Cannot enable Sensor. Not in READY."},
{RPC_ERR_NOT_OP_NOTREADY, "Cannot init Sensor. Not in NOTREADY or FAILURE."}
}

◆ rpcMapping

const std::vector<std::string> fcf::devmgr::sensor::rpcMapping

◆ SI_CAT_STR

constexpr auto fcf::devmgr::sensor::SI_CAT_STR = "siChannels"
constexpr

◆ SI_TYPE_STR

constexpr auto fcf::devmgr::sensor::SI_TYPE_STR = "SI"
constexpr

◆ statMapping

const std::vector<std::string> fcf::devmgr::sensor::statMapping

◆ SUBSTATE_OP_MONITORING

constexpr int fcf::devmgr::sensor::SUBSTATE_OP_MONITORING = 200
constexpr

◆ SUBSTATE_OP_MONITORING_STR

constexpr auto fcf::devmgr::sensor::SUBSTATE_OP_MONITORING_STR = "Monitoring"
constexpr

◆ SubstateMap

const std::unordered_map<short, std::string> fcf::devmgr::sensor::SubstateMap
fcf::devmgr::sensor::HW_ERR_ENABLE_FAILURE
@ HW_ERR_ENABLE_FAILURE
Definition: sensorHwErrors.hpp:24
fcf::devmgr::sensor::II_CAT_STR
constexpr auto II_CAT_STR
Definition: sensorConfig.hpp:63
fcf::devmgr::sensor::SUBSTATE_OP_MONITORING
constexpr int SUBSTATE_OP_MONITORING
Definition: sensorConfig.hpp:45
fcf::devmgr::sensor::RPC_ERR_NOT_OP_READY
@ RPC_ERR_NOT_OP_READY
Definition: sensorRpcErrors.hpp:21
fcf::devmgr::sensor::HW_ERR_WRONG_CMD
@ HW_ERR_WRONG_CMD
Definition: sensorHwErrors.hpp:21
fcf::devmgr::sensor::AI_TYPE_STR
constexpr auto AI_TYPE_STR
Definition: sensorConfig.hpp:57
fcf::devmgr::sensor::HW_ERR_HW_NOT_OP
@ HW_ERR_HW_NOT_OP
Definition: sensorHwErrors.hpp:20
fcf::devmgr::common::CI_STAT_STATE
constexpr auto CI_STAT_STATE
Definition: deviceConfig.hpp:51
fcf::devmgr::sensor::DI_CAT_STR
constexpr auto DI_CAT_STR
Definition: sensorConfig.hpp:61
fcf::devmgr::sensor::SI_TYPE_STR
constexpr auto SI_TYPE_STR
Definition: sensorConfig.hpp:59
fcf::devmgr::common::RPC_STOP
constexpr auto RPC_STOP
Definition: deviceConfig.hpp:46
fcf::devmgr::common::RPC_DISABLE
constexpr auto RPC_DISABLE
Definition: deviceConfig.hpp:45
fcf::devmgr::sensor::HW_ERR_DISABLE_FAILURE
@ HW_ERR_DISABLE_FAILURE
Definition: sensorHwErrors.hpp:25
fcf::devmgr::common::SUBSTATE_NOTREADY_STR
constexpr auto SUBSTATE_NOTREADY_STR
Definition: deviceConfig.hpp:87
fcf::devmgr::sensor::HW_ERR_INIT_FAILURE
@ HW_ERR_INIT_FAILURE
Definition: sensorHwErrors.hpp:23
fcf::devmgr::sensor::II_TYPE_STR
constexpr auto II_TYPE_STR
Definition: sensorConfig.hpp:58
fcf::devmgr::common::SUBSTATE_NOTREADY
constexpr int SUBSTATE_NOTREADY
Definition: deviceConfig.hpp:82
fcf::devmgr::sensor::DI_TYPE_STR
constexpr auto DI_TYPE_STR
Definition: sensorConfig.hpp:56
fcf::devmgr::sensor::SI_CAT_STR
constexpr auto SI_CAT_STR
Definition: sensorConfig.hpp:64
fcf::devmgr::sensor::HW_ERR_INCONSISTENT
@ HW_ERR_INCONSISTENT
Definition: sensorHwErrors.hpp:22
fcf::devmgr::sensor::RPC_ERR_NOT_OP_NOTREADY
@ RPC_ERR_NOT_OP_NOTREADY
Definition: sensorRpcErrors.hpp:22
fcf::devmgr::common::RPC_ENABLE
constexpr auto RPC_ENABLE
Definition: deviceConfig.hpp:44
fcf::devmgr::common::SUBSTATE_OP_ERROR
constexpr int SUBSTATE_OP_ERROR
Definition: deviceConfig.hpp:93
fcf::devmgr::sensor::SUBSTATE_OP_MONITORING_STR
constexpr auto SUBSTATE_OP_MONITORING_STR
Definition: sensorConfig.hpp:46
fcf::devmgr::sensor::RPC_ERR_NOT_OP
@ RPC_ERR_NOT_OP
Definition: sensorRpcErrors.hpp:20
fcf::devmgr::common::SUBSTATE_OP_ERROR_STR
constexpr auto SUBSTATE_OP_ERROR_STR
Definition: deviceConfig.hpp:96
fcf::devmgr::common::CI_STAT_SUBSTATE
constexpr auto CI_STAT_SUBSTATE
Definition: deviceConfig.hpp:50
fcf::devmgr::common::SUBSTATE_ERROR
constexpr int SUBSTATE_ERROR
Definition: deviceConfig.hpp:85
fcf::devmgr::common::RPC_INIT
constexpr auto RPC_INIT
Definition: deviceConfig.hpp:43
fcf::devmgr::sensor::AI_CAT_STR
constexpr auto AI_CAT_STR
Definition: sensorConfig.hpp:62
fcf::devmgr::common::SUBSTATE_READY_STR
constexpr auto SUBSTATE_READY_STR
Definition: deviceConfig.hpp:89
fcf::devmgr::common::SUBSTATE_READY
constexpr int SUBSTATE_READY
Definition: deviceConfig.hpp:83
fcf::devmgr::common::SUBSTATE_ERROR_STR
constexpr auto SUBSTATE_ERROR_STR
Definition: deviceConfig.hpp:90
fcf::devmgr::common::RPC_RESET
constexpr auto RPC_RESET
Definition: deviceConfig.hpp:47