#include <HardwareCanSourcePeak.h>
Classes | |
class | WorkerThread |
Public Types | |
typedef boost::shared_ptr< const HardwareCanSourcePeak > | ConstPtr |
Const shared pointer shorthand. More... | |
typedef boost::shared_ptr< HardwareCanSourcePeak > | Ptr |
Shared pointer shorthand. More... | |
Public Member Functions | |
virtual CanMessageStamped::Ptr | get () const |
virtual bool | isSeekable () const |
~HardwareCanSourcePeak () | |
Static Public Member Functions | |
static icl_sourcesink::URISchemeMap | supportedURISchemes () |
URI schemes supported by this source. More... | |
Protected Member Functions | |
bool | advance () |
Advance to the next data element. More... | |
HardwareCanSourcePeak (const std::string &uri="", const std::string &name="HardwareCanSourcePeak") | |
Constructor. More... | |
Private Attributes | |
CanMessageStamped::Ptr | m_buffer |
Buffers the latest data element. More... | |
uint32_t | m_sleep_time |
boost::scoped_ptr< WorkerThread > | m_worker_thread |
Friends | |
class | icl_sourcesink::DataSourceFactory< HardwareCanSourcePeak > |
Provide access for the factory. More... | |
class | icl_sourcesink::SourceSinkManager |
Provide access for the manager. More... | |
This Source reads from a given CAN bus and returns its messages as time-stamped tCanMessage objects.
Definition at line 40 of file HardwareCanSourcePeak.h.
typedef boost::shared_ptr<const HardwareCanSourcePeak> icl_hardware::can::HardwareCanSourcePeak::ConstPtr |
Const shared pointer shorthand.
Definition at line 52 of file HardwareCanSourcePeak.h.
typedef boost::shared_ptr<HardwareCanSourcePeak> icl_hardware::can::HardwareCanSourcePeak::Ptr |
Shared pointer shorthand.
Definition at line 46 of file HardwareCanSourcePeak.h.
icl_hardware::can::HardwareCanSourcePeak::~HardwareCanSourcePeak | ( | ) |
Definition at line 299 of file HardwareCanSourcePeak.cpp.
|
protected |
Constructor.
Definition at line 197 of file HardwareCanSourcePeak.cpp.
|
protected |
Advance to the next data element.
Definition at line 308 of file HardwareCanSourcePeak.cpp.
|
inlinevirtual |
Definition at line 74 of file HardwareCanSourcePeak.h.
|
inlinevirtual |
Definition at line 79 of file HardwareCanSourcePeak.h.
|
inlinestatic |
URI schemes supported by this source.
Definition at line 55 of file HardwareCanSourcePeak.h.
|
friend |
Provide access for the factory.
Definition at line 92 of file HardwareCanSourcePeak.h.
|
friend |
Provide access for the manager.
Definition at line 89 of file HardwareCanSourcePeak.h.
|
private |
Buffers the latest data element.
Definition at line 99 of file HardwareCanSourcePeak.h.
|
private |
Time (in microseconds) we sleep before checking for the next CAN message. Always set to half the CAN symbol time. I.e., at 1 Kbps this is set to 500 microseconds. At 1 Mbps this is zero.
Definition at line 105 of file HardwareCanSourcePeak.h.
|
private |
The worker thread that monitors the CAN device and buffers newly received data.
Definition at line 110 of file HardwareCanSourcePeak.h.