pds 2.1.0-alpha
Loading...
Searching...
No Matches
Public Member Functions | List of all members
pds::maical::devices::LsmLcsIf Class Reference

PSU8600 Local Control System (LCS) Interface (IF) class. More...

#include <lsmLcsIf.hpp>

Inheritance diagram for pds::maical::devices::LsmLcsIf:

Public Member Functions

 LsmLcsIf (std::shared_ptr< fcs::IDeviceConfig > config, ifw::fcf::devmgr::common::DataContext &data_ctx)
 LsmLcsIf constructor.
 
virtual ~LsmLcsIf ()=default
 Psu8600LcsIf destructor.
 
void InitObject ()
 
void ChannelsOn (double ch_vis, double ch_ir1, double ch_ir2, int ontime)
 Unlock PSU for enable the activation of the outputs.
 
virtual void ReadStatus (LsmControllerData &status)
 Read status from the controller.
 
void Listener (ifw::core::protocol::base::VectorVariant &params)
 
std::pair< std::string, std::string > GetObjectInfo (const std::string &map_value) const
 

Detailed Description

PSU8600 Local Control System (LCS) Interface (IF) class.

This class manages the Sensor 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.

Constructor & Destructor Documentation

◆ LsmLcsIf()

pds::maical::devices::LsmLcsIf::LsmLcsIf ( std::shared_ptr< fcs::IDeviceConfig > config,
ifw::fcf::devmgr::common::DataContext & data_ctx )

LsmLcsIf constructor.

Parameters
[in,out]configShared pointer to the device configuration.
[in,out]data_ctxReference to the data context object.

◆ ~LsmLcsIf()

virtual pds::maical::devices::LsmLcsIf::~LsmLcsIf ( )
virtualdefault

Psu8600LcsIf destructor.

Member Function Documentation

◆ ChannelsOn()

void pds::maical::devices::LsmLcsIf::ChannelsOn ( double ch_vis,
double ch_ir1,
double ch_ir2,
int ontime )

Unlock PSU for enable the activation of the outputs.

◆ GetObjectInfo()

std::pair< std::string, std::string > pds::maical::devices::LsmLcsIf::GetObjectInfo ( const std::string & map_value) const

◆ InitObject()

void pds::maical::devices::LsmLcsIf::InitObject ( )

◆ Listener()

void pds::maical::devices::LsmLcsIf::Listener ( ifw::core::protocol::base::VectorVariant & params)

◆ ReadStatus()

void pds::maical::devices::LsmLcsIf::ReadStatus ( LsmControllerData & status)
virtual

Read status from the controller.

Parameters
statusstructure containing the status of the controller.
Warning
: The unpacking of the data shall follow the proper order or there is the risk of having an exception related to the boost conversion to variant.

The documentation for this class was generated from the following files: