28 namespace canopen_schunk {
39 typedef std::vector<boost::shared_ptr<TPDO> >
PtrList;
90 const bool dummy_mapping =
false,
91 const uint8_t cyclic_timeout_cycles = 0);
116 const bool dummy_mapping =
false,
117 const uint8_t cyclic_timeout_cycles = 0);
void update(const CanMsg &msg)
update updates the TPDO data with newly received messages
static const uint16_t OD_TPDO_COMMUNICATION_MIN
std::vector< MappingConfiguration > MappingConfigurationList
The MappingConfigurationList holds multiple Mapping configurations. The Mapping of a single PDO is de...
PDOStringMatchVec remap(SDO &sdo, const MappingConfigurationList &mappings, const eTransmissionType &transmission_type, const bool dummy_mapping=false, const uint8_t cyclic_timeout_cycles=0)
Configure a PDO by sending some SDO packages. This can be either done during NMT state pre-operationa...
void upload()
Upload data from the slave to the master (Node to PC)
std::vector< boost::function< void()> > m_notify_callbacks
boost::shared_ptr< TPDO > Ptr
Convenience typedef to use PDOs with shared pointers.
static const uint16_t OD_TPDO_MAPPING_PARAMETER_MIN
std::vector< boost::shared_ptr< TPDO > > PtrList
Convenience typedef to use PDO lists with shared pointers.
void registerNotifyCallback(const boost::function< void()> &f)
Register a notification callback function for incoming PDO messages.
eTransmissionType
Transmission types of a PDO, needed when mapping PDOs.
bool m_data_update_received
This class describes Transmit PDOs, meaning PDOs that send data from the device to the host...
TPDO(const uint8_t node_id, const uint8_t pdo_nr, const CanDevPtr &can_device)
Construct a new TPDO.
boost::mutex m_data_buffer_mutex
std::vector< PDOStringMatch > PDOStringMatchVec
std::vector< uint8_t > m_data_buffer
PDOStringMatchVec appendMapping(SDO &sdo, const MappingConfigurationList &mappings, const eTransmissionType &transmission_type, const bool dummy_mapping=false, const uint8_t cyclic_timeout_cycles=0)
Appends one or more mapping parameters to the existing mapping. Note that the PDO will be disabled wh...
The PDO class provides access to one (of the possible multiple) Process Data Object of a canOpen node...
The SDO class represents Service Data Objects (SDO) that are used for slow access of the canOpen obje...
boost::condition_variable m_data_buffer_updated_cond