ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Enumerations | Functions | Variables
devmgr::sensor Namespace Reference

Classes

class  Sensor
 The Sensor class. More...
 
struct  Channel
 
class  SensorConfig
 sensor Configuration class More...
 
struct  ChannelData
 The ChannelData struct. More...
 
struct  SensorControllerData
 
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
}
 
enum  { RPC_SUCCESS = 0, RPC_ERR_NOT_OP = -1, RPC_ERR_NOT_STANDBY_READY = -2, RPC_ERR_NOT_STANDBY_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
}
 
enum  { RPC_SUCCESS = 0, RPC_ERR_NOT_OP = -1, RPC_ERR_NOT_STANDBY_READY = -2, RPC_ERR_NOT_STANDBY_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
}
 
enum  { RPC_SUCCESS = 0, RPC_ERR_NOT_OP = -1, RPC_ERR_NOT_STANDBY_READY = -2, RPC_ERR_NOT_STANDBY_NOTREADY = -3 }
 

Functions

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

Variables

const std::string CI_CHANNELS = "channels"
 
const std::string CI_DESCRIPTION = "description"
 
const std::string CI_TYPE = "type"
 
const std::string CI_HEADER = "header"
 
const std::string CI_LOG = "log"
 
const std::string CI_UNIT = "unit"
 
const std::string CI_MAP = "map"
 
const short SUBSTATE_NOTREADY = 100
 
const short SUBSTATE_READY = 101
 
const short SUBSTATE_STANDBY_FAILURE = 102
 
const short SUBSTATE_OP_MONITORING = 200
 
const short SUBSTATE_OP_FAILURE = 201
 
const std::string SUBSTATE_NOTREADY_STR = "NotReady"
 
const std::string SUBSTATE_READY_STR = "Ready"
 
const std::string SUBSTATE_FAILURE_STR = "Failure"
 
const std::string SUBSTATE_OP_MONITORING_STR = "Monitoring"
 
const std::unordered_map
< short, std::string > 
SubstateMap
 
const std::string DI_TYPE_STR = "DI"
 
const std::string AI_TYPE_STR = "AI"
 
const std::string II_TYPE_STR = "II"
 
const std::string SI_TYPE_STR = "SI"
 
const std::string DI_CAT_STR = "diChannels"
 
const std::string AI_CAT_STR = "aiChannels"
 
const std::string II_CAT_STR = "iiChannels"
 
const std::string 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
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
Enumerator
RPC_SUCCESS 
RPC_ERR_NOT_OP 
RPC_ERR_NOT_STANDBY_READY 
RPC_ERR_NOT_STANDBY_NOTREADY 
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
Enumerator
RPC_SUCCESS 
RPC_ERR_NOT_OP 
RPC_ERR_NOT_STANDBY_READY 
RPC_ERR_NOT_STANDBY_NOTREADY 
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
Enumerator
RPC_SUCCESS 
RPC_ERR_NOT_OP 
RPC_ERR_NOT_STANDBY_READY 
RPC_ERR_NOT_STANDBY_NOTREADY 

Function Documentation

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

Variable Documentation

