25 #ifndef CANOPENRECEIVETHREAD_H 26 #define CANOPENRECEIVETHREAD_H 28 #include <boost/thread.hpp> 36 namespace canopen_schunk {
61 const ReceivedPacketCallback& received_callback );
100 #endif // CANOPENRECEIVETHREAD_H
boost::thread m_thread
Feedback thread handle.
icl_hardware::can::tCanMessage m_can_msg
Can message for storing and transmission of received data.
ReceivedPacketCallback m_received_callback
Callback for parsing of correctly received can messages (protocoll will be evaluated there) ...
void stop()
stops thread execution
int32_t m_period_time_ms
Cycle period of the receive thread.
virtual ~CanOpenReceiveThread()
~CanOpenReceiveThread Destructor
int32_t receiveData()
receiveData Reads Data from the can driver and calls the data receivec callback if it was valid ...
The CanOpenReceiveThread class handles incoming canOpen messages.
void workerFunction()
state machine processing received data
CanOpenReceiveThread(const icl_core::TimeSpan &period, const boost::shared_ptr< icl_hardware::can::tCanDevice > &can_device, const ReceivedPacketCallback &received_callback)
CanOpenReceiveThread constructor.
boost::function< void(const icl_hardware::can::tCanMessage &msg)> ReceivedPacketCallback
definition of boost function callback for received packages
boost::shared_ptr< icl_hardware::can::tCanDevice > m_can_device
Can handle for message receiving.