ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Enumerations | Functions | Variables
fcf::devmgr::shutter Namespace Reference

Classes

class  Shutter
 The Shutter class. More...
 
class  ShutterConfig
 Shutter Configuration class. More...
 
struct  ShutterControllerData
 The ShutterControllerData struct. More...
 
class  ShutterLcsIf
 Shutter Local Control System (LCS) Interface (IF) class. More...
 

Enumerations

enum  {
  HW_SUCCESS = 0, HW_ERR_HW_NOT_OP = 1, HW_ERR_INIT_FAILURE = 2, HW_ERR_UNEXPECTED_CLOSED = 3,
  HW_ERR_UNEXPECTED_NONE = 4, HW_ERR_UNEXPECTED_OPENED = 5, HW_ERR_FAULT_SIG = 6, HW_ERR_BOTH_SIG_ACTIVE = 7,
  HW_ERR_TIMEOUT_ENABLE = 8, HW_ERR_TIMEOUT_DISABLE = 9, HW_ERR_TIMEOUT_INIT = 10, HW_ERR_TIMEOUT_CLOSE = 11,
  HW_ERR_TIMEOUT_OPEN = 12
}
 
enum  {
  RPC_SUCCESS = 0, RPC_ERR_NOT_OP = -1, RPC_ERR_NOT_STANDBY_READY = -2, RPC_ERR_NOT_STANDBY_NOTREADY = -3,
  RPC_ERR_STILL_OPENNING = -4, RPC_ERR_STILL_CLOSING = -5, RPC_ERR_LOCAL = -6
}
 

Functions

 REGISTER_DEVICE (Shutter)
 

Variables

constexpr auto CI_ACTIVE_LOW_CLOSED = "low_closed"
 
constexpr auto CI_ACTIVE_LOW_FAULT = "low_fault"
 
constexpr auto CI_ACTIVE_LOW_OPEN = "low_open"
 
constexpr auto CI_ACTIVE_LOW_SWITCH = "low_switch"
 
constexpr auto CI_IGNORE_CLOSED = "ignore_closed"
 
constexpr auto CI_IGNORE_FAULT = "ignore_fault"
 
constexpr auto CI_IGNORE_OPEN = "ignore_open"
 
constexpr auto CI_INITIAL_STATE = "initial_state"
 
constexpr auto CI_TIMEOUT = "timeout"
 
constexpr bool DEFAULT_ACTIVE_LOW_CLOSE = false
 
constexpr bool DEFAULT_ACTIVE_LOW_FAULT = false
 
constexpr bool DEFAULT_ACTIVE_LOW_OPEN = false
 
constexpr bool DEFAULT_ACTIVE_LOW_SWITCH = false
 
constexpr bool DEFAULT_IGNORE_CLOSED = false
 
constexpr bool DEFAULT_IGNORE_FAULT = false
 
constexpr bool DEFAULT_IGNORE_OPEN = false
 
constexpr bool DEFAULT_INITIAL_STATE = false
 
constexpr unsigned int DEFAULT_TIMEOUT = 10000
 
constexpr auto RPC_OPEN = "rpcOpen"
 
constexpr auto RPC_CLOSE = "rpcClose"
 
constexpr short SUBSTATE_READY_CLOSE = 105
 
constexpr short SUBSTATE_READY_OPEN = 106
 
constexpr short SUBSTATE_OP_CLOSE = 212
 
constexpr short SUBSTATE_OP_CLOSING = 213
 
constexpr short SUBSTATE_OP_OPEN = 214
 
constexpr short SUBSTATE_OP_OPENING = 215
 
constexpr auto SUBSTATE_READY_CLOSE_STR = "Ready/Close"
 
constexpr auto SUBSTATE_READY_OPEN_STR = "Ready/Open"
 
constexpr auto SUBSTATE_OP_CLOSE_STR = "Close"
 
constexpr auto SUBSTATE_OP_CLOSING_STR = "Closing"
 
constexpr auto SUBSTATE_OP_OPEN_STR = "Open"
 
constexpr auto SUBSTATE_OP_OPENING_STR = "Opening"
 
const std::unordered_map
< short, std::string > 
SubstateMap
 
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_INIT_FAILURE 
HW_ERR_UNEXPECTED_CLOSED 
HW_ERR_UNEXPECTED_NONE 
HW_ERR_UNEXPECTED_OPENED 
HW_ERR_FAULT_SIG 
HW_ERR_BOTH_SIG_ACTIVE 
HW_ERR_TIMEOUT_ENABLE 
HW_ERR_TIMEOUT_DISABLE 
HW_ERR_TIMEOUT_INIT 
HW_ERR_TIMEOUT_CLOSE 
HW_ERR_TIMEOUT_OPEN 
anonymous enum
Enumerator
RPC_SUCCESS 
RPC_ERR_NOT_OP 
RPC_ERR_NOT_STANDBY_READY 
RPC_ERR_NOT_STANDBY_NOTREADY 
RPC_ERR_STILL_OPENNING 
RPC_ERR_STILL_CLOSING 
RPC_ERR_LOCAL 

