ifw-fcf 8.0.2
 
Loading...
Searching...
No Matches
ifw::fcf::devmgr::shutter Namespace Reference

Shutter class source file. More...

Classes

class  Shutter
 The Shutter 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_OP_READY = -2 , RPC_ERR_NOT_OP_NOTREADY = -3 ,
  RPC_ERR_STILL_OPENNING = -4 , RPC_ERR_STILL_CLOSING = -5 , RPC_ERR_LOCAL = -6
}
 

Functions

 REGISTER_DEVICE (Shutter)
 

Variables

constexpr auto LOGGER_NAME = "shutter"
 
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 > SUBSTATE_MAP
 
const std::unordered_map< short, std::string > HW_ERRORS
 
const std::unordered_map< short, std::string > RPC_ERRORS
 

Detailed Description

Shutter class source file.

ShutterLcsIf class source file.

LampRpcErrors header file.

ShutterLcsIf class header file.

ShutterHwErrors header file.

ShutterConfig class header file.

Enumeration Type Documentation

◆ anonymous enum

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

anonymous enum
Enumerator
RPC_SUCCESS 
RPC_ERR_NOT_OP 
RPC_ERR_NOT_OP_READY 
RPC_ERR_NOT_OP_NOTREADY 
RPC_ERR_STILL_OPENNING 
RPC_ERR_STILL_CLOSING 
RPC_ERR_LOCAL 

Function Documentation

◆ REGISTER_DEVICE()

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

Variable Documentation

◆ CI_ACTIVE_LOW_CLOSED

auto ifw::fcf::devmgr::shutter::CI_ACTIVE_LOW_CLOSED = "low_closed"
constexpr

◆ CI_ACTIVE_LOW_FAULT

auto ifw::fcf::devmgr::shutter::CI_ACTIVE_LOW_FAULT = "low_fault"
constexpr

◆ CI_ACTIVE_LOW_OPEN

auto ifw::fcf::devmgr::shutter::CI_ACTIVE_LOW_OPEN = "low_open"
constexpr

◆ CI_ACTIVE_LOW_SWITCH

auto ifw::fcf::devmgr::shutter::CI_ACTIVE_LOW_SWITCH = "low_switch"
constexpr

◆ CI_IGNORE_CLOSED

auto ifw::fcf::devmgr::shutter::CI_IGNORE_CLOSED = "ignore_closed"
constexpr

◆ CI_IGNORE_FAULT

auto ifw::fcf::devmgr::shutter::CI_IGNORE_FAULT = "ignore_fault"
constexpr

◆ CI_IGNORE_OPEN

auto ifw::fcf::devmgr::shutter::CI_IGNORE_OPEN = "ignore_open"
constexpr

◆ CI_INITIAL_STATE

auto ifw::fcf::devmgr::shutter::CI_INITIAL_STATE = "initial_state"
constexpr

◆ CI_TIMEOUT

auto ifw::fcf::devmgr::shutter::CI_TIMEOUT = "timeout"
constexpr

◆ DEFAULT_ACTIVE_LOW_CLOSE

bool ifw::fcf::devmgr::shutter::DEFAULT_ACTIVE_LOW_CLOSE = false
constexpr

◆ DEFAULT_ACTIVE_LOW_FAULT

bool ifw::fcf::devmgr::shutter::DEFAULT_ACTIVE_LOW_FAULT = false
constexpr

◆ DEFAULT_ACTIVE_LOW_OPEN

bool ifw::fcf::devmgr::shutter::DEFAULT_ACTIVE_LOW_OPEN = false
constexpr

◆ DEFAULT_ACTIVE_LOW_SWITCH

bool ifw::fcf::devmgr::shutter::DEFAULT_ACTIVE_LOW_SWITCH = false
constexpr

◆ DEFAULT_IGNORE_CLOSED

bool ifw::fcf::devmgr::shutter::DEFAULT_IGNORE_CLOSED = false
constexpr

◆ DEFAULT_IGNORE_FAULT

bool ifw::fcf::devmgr::shutter::DEFAULT_IGNORE_FAULT = false
constexpr

◆ DEFAULT_IGNORE_OPEN

bool ifw::fcf::devmgr::shutter::DEFAULT_IGNORE_OPEN = false
constexpr

◆ DEFAULT_INITIAL_STATE

bool ifw::fcf::devmgr::shutter::DEFAULT_INITIAL_STATE = false
constexpr

◆ DEFAULT_TIMEOUT

unsigned int ifw::fcf::devmgr::shutter::DEFAULT_TIMEOUT = 10000
constexpr

◆ HW_ERRORS

const std::unordered_map<short, std::string> ifw::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."}
}
@ HW_ERR_UNEXPECTED_CLOSED
Definition shutterHwErrors.hpp:20
@ HW_ERR_UNEXPECTED_OPENED
Definition shutterHwErrors.hpp:22
@ HW_ERR_FAULT_SIG
Definition shutterHwErrors.hpp:23
@ HW_ERR_TIMEOUT_ENABLE
Definition shutterHwErrors.hpp:25
@ HW_ERR_UNEXPECTED_NONE
Definition shutterHwErrors.hpp:21
@ HW_ERR_TIMEOUT_CLOSE
Definition shutterHwErrors.hpp:28
@ HW_ERR_BOTH_SIG_ACTIVE
Definition shutterHwErrors.hpp:24
@ HW_ERR_TIMEOUT_DISABLE
Definition shutterHwErrors.hpp:26
@ HW_ERR_HW_NOT_OP
Definition shutterHwErrors.hpp:18
@ HW_ERR_INIT_FAILURE
Definition shutterHwErrors.hpp:19
@ HW_ERR_TIMEOUT_INIT
Definition shutterHwErrors.hpp:27
@ HW_ERR_TIMEOUT_OPEN
Definition shutterHwErrors.hpp:29

