ifw-fcf 6.0.0
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
fcf::devmgr Namespace Reference

Namespaces

namespace  actuator
 
namespace  adc
 
namespace  common
 
namespace  drot
 
namespace  iodev
 
namespace  lamp
 
namespace  maxis
 
namespace  motor
 
namespace  piezo
 
namespace  shutter
 
namespace  smaract
 

Functions

virtual bool IsReady () const
 Check if controller is in Standby/Ready state.
 
virtual bool IsOperational () const
 Check if controller is in Operational.
 
virtual std::string GetRpcError (const short error_code) const
 

Variables

const std::unordered_map< short, std::string > hw_errors
 
class {
capitalize ()}}LcsIf(std {{cookiecutter.device_name|capitalize()}}LcsIf() = default
 {{cookiecutter.device_name|capitalize()}} Local Control System (LCS) Interface (IF) class
 
const std::unordered_map< short, std::string > rpc_errors
 

Function Documentation

◆ GetRpcError()

virtual std::string fcf::devmgr::GetRpcError ( const short  error_code) const
virtual
Parameters
error_codeError code
Returns
Associated error text to the passed error code.

◆ IsOperational()

virtual bool fcf::devmgr::IsOperational ( ) const
virtual

Check if controller is in Operational.

Returns
true if condition is met, false otherwise.

◆ IsReady()

virtual bool fcf::devmgr::IsReady ( ) const
virtual

Check if controller is in Standby/Ready state.

Returns
true if condition is met, false otherwise.

Variable Documentation

◆ 

class { ... } virtual fcf::devmgr::capitalize()}}LcsIf(std

{{cookiecutter.device_name|capitalize()}} Local Control System (LCS) Interface (IF) class

This class manages the {{cookiecutter.device_name|capitalize()}} connection to the LCS encapsulating all basic communication with the controller or the simulator.

Each RPC call is synchronous but it only starts the action in the controller. The controller will return successfully if the action can be started, not that the action was completed.

The completion of the action must be monitored by reading the status of the controller but this is out of the scope of this class.

{{cookiecutter.device_name}}LcsIf constructor.

Parameters
[in,out]configShared pointer to the device configuration.
[in,out]data_ctxReference to the data context object.
[in]initialiseFlag to control the initialization. This flag is used when using child classes.

{{cookiecutter.device_name|capitalize()}} destructor

◆ hw_errors

const std::unordered_map<short, std::string> fcf::devmgr::hw_errors
Initial value:
= {
{HW_ERR_HW_NOT_OP, "{{cookiecutter.device_name|capitalize()}} no in operational state"},
{HW_ERR_WRONG_CMD, "{{cookiecutter.device_name|capitalize()}} unknown command"},
{HW_ERR_INCONSISTENT, "{{cookiecutter.device_name|capitalize()}} inconsistent hardware signals"},
{HW_ERR_INIT_FAILURE, "{{cookiecutter.device_name|capitalize()}} init failure"},
{HW_ERR_ENABLE_FAILURE, "{{cookiecutter.device_name|capitalize()}} enable failure"},
{HW_ERR_DISABLE_FAILURE, "{{cookiecutter.device_name|capitalize()}} disable failure"},
}
@ HW_ERR_DISABLE_FAILURE
Definition: actuatorHwErrors.hpp:26
@ HW_ERR_ENABLE_FAILURE
Definition: actuatorHwErrors.hpp:25

◆ rpc_errors

const std::unordered_map<short, std::string> fcf::devmgr::rpc_errors
Initial value:
= {
{RPC_ERR_NOT_OP, "Cannot disable {{cookiecutter.device_name|capitalize()}}. Not in OP state"},
{RPC_ERR_NOT_OP_READY, "Cannot enable {{cookiecutter.device_name|capitalize()}}. Not in NOT_OP_READY."},
{RPC_ERR_NOT_OP_NOTREADY, "Cannot init {{cookiecutter.device_name|capitalize()}}. Not in NOT_OP_NOTREADY or FAILURE."}
}