|
pds 2.1.0-alpha
|
#include <lsm.hpp>
Public Member Functions | |
| Lsm (const std::string &filename, const std::string &name, ifw::fcf::devmgr::common::DataContext &data_ctx) | |
| virtual | ~Lsm ()=default |
| DeviceConfig destructor. | |
| void | CreateObjects (std::shared_ptr< ifw::fcf::devmgr::common::IDeviceConfig > config=nullptr) override |
| Create object instances. | |
| virtual void | Setup (const std::any &payload) override |
| Executes a setup of the PSU8600 device. | |
| void | GetStatusBuffer (const std::string &stat_prefix, const LsmControllerData *const data, std::string &buffer) |
| void | Status (const std::any &payload, std::string &buffer) |
| void | UpdateStatus () override |
The Lsm class.
This class handles the behaviour of a generic Lsm device.
The Lsm class have two auxiliary objects. One for managing the device configuration and the other one for managing the connection to the device controller running in the Local Control System (LCS). These two objects are created by a dedicated method. These objects inherits basic behaviours from their parent classes.
| pds::maical::devices::Lsm::Lsm | ( | const std::string & | filename, |
| const std::string & | name, | ||
| ifw::fcf::devmgr::common::DataContext & | data_ctx ) |
|
virtualdefault |
DeviceConfig destructor.
|
override |
Create object instances.
| config | Shared pointer to a device config object |
This method creates the instances of the device configuration and LCS interface objects that are needed by the device. It can override the type of the configuration by passing a parameter otherwise it will use the default Config class.
| void pds::maical::devices::Lsm::GetStatusBuffer | ( | const std::string & | stat_prefix, |
| const LsmControllerData *const | data, | ||
| std::string & | buffer ) |
|
overridevirtual |
Executes a setup of the PSU8600 device.
| [in] | payload | contains the payload of the setup message. |
| an | exception if an error ocurrs. |
| void pds::maical::devices::Lsm::Status | ( | const std::any & | payload, |
| std::string & | buffer ) |
|
override |