Function Documentation

fcf::devmgr::shutter::REGISTER_DEVICE ( Shutter  )

Variable Documentation

const std::vector<std::string> fcf::devmgr::shutter::cfgMapping
Initial value:
= {
}
constexpr auto CI_ACTIVE_LOW_OPEN
Definition: shutterConfig.hpp:31
constexpr auto CI_ACTIVE_LOW_FAULT
Definition: lampConfig.hpp:31
constexpr auto fcf::devmgr::shutter::CI_ACTIVE_LOW_CLOSED = "low_closed"
constexpr auto fcf::devmgr::shutter::CI_ACTIVE_LOW_FAULT = "low_fault"
constexpr auto fcf::devmgr::shutter::CI_ACTIVE_LOW_OPEN = "low_open"
constexpr auto fcf::devmgr::shutter::CI_ACTIVE_LOW_SWITCH = "low_switch"
constexpr auto fcf::devmgr::shutter::CI_IGNORE_CLOSED = "ignore_closed"
constexpr auto fcf::devmgr::shutter::CI_IGNORE_FAULT = "ignore_fault"
constexpr auto fcf::devmgr::shutter::CI_IGNORE_OPEN = "ignore_open"
constexpr auto fcf::devmgr::shutter::CI_INITIAL_STATE = "initial_state"
constexpr auto fcf::devmgr::shutter::CI_TIMEOUT = "timeout"
constexpr bool fcf::devmgr::shutter::DEFAULT_ACTIVE_LOW_CLOSE = false
constexpr bool fcf::devmgr::shutter::DEFAULT_ACTIVE_LOW_FAULT = false
constexpr bool fcf::devmgr::shutter::DEFAULT_ACTIVE_LOW_OPEN = false
constexpr bool fcf::devmgr::shutter::DEFAULT_ACTIVE_LOW_SWITCH = false
constexpr bool fcf::devmgr::shutter::DEFAULT_IGNORE_CLOSED = false
constexpr bool fcf::devmgr::shutter::DEFAULT_IGNORE_FAULT = false
constexpr bool fcf::devmgr::shutter::DEFAULT_IGNORE_OPEN = false
constexpr bool fcf::devmgr::shutter::DEFAULT_INITIAL_STATE = false
constexpr unsigned int fcf::devmgr::shutter::DEFAULT_TIMEOUT = 10000
const std::unordered_map<short, std::string> fcf::devmgr::shutter::hw_errors
Initial value:
= {
{HW_ERR_HW_NOT_OP, "TwinCAT not in OP state or CouplerState not mapped."},
{HW_ERR_INIT_FAILURE, "init failure."},
{HW_ERR_UNEXPECTED_CLOSED, "unexpectedly closed."},
{HW_ERR_UNEXPECTED_NONE, "unexpectedly no open or closed signal active."},
{HW_ERR_UNEXPECTED_OPENED , "unexpectedly opened."},
{HW_ERR_FAULT_SIG, "fault signal active."},
{HW_ERR_BOTH_SIG_ACTIVE, "both open and closed signals active."},
{HW_ERR_TIMEOUT_ENABLE, "enable timed out."},
{HW_ERR_TIMEOUT_DISABLE, "disable timed out."},
{HW_ERR_TIMEOUT_INIT, "init timed out."},
{HW_ERR_TIMEOUT_CLOSE, "close timed out."},
{HW_ERR_TIMEOUT_OPEN, "open timed out."}
}
Definition: shutterHwErrors.hpp:30
Definition: shutterHwErrors.hpp:22
Definition: lampHwErrors.hpp:27
Definition: actuatorHwErrors.hpp:24
Definition: shutterHwErrors.hpp:21
Definition: lampHwErrors.hpp:28
Definition: shutterHwErrors.hpp:26
Definition: shutterHwErrors.hpp:29
Definition: lampHwErrors.hpp:24
Definition: shutterHwErrors.hpp:23
Definition: shutterHwErrors.hpp:25
Definition: actuatorHwErrors.hpp:21
constexpr auto fcf::devmgr::shutter::RPC_CLOSE = "rpcClose"
const std::unordered_map<short, std::string> fcf::devmgr::shutter::rpc_errors
Initial value:
= {
{RPC_ERR_NOT_OP, "Cannot disable shutter. Not in OP state"},
{RPC_ERR_NOT_STANDBY_READY, "Cannot enable shutter. Not in READY or FAILURE."},
{RPC_ERR_STILL_OPENNING , "Not allowed to close the shutter while it is still openning"},
{RPC_ERR_STILL_CLOSING, "Not allowed to open the shutter while it is still closing"},
{RPC_ERR_LOCAL, "RPC calls are not allowed in Local mode"},
}
Definition: shutterRpcErrors.hpp:24
Definition: actuatorRpcErrors.hpp:22
Definition: actuatorRpcErrors.hpp:21
Definition: actuatorRpcErrors.hpp:26
Definition: shutterRpcErrors.hpp:23
constexpr auto fcf::devmgr::shutter::RPC_OPEN = "rpcOpen"
const std::vector<std::string> fcf::devmgr::shutter::rpcMapping
Initial value:
= {
}
constexpr auto RPC_INIT
Definition: deviceConfig.hpp:43
constexpr auto RPC_DISABLE
Definition: deviceConfig.hpp:45
constexpr auto RPC_CLOSE
Definition: shutterConfig.hpp:51
constexpr auto RPC_STOP
Definition: deviceConfig.hpp:46
constexpr auto RPC_RESET
Definition: deviceConfig.hpp:47
constexpr auto RPC_OPEN
Definition: shutterConfig.hpp:50
constexpr auto RPC_ENABLE
Definition: deviceConfig.hpp:44
const std::vector<std::string> fcf::devmgr::shutter::statMapping
Initial value:
= {
}
constexpr auto CI_STAT_LOCAL
Definition: deviceConfig.hpp:53
constexpr auto CI_STAT_SUBSTATE
Definition: deviceConfig.hpp:50
constexpr auto CI_STAT_STATE
Definition: deviceConfig.hpp:51
constexpr auto CI_STAT_ERROR_CODE
Definition: deviceConfig.hpp:54
constexpr short fcf::devmgr::shutter::SUBSTATE_OP_CLOSE = 212
constexpr auto fcf::devmgr::shutter::SUBSTATE_OP_CLOSE_STR = "Close"
constexpr short fcf::devmgr::shutter::SUBSTATE_OP_CLOSING = 213
constexpr auto fcf::devmgr::shutter::SUBSTATE_OP_CLOSING_STR = "Closing"
constexpr short fcf::devmgr::shutter::SUBSTATE_OP_OPEN = 214
constexpr auto fcf::devmgr::shutter::SUBSTATE_OP_OPEN_STR = "Open"
constexpr short fcf::devmgr::shutter::SUBSTATE_OP_OPENING = 215
constexpr auto fcf::devmgr::shutter::SUBSTATE_OP_OPENING_STR = "Opening"
constexpr short fcf::devmgr::shutter::SUBSTATE_READY_CLOSE = 105
constexpr auto fcf::devmgr::shutter::SUBSTATE_READY_CLOSE_STR = "Ready/Close"
constexpr short fcf::devmgr::shutter::SUBSTATE_READY_OPEN = 106
constexpr auto fcf::devmgr::shutter::SUBSTATE_READY_OPEN_STR = "Ready/Open"
const std::unordered_map<short, std::string> fcf::devmgr::shutter::SubstateMap
Initial value:
= {
}
constexpr auto SUBSTATE_OP_OPEN_STR
Definition: shutterConfig.hpp:66
constexpr int SUBSTATE_INITIALISING
Definition: deviceConfig.hpp:84
constexpr auto SUBSTATE_NOTREADY_STR
Definition: deviceConfig.hpp:87
constexpr short SUBSTATE_OP_OPENING
Definition: shutterConfig.hpp:60
constexpr auto SUBSTATE_OP_DISABLING_STR
Definition: deviceConfig.hpp:95
constexpr short SUBSTATE_OP_OPEN
Definition: shutterConfig.hpp:59
constexpr int SUBSTATE_OP_DISABLING
Definition: deviceConfig.hpp:92
constexpr auto SUBSTATE_OP_CLOSING_STR
Definition: shutterConfig.hpp:65
constexpr auto SUBSTATE_READY_CLOSE_STR
Definition: shutterConfig.hpp:62
constexpr short SUBSTATE_READY_CLOSE
Definition: shutterConfig.hpp:55
constexpr int SUBSTATE_NOTREADY
Definition: deviceConfig.hpp:82
constexpr auto SUBSTATE_OP_ERROR_STR
Definition: deviceConfig.hpp:96
constexpr auto SUBSTATE_INITIALISING_STR
Definition: deviceConfig.hpp:88
constexpr short SUBSTATE_OP_CLOSE
Definition: shutterConfig.hpp:57
constexpr int SUBSTATE_OP_ERROR
Definition: deviceConfig.hpp:93
constexpr auto SUBSTATE_READY_OPEN_STR
Definition: shutterConfig.hpp:63
constexpr int SUBSTATE_ERROR
Definition: deviceConfig.hpp:85
constexpr short SUBSTATE_OP_CLOSING
Definition: shutterConfig.hpp:58
constexpr auto SUBSTATE_OP_OPENING_STR
Definition: shutterConfig.hpp:67
constexpr short SUBSTATE_READY_OPEN
Definition: shutterConfig.hpp:56
constexpr auto SUBSTATE_ERROR_STR
Definition: deviceConfig.hpp:90
constexpr auto SUBSTATE_OP_CLOSE_STR
Definition: shutterConfig.hpp:64