◆ LOGGER_NAME

auto ifw::fcf::devmgr::shutter::LOGGER_NAME = "shutter"
constexpr

◆ RPC_CLOSE

auto ifw::fcf::devmgr::shutter::RPC_CLOSE = "rpcClose"
constexpr

◆ RPC_ERRORS

const std::unordered_map<short, std::string> ifw::fcf::devmgr::shutter::RPC_ERRORS
Initial value:
= {
{RPC_ERR_NOT_OP, "Cannot disable shutter. Not in OP state"},
{RPC_ERR_NOT_OP_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"},
}
@ RPC_ERR_LOCAL
Definition shutterRpcErrors.hpp:23
@ RPC_ERR_STILL_OPENNING
Definition shutterRpcErrors.hpp:21
@ RPC_ERR_NOT_OP
Definition shutterRpcErrors.hpp:18
@ RPC_ERR_STILL_CLOSING
Definition shutterRpcErrors.hpp:22
@ RPC_ERR_NOT_OP_READY
Definition shutterRpcErrors.hpp:19

◆ RPC_OPEN

auto ifw::fcf::devmgr::shutter::RPC_OPEN = "rpcOpen"
constexpr

◆ SUBSTATE_MAP

const std::unordered_map<short, std::string> ifw::fcf::devmgr::shutter::SUBSTATE_MAP
Initial value:
= {
}
constexpr int SUBSTATE_ERROR
Definition deviceConfig.hpp:97
constexpr int SUBSTATE_OP_DISABLING
Definition deviceConfig.hpp:104
constexpr auto SUBSTATE_INITIALISING_STR
Definition deviceConfig.hpp:100
constexpr auto SUBSTATE_ERROR_STR
Definition deviceConfig.hpp:102
constexpr int SUBSTATE_INITIALISING
Definition deviceConfig.hpp:96
constexpr auto SUBSTATE_NOTREADY_STR
Definition deviceConfig.hpp:99
constexpr auto SUBSTATE_OP_DISABLING_STR
Definition deviceConfig.hpp:107
constexpr int SUBSTATE_OP_ERROR
Definition deviceConfig.hpp:105
constexpr int SUBSTATE_NOTREADY
Definition deviceConfig.hpp:94
constexpr auto SUBSTATE_OP_ERROR_STR
Definition deviceConfig.hpp:108
constexpr short SUBSTATE_OP_CLOSE
Definition shutterConfig.hpp:54
constexpr short SUBSTATE_READY_CLOSE
Definition shutterConfig.hpp:52
constexpr auto SUBSTATE_READY_OPEN_STR
Definition shutterConfig.hpp:60
constexpr short SUBSTATE_OP_OPENING
Definition shutterConfig.hpp:57
constexpr short SUBSTATE_OP_CLOSING
Definition shutterConfig.hpp:55
constexpr auto SUBSTATE_OP_OPENING_STR
Definition shutterConfig.hpp:64
constexpr auto SUBSTATE_OP_CLOSING_STR
Definition shutterConfig.hpp:62
constexpr auto SUBSTATE_OP_OPEN_STR
Definition shutterConfig.hpp:63
constexpr auto SUBSTATE_READY_CLOSE_STR
Definition shutterConfig.hpp:59
constexpr short SUBSTATE_READY_OPEN
Definition shutterConfig.hpp:53
constexpr auto SUBSTATE_OP_CLOSE_STR
Definition shutterConfig.hpp:61
constexpr short SUBSTATE_OP_OPEN
Definition shutterConfig.hpp:56

◆ SUBSTATE_OP_CLOSE

short ifw::fcf::devmgr::shutter::SUBSTATE_OP_CLOSE = 212
constexpr

◆ SUBSTATE_OP_CLOSE_STR

auto ifw::fcf::devmgr::shutter::SUBSTATE_OP_CLOSE_STR = "Close"
constexpr

◆ SUBSTATE_OP_CLOSING

short ifw::fcf::devmgr::shutter::SUBSTATE_OP_CLOSING = 213
constexpr

◆ SUBSTATE_OP_CLOSING_STR

auto ifw::fcf::devmgr::shutter::SUBSTATE_OP_CLOSING_STR = "Closing"
constexpr

◆ SUBSTATE_OP_OPEN

short ifw::fcf::devmgr::shutter::SUBSTATE_OP_OPEN = 214
constexpr

◆ SUBSTATE_OP_OPEN_STR

auto ifw::fcf::devmgr::shutter::SUBSTATE_OP_OPEN_STR = "Open"
constexpr

◆ SUBSTATE_OP_OPENING

short ifw::fcf::devmgr::shutter::SUBSTATE_OP_OPENING = 215
constexpr

◆ SUBSTATE_OP_OPENING_STR

auto ifw::fcf::devmgr::shutter::SUBSTATE_OP_OPENING_STR = "Opening"
constexpr

◆ SUBSTATE_READY_CLOSE

short ifw::fcf::devmgr::shutter::SUBSTATE_READY_CLOSE = 105
constexpr

◆ SUBSTATE_READY_CLOSE_STR

auto ifw::fcf::devmgr::shutter::SUBSTATE_READY_CLOSE_STR = "Ready/Close"
constexpr

◆ SUBSTATE_READY_OPEN

short ifw::fcf::devmgr::shutter::SUBSTATE_READY_OPEN = 106
constexpr

◆ SUBSTATE_READY_OPEN_STR

auto ifw::fcf::devmgr::shutter::SUBSTATE_READY_OPEN_STR = "Ready/Open"
constexpr