const std::string devmgr::sensor::AI_CAT_STR = "aiChannels"
const std::string devmgr::sensor::AI_TYPE_STR = "AI"
const std::vector< std::string > devmgr::sensor::cfgMapping
Initial value:
= {
}
const std::unordered_map< std::string, std::string > devmgr::sensor::ChannelTypeMap
Initial value:
= {
}
const std::string AI_CAT_STR
Definition: sensorConfig.hpp:72
const std::string II_TYPE_STR
Definition: sensorConfig.hpp:68
const std::string SI_CAT_STR
Definition: sensorConfig.hpp:74
const std::string SI_TYPE_STR
Definition: sensorConfig.hpp:69
const std::string DI_TYPE_STR
Definition: sensorConfig.hpp:66
const std::string DI_CAT_STR
Definition: sensorConfig.hpp:71
const std::string II_CAT_STR
Definition: sensorConfig.hpp:73
const std::string AI_TYPE_STR
Definition: sensorConfig.hpp:67
const std::string devmgr::sensor::CI_CHANNELS = "channels"
const std::string devmgr::sensor::CI_DESCRIPTION = "description"
const std::string devmgr::sensor::CI_HEADER = "header"
const std::string devmgr::sensor::CI_LOG = "log"
const std::string devmgr::sensor::CI_MAP = "map"
const std::string devmgr::sensor::CI_TYPE = "type"
const std::string devmgr::sensor::CI_UNIT = "unit"
const std::string devmgr::sensor::DI_CAT_STR = "diChannels"
const std::string devmgr::sensor::DI_TYPE_STR = "DI"
const std::unordered_map< short, std::string > devmgr::sensor::hw_errors
Initial value:
= {
{HW_ERR_HW_NOT_OP, "no in operational state"},
{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"},
}
Definition: lampHwErrors.hpp:21
Definition: sensorHwErrors.hpp:22
Definition: sensorHwErrors.hpp:26
Definition: lampHwErrors.hpp:22
Definition: sensorHwErrors.hpp:23
Definition: sensorHwErrors.hpp:25
const std::string devmgr::sensor::II_CAT_STR = "iiChannels"
const std::string devmgr::sensor::II_TYPE_STR = "II"
const std::unordered_map< short, std::string > devmgr::sensor::rpc_errors
Initial value:
= {
{RPC_ERR_NOT_OP, "Cannot disable Sensor. Not in OP state"},
{RPC_ERR_NOT_STANDBY_READY, "Cannot enable Sensor. Not in READY."},
{RPC_ERR_NOT_STANDBY_NOTREADY, "Cannot init Sensor. Not in NOTREADY or FAILURE."}
}
Definition: lampRpcErrors.hpp:23
Definition: lampRpcErrors.hpp:21
Definition: lampRpcErrors.hpp:22
const std::vector< std::string > devmgr::sensor::rpcMapping
Initial value:
= {
}
const std::string RPC_STOP
Definition: deviceConfig.hpp:45
const std::string RPC_DISABLE
Definition: deviceConfig.hpp:44
const std::string RPC_INIT
Definition: deviceConfig.hpp:42
const std::string RPC_RESET
Definition: deviceConfig.hpp:46
const std::string RPC_ENABLE
Definition: deviceConfig.hpp:43
const std::string devmgr::sensor::SI_CAT_STR = "siChannels"
const std::string devmgr::sensor::SI_TYPE_STR = "SI"
const std::vector< std::string > devmgr::sensor::statMapping
Initial value:
= {
}
const std::string CI_STAT_SUBSTATE
Definition: deviceConfig.hpp:49
const std::string CI_STAT_STATE
Definition: deviceConfig.hpp:50
const std::string devmgr::sensor::SUBSTATE_FAILURE_STR = "Failure"
const short devmgr::sensor::SUBSTATE_NOTREADY = 100
const std::string devmgr::sensor::SUBSTATE_NOTREADY_STR = "NotReady"
const short devmgr::sensor::SUBSTATE_OP_FAILURE = 201
const short devmgr::sensor::SUBSTATE_OP_MONITORING = 200
const std::string devmgr::sensor::SUBSTATE_OP_MONITORING_STR = "Monitoring"
const short devmgr::sensor::SUBSTATE_READY = 101
const std::string devmgr::sensor::SUBSTATE_READY_STR = "Ready"
const short devmgr::sensor::SUBSTATE_STANDBY_FAILURE = 102
const std::unordered_map< short, std::string > devmgr::sensor::SubstateMap
Initial value:
= {
}
const short SUBSTATE_OP_MONITORING
Definition: sensorConfig.hpp:49
const short SUBSTATE_STANDBY_FAILURE
Definition: lampConfig.hpp:56
const std::string SUBSTATE_OP_MONITORING_STR
Definition: sensorConfig.hpp:56
const short SUBSTATE_NOTREADY
Definition: deviceConfig.hpp:81
const short SUBSTATE_READY
Definition: deviceConfig.hpp:83
const std::string SUBSTATE_FAILURE_STR
Definition: lampConfig.hpp:71
const std::string SUBSTATE_READY_STR
Definition: deviceConfig.hpp:88
const short SUBSTATE_OP_FAILURE
Definition: lampConfig.hpp:65
const std::string SUBSTATE_NOTREADY_STR
Definition: deviceConfig.hpp:86