fastcat 0.13.15
C++ EtherCAT Device Command & Control Library
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
fastcat::El3208 Class Reference

#include "el3208.h"

Inheritance diagram for fastcat::El3208:
Inheritance graph
[legend]
Collaboration diagram for fastcat::El3208:
Collaboration graph
[legend]

Public Member Functions

 El3208 ()
 
bool ConfigFromYaml (const YAML::Node &node) override
 
bool Read () override
 
FaultType Process () override
 
- Public Member Functions inherited from fastcat::JsdDeviceBase
bool Write (DeviceCmd &cmd) override
 
void SetSlaveId (uint16_t slave_id)
 
uint16_t GetSlaveId ()
 
void SetContext (jsd_t *context)
 
void RegisterSdoResponseQueue (std::shared_ptr< std::queue< SdoResponse > > sdo_response_queue)
 
void SetOffline (bool is_offline)
 
bool IsOffline ()
 
- Public Member Functions inherited from fastcat::DeviceBase
virtual ~DeviceBase ()
 
virtual void Fault ()
 
virtual void Reset ()
 
virtual void SetInitializationTime (double time_sec, double monotonic_time_sec)
 
void RegisterCmdQueue (std::shared_ptr< ThreadSafeQueue< DeviceCmd > > cmd_queue)
 
std::string GetName ()
 
std::shared_ptr< DeviceState > GetState ()
 
void SetTime (double time, double monotonic_time)
 
void SetLoopPeriod (double loop_period)
 

Protected Member Functions

bool ConfigFromYamlCommon (const YAML::Node &node)
 
bool ElementFromString (std::string element_string, jsd_el3208_element_t &element)
 
bool ConnectionFromString (std::string connection_string, jsd_el3208_connection_t &connection)
 
- Protected Member Functions inherited from fastcat::JsdDeviceBase
AsyncSdoRetVal WriteAsyncSdoRequest (DeviceCmd &cmd)
 
AsyncSdoRetVal WriteAsyncSdoRequestOnline (DeviceCmd &cmd)
 
AsyncSdoRetVal WriteAsyncSdoRequestOffline (DeviceCmd &cmd)
 

Protected Attributes

std::vector< std::string > element_strings_
 
std::vector< std::string > connection_strings_
 
jsd_slave_config_t jsd_slave_config_ = {0}
 
double * outputs_ [JSD_EL3208_NUM_CHANNELS] = {0}
 
double low_threshold_ [JSD_EL3208_NUM_CHANNELS] = {0}
 
double high_threshold_ [JSD_EL3208_NUM_CHANNELS] = {0}
 
bool check_threshold_ [JSD_EL3208_NUM_CHANNELS] = {0}
 
- Protected Attributes inherited from fastcat::JsdDeviceBase
bool is_offline_ = false
 If is an offline version.
 
jsd_t * context_ = NULL
 JSD context.
 
int slave_id_ = 0
 EtherCAT Slave Index.
 
std::shared_ptr< std::queue< SdoResponse > > sdo_response_queue_
 
- Protected Attributes inherited from fastcat::DeviceBase
std::string name_
 unique device name
 
double last_monotonic_time_ = 0.0
 
double loop_period_ = 0.0
 only some devices need
 
double initialization_time_sec_ = -1
 only some devices need
 
double monotonic_initialization_time_sec_ = -1
 only some devices need
 
bool device_fault_active_ = false
 device-level fault, manager also has fault status flag
 
std::shared_ptr< DeviceState > state_
 Fastcat state data.
 
std::shared_ptr< ThreadSafeQueue< DeviceCmd > > cmd_queue_
 for intra-device commands
 

Additional Inherited Members

- Public Types inherited from fastcat::JsdDeviceBase
enum  AsyncSdoRetVal { SDO_RET_VAL_FAILURE , SDO_RET_VAL_SUCCESS , SDO_RET_VAL_NOT_APPLICABLE }
 
- Public Attributes inherited from fastcat::DeviceBase
std::vector< Signal > signals_
 

Constructor & Destructor Documentation

◆ El3208()

fastcat::El3208::El3208 ( )

Member Function Documentation

◆ ConfigFromYaml()

bool fastcat::El3208::ConfigFromYaml ( const YAML::Node &  node)
overridevirtual

Implements fastcat::DeviceBase.

Reimplemented in fastcat::El3208Offline.

◆ ConfigFromYamlCommon()

bool fastcat::El3208::ConfigFromYamlCommon ( const YAML::Node &  node)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConnectionFromString()

bool fastcat::El3208::ConnectionFromString ( std::string  connection_string,
jsd_el3208_connection_t &  connection 
)
protected

◆ ElementFromString()

bool fastcat::El3208::ElementFromString ( std::string  element_string,
jsd_el3208_element_t &  element 
)
protected

◆ Process()

fastcat::FaultType fastcat::El3208::Process ( )
overridevirtual

Reimplemented from fastcat::DeviceBase.

◆ Read()

bool fastcat::El3208::Read ( )
overridevirtual

Implements fastcat::DeviceBase.

Reimplemented in fastcat::El3208Offline.

Member Data Documentation

◆ check_threshold_

bool fastcat::El3208::check_threshold_[JSD_EL3208_NUM_CHANNELS] = {0}
protected

◆ connection_strings_

std::vector<std::string> fastcat::El3208::connection_strings_
protected

◆ element_strings_

std::vector<std::string> fastcat::El3208::element_strings_
protected

◆ high_threshold_

double fastcat::El3208::high_threshold_[JSD_EL3208_NUM_CHANNELS] = {0}
protected

◆ jsd_slave_config_

jsd_slave_config_t fastcat::El3208::jsd_slave_config_ = {0}
protected

◆ low_threshold_

double fastcat::El3208::low_threshold_[JSD_EL3208_NUM_CHANNELS] = {0}
protected

◆ outputs_

double* fastcat::El3208::outputs_[JSD_EL3208_NUM_CHANNELS] = {0}
protected

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