ifw-fcf  5.0.0-pre2
Classes | Enumerations | Functions | Variables
fcf::devmgr::iodev Namespace Reference

Classes

class  IODev
 The IODev class. More...
 
struct  IODevChannel
 
class  IODevConfig
 sensor Configuration class More...
 
struct  IODevData
 The ChannelData struct. More...
 
struct  IODevControllerData
 The IODevControllerData struct. More...
 
class  IODevLcsIf
 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
}
 
enum  { RPC_SUCCESS = 0 , RPC_ERR_NOT_OP = -1 , RPC_ERR_NOT_OP_READY = -2 , RPC_ERR_NOT_OP_NOTREADY = -3 }
 

Functions

 REGISTER_DEVICE (IODev)
 
std::ostream & operator<< (std::ostream &dest, const IODevData &obj)
 

Variables

constexpr auto LOGGER_NAME = "iodev"
 
constexpr auto CI_NO_RPC = "norpc"
 
constexpr auto CI_SENSOR = "sensor"
 
constexpr auto CI_CHANNELS = "channels"
 
constexpr auto CI_NAME = "name"
 
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 auto CI_VALUE = "value"
 
constexpr auto CI_NAMED_MAPPING = "named_values"
 
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 DO_TYPE_STR = "DO"
 
constexpr auto AO_TYPE_STR = "AO"
 
constexpr auto IO_TYPE_STR = "IO"
 
constexpr auto SO_TYPE_STR = "SO"
 
constexpr auto DI_CAT_STR = "diChannels"
 
constexpr auto AI_CAT_STR = "aiChannels"
 
constexpr auto II_CAT_STR = "iiChannels"
 
constexpr auto SI_CAT_STR = "siChannels"
 
constexpr auto DO_CAT_STR = "doChannels"
 
constexpr auto AO_CAT_STR = "aoChannels"
 
constexpr auto IO_CAT_STR = "ioChannels"
 
constexpr auto SO_CAT_STR = "soChannels"
 
constexpr auto RPC_SET_OUTPUTS = "rpcSetOutputs"
 
const std::unordered_map< std::string, std::string > IODevTypeMap
 
const std::unordered_map< short, std::string > hw_errors
 
const std::unordered_map< short, std::string > rpc_errors
 

Enumeration Type Documentation

◆ anonymous enum

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 

◆ anonymous enum

anonymous enum
Enumerator
RPC_SUCCESS 
RPC_ERR_NOT_OP 
RPC_ERR_NOT_OP_READY 
RPC_ERR_NOT_OP_NOTREADY 

Function Documentation

◆ operator<<()

std::ostream& fcf::devmgr::iodev::operator<< ( std::ostream &  dest,
const IODevData obj 
)

◆ REGISTER_DEVICE()

fcf::devmgr::iodev::REGISTER_DEVICE ( IODev  )

Variable Documentation

◆ AI_CAT_STR

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

◆ AI_TYPE_STR

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

◆ AO_CAT_STR

constexpr auto fcf::devmgr::iodev::AO_CAT_STR = "aoChannels"
constexpr

◆ AO_TYPE_STR

constexpr auto fcf::devmgr::iodev::AO_TYPE_STR = "AO"
constexpr

◆ CI_ALIAS

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

◆ CI_CHANNELS

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

◆ CI_DESCRIPTION

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

◆ CI_HEADER

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

◆ CI_LOG

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

◆ CI_MAP

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

◆ CI_NAME

constexpr auto fcf::devmgr::iodev::CI_NAME = "name"
constexpr

◆ CI_NAMED_MAPPING

constexpr auto fcf::devmgr::iodev::CI_NAMED_MAPPING = "named_values"
constexpr

◆ CI_NO_RPC

constexpr auto fcf::devmgr::iodev::CI_NO_RPC = "norpc"
constexpr

◆ CI_SENSOR

constexpr auto fcf::devmgr::iodev::CI_SENSOR = "sensor"
constexpr

◆ CI_TYPE

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

◆ CI_UNIT

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

◆ CI_VALUE

constexpr auto fcf::devmgr::iodev::CI_VALUE = "value"
constexpr

◆ DI_CAT_STR

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

◆ DI_TYPE_STR

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

◆ DO_CAT_STR

constexpr auto fcf::devmgr::iodev::DO_CAT_STR = "doChannels"
constexpr

◆ DO_TYPE_STR

constexpr auto fcf::devmgr::iodev::DO_TYPE_STR = "DO"
constexpr

◆ hw_errors

