ethercat_driver_ros2  main
C++ ROS test
Public Member Functions | Public Attributes | List of all members
ethercat_interface::EcPdoChannelManager Class Reference

#include <ec_pdo_channel_manager.hpp>

Public Member Functions

 EcPdoChannelManager ()
 
 ~EcPdoChannelManager ()
 
void setup_interface_ptrs (std::vector< double > *state_interface, std::vector< double > *command_interface)
 
ec_pdo_entry_info_t get_pdo_entry_info ()
 
double ec_read (uint8_t *domain_address)
 
void ec_write (uint8_t *domain_address, double value)
 
void ec_update (uint8_t *domain_address)
 
bool load_from_config (YAML::Node channel_config)
 
uint8_t type2bits (std::string type)
 

Public Attributes

PdoType pdo_type
 
uint16_t index
 
uint8_t sub_index
 
std::string data_type
 
std::string interface_name
 
uint8_t data_mask = 255
 
double default_value = std::numeric_limits<double>::quiet_NaN()
 
int interface_index = -1
 
double last_value = std::numeric_limits<double>::quiet_NaN()
 
bool allow_ec_write = true
 
bool override_command = false
 
double factor = 1
 
double offset = 0
 

Constructor & Destructor Documentation

◆ EcPdoChannelManager()

ethercat_interface::EcPdoChannelManager::EcPdoChannelManager ( )
inline

◆ ~EcPdoChannelManager()

ethercat_interface::EcPdoChannelManager::~EcPdoChannelManager ( )
inline

Member Function Documentation

◆ setup_interface_ptrs()

void ethercat_interface::EcPdoChannelManager::setup_interface_ptrs ( std::vector< double > *  state_interface,
std::vector< double > *  command_interface 
)
inline

◆ get_pdo_entry_info()

ec_pdo_entry_info_t ethercat_interface::EcPdoChannelManager::get_pdo_entry_info ( )
inline

◆ ec_read()

double ethercat_interface::EcPdoChannelManager::ec_read ( uint8_t *  domain_address)
inline

◆ ec_write()

void ethercat_interface::EcPdoChannelManager::ec_write ( uint8_t *  domain_address,
double  value 
)
inline

◆ ec_update()

void ethercat_interface::EcPdoChannelManager::ec_update ( uint8_t *  domain_address)
inline

◆ load_from_config()

bool ethercat_interface::EcPdoChannelManager::load_from_config ( YAML::Node  channel_config)
inline

◆ type2bits()

uint8_t ethercat_interface::EcPdoChannelManager::type2bits ( std::string  type)
inline

Member Data Documentation

◆ pdo_type

PdoType ethercat_interface::EcPdoChannelManager::pdo_type

◆ index

uint16_t ethercat_interface::EcPdoChannelManager::index

◆ sub_index

uint8_t ethercat_interface::EcPdoChannelManager::sub_index

◆ data_type

std::string ethercat_interface::EcPdoChannelManager::data_type

◆ interface_name

std::string ethercat_interface::EcPdoChannelManager::interface_name

◆ data_mask

uint8_t ethercat_interface::EcPdoChannelManager::data_mask = 255

◆ default_value

double ethercat_interface::EcPdoChannelManager::default_value = std::numeric_limits<double>::quiet_NaN()

◆ interface_index

int ethercat_interface::EcPdoChannelManager::interface_index = -1

◆ last_value

double ethercat_interface::EcPdoChannelManager::last_value = std::numeric_limits<double>::quiet_NaN()

◆ allow_ec_write

bool ethercat_interface::EcPdoChannelManager::allow_ec_write = true

◆ override_command

bool ethercat_interface::EcPdoChannelManager::override_command = false

◆ factor

double ethercat_interface::EcPdoChannelManager::factor = 1

◆ offset

double ethercat_interface::EcPdoChannelManager::offset = 0

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