ifw-fcf 7.1.4
Loading...
Searching...
No Matches
Classes | Enumerations | Functions | Variables
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

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

◆ CI_ACTIVE_LOW_FAULT

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

◆ CI_ACTIVE_LOW_OPEN

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

◆ CI_ACTIVE_LOW_SWITCH

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

◆ CI_IGNORE_CLOSED

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

◆ CI_IGNORE_FAULT

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

◆ CI_IGNORE_OPEN

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

◆ CI_INITIAL_STATE

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

◆ CI_TIMEOUT

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

◆ DEFAULT_ACTIVE_LOW_CLOSE

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

◆ DEFAULT_ACTIVE_LOW_FAULT

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

◆ DEFAULT_ACTIVE_LOW_OPEN

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

◆ DEFAULT_ACTIVE_LOW_SWITCH

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

◆ DEFAULT_IGNORE_CLOSED

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

◆ DEFAULT_IGNORE_FAULT

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

◆ DEFAULT_IGNORE_OPEN

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

◆ DEFAULT_INITIAL_STATE

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

◆ DEFAULT_TIMEOUT

constexpr 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_TIMEOUT_INIT
Definition lampHwErrors.hpp:26
@ HW_ERR_TIMEOUT_DISABLE
Definition lampHwErrors.hpp:25
@ HW_ERR_TIMEOUT_OPEN
Definition modulatorHwErrors.hpp:29
@ HW_ERR_TIMEOUT_ENABLE
Definition modulatorHwErrors.hpp:25
@ HW_ERR_TIMEOUT_CLOSE
Definition modulatorHwErrors.hpp:28
@ HW_ERR_BOTH_SIG_ACTIVE
Definition modulatorHwErrors.hpp:24

◆ LOGGER_NAME

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

◆ RPC_CLOSE

constexpr 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_OPEN

constexpr 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:
= {
{fcf::devmgr::common::SUBSTATE_NOTREADY, ifw::fcf::devmgr::common::SUBSTATE_NOTREADY_STR},
{fcf::devmgr::common::SUBSTATE_INITIALISING, ifw::fcf::devmgr::common::SUBSTATE_INITIALISING_STR},
{SUBSTATE_READY_CLOSE, SUBSTATE_READY_CLOSE_STR},
{SUBSTATE_READY_OPEN, SUBSTATE_READY_OPEN_STR},
{fcf::devmgr::common::SUBSTATE_ERROR, ifw::fcf::devmgr::common::SUBSTATE_ERROR_STR},
{fcf::devmgr::common::SUBSTATE_OP_DISABLING, ifw::fcf::devmgr::common::SUBSTATE_OP_DISABLING_STR},
{fcf::devmgr::common::SUBSTATE_OP_ERROR, ifw::fcf::devmgr::common::SUBSTATE_OP_ERROR_STR}
}
constexpr auto SUBSTATE_INITIALISING_STR
Definition deviceConfig.hpp:100
constexpr auto SUBSTATE_ERROR_STR
Definition deviceConfig.hpp:102
constexpr auto SUBSTATE_NOTREADY_STR
Definition deviceConfig.hpp:99
constexpr auto SUBSTATE_OP_DISABLING_STR
Definition deviceConfig.hpp:107
constexpr auto SUBSTATE_OP_ERROR_STR
Definition deviceConfig.hpp:108
constexpr short SUBSTATE_OP_CLOSE
Definition shutterConfig.hpp:54
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_OP_CLOSE_STR
Definition shutterConfig.hpp:61
constexpr short SUBSTATE_OP_OPEN
Definition shutterConfig.hpp:56

◆ SUBSTATE_OP_CLOSE

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

◆ SUBSTATE_OP_CLOSE_STR

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

◆ SUBSTATE_OP_CLOSING

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

◆ SUBSTATE_OP_CLOSING_STR

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

◆ SUBSTATE_OP_OPEN

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

◆ SUBSTATE_OP_OPEN_STR

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

◆ SUBSTATE_OP_OPENING

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

◆ SUBSTATE_OP_OPENING_STR

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

◆ SUBSTATE_READY_CLOSE

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

◆ SUBSTATE_READY_CLOSE_STR

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

◆ SUBSTATE_READY_OPEN

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

◆ SUBSTATE_READY_OPEN_STR

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