const std::unordered_map<short, std::string> fcf::devmgr::iodev::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"},
}
@ HW_ERR_DISABLE_FAILURE
Definition: iodevHwErrors.hpp:25
@ HW_ERR_INCONSISTENT
Definition: iodevHwErrors.hpp:22
@ HW_ERR_HW_NOT_OP
Definition: iodevHwErrors.hpp:20
@ HW_ERR_WRONG_CMD
Definition: iodevHwErrors.hpp:21
@ HW_ERR_ENABLE_FAILURE
Definition: iodevHwErrors.hpp:24
@ HW_ERR_INIT_FAILURE
Definition: iodevHwErrors.hpp:23

◆ II_CAT_STR

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

◆ II_TYPE_STR

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

◆ IO_CAT_STR

constexpr auto fcf::devmgr::iodev::IO_CAT_STR = "ioChannels"
constexpr

◆ IO_TYPE_STR

constexpr auto fcf::devmgr::iodev::IO_TYPE_STR = "IO"
constexpr

◆ IODevTypeMap

const std::unordered_map<std::string, std::string> fcf::devmgr::iodev::IODevTypeMap
Initial value:
= {
}
constexpr auto SI_CAT_STR
Definition: iodevConfig.hpp:73
constexpr auto DO_TYPE_STR
Definition: iodevConfig.hpp:65
constexpr auto IO_CAT_STR
Definition: iodevConfig.hpp:77
constexpr auto SO_CAT_STR
Definition: iodevConfig.hpp:78
constexpr auto SI_TYPE_STR
Definition: iodevConfig.hpp:63
constexpr auto II_TYPE_STR
Definition: iodevConfig.hpp:62
constexpr auto AO_CAT_STR
Definition: iodevConfig.hpp:76
constexpr auto AI_CAT_STR
Definition: iodevConfig.hpp:71
constexpr auto DI_CAT_STR
Definition: iodevConfig.hpp:70
constexpr auto IO_TYPE_STR
Definition: iodevConfig.hpp:67
constexpr auto SO_TYPE_STR
Definition: iodevConfig.hpp:68
constexpr auto AO_TYPE_STR
Definition: iodevConfig.hpp:66
constexpr auto DI_TYPE_STR
Definition: iodevConfig.hpp:60
constexpr auto DO_CAT_STR
Definition: iodevConfig.hpp:75
constexpr auto II_CAT_STR
Definition: iodevConfig.hpp:72
constexpr auto AI_TYPE_STR
Definition: iodevConfig.hpp:61

◆ LOGGER_NAME

constexpr auto fcf::devmgr::iodev::LOGGER_NAME = "iodev"
constexpr

◆ rpc_errors

const std::unordered_map<short, std::string> fcf::devmgr::iodev::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."}
}
@ RPC_ERR_NOT_OP_READY
Definition: iodevRpcErrors.hpp:21
@ RPC_ERR_NOT_OP
Definition: iodevRpcErrors.hpp:20
@ RPC_ERR_NOT_OP_NOTREADY
Definition: iodevRpcErrors.hpp:22

◆ RPC_SET_OUTPUTS

constexpr auto fcf::devmgr::iodev::RPC_SET_OUTPUTS = "rpcSetOutputs"
constexpr

◆ SI_CAT_STR

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

◆ SI_TYPE_STR

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

◆ SO_CAT_STR

constexpr auto fcf::devmgr::iodev::SO_CAT_STR = "soChannels"
constexpr

◆ SO_TYPE_STR

constexpr auto fcf::devmgr::iodev::SO_TYPE_STR = "SO"
constexpr

◆ SUBSTATE_OP_MONITORING

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

◆ SUBSTATE_OP_MONITORING_STR

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

◆ SubstateMap

const std::unordered_map<short, std::string> fcf::devmgr::iodev::SubstateMap
Initial value:
= {
}
constexpr int SUBSTATE_OP_ERROR
Definition: deviceConfig.hpp:108
constexpr int SUBSTATE_READY
Definition: deviceConfig.hpp:98
constexpr auto SUBSTATE_OP_ERROR_STR
Definition: deviceConfig.hpp:111
constexpr auto SUBSTATE_ERROR_STR
Definition: deviceConfig.hpp:105
constexpr int SUBSTATE_ERROR
Definition: deviceConfig.hpp:100
constexpr int SUBSTATE_NOTREADY
Definition: deviceConfig.hpp:97
constexpr auto SUBSTATE_NOTREADY_STR
Definition: deviceConfig.hpp:102
constexpr auto SUBSTATE_READY_STR
Definition: deviceConfig.hpp:104
constexpr int SUBSTATE_OP_MONITORING
Definition: iodevConfig.hpp:49
constexpr auto SUBSTATE_OP_MONITORING_STR
Definition: iodevConfig.hpp:50