23 #ifndef ICL_HARDWARE_CAN_SOURCE_HARDWARE_CAN_SOURCE_PEAK_H_INCLUDED 24 #define ICL_HARDWARE_CAN_SOURCE_HARDWARE_CAN_SOURCE_PEAK_H_INCLUDED 50 typedef boost::shared_ptr<HardwareCanSourcePeak>
Ptr;
52 typedef boost::shared_ptr<const HardwareCanSourcePeak>
ConstPtr;
57 using namespace icl_sourcesink;
63 "Reads CAN message data via a Peak CAN device.",
64 "can+live://<path>[?baudrate=<baudrate>][&can_mask=<can_mask>|can_id=<can_id>][&buffer_size=<buffer_size>]",
65 "<path> Path to CAN device (default: /dev/pcan0)\n" 66 "<baudrate> CAN baudrate [kbps] (default: 500).\n" 67 "<can_mask> Path to CAN mask file\n" 68 " (default: from config option /icl_hardware_can/can_mask)\n" 69 "<can_id> Specific CAN ID to extract while ignoring all others\n" 70 "<buffer_size> Internal buffer size (default: 256 messages)")));
86 const std::string& name =
"HardwareCanSourcePeak");
89 friend class icl_sourcesink::SourceSinkManager;
boost::shared_ptr< HardwareCanSourcePeak > Ptr
Shared pointer shorthand.
icl_sourcesink::DataSource< tCanMessage > HardwareCanSource
Base type for all sources providing tCanMessage data.
#define ICL_HARDWARE_CAN_SOURCE_IMPORT_EXPORT
boost::shared_ptr< const HardwareCanSourcePeak > ConstPtr
Const shared pointer shorthand.
virtual bool isSeekable() const
boost::shared_ptr< Stamped< DataType > > Ptr
CanMessageStamped::Ptr m_buffer
Buffers the latest data element.
This modul constructs a map of a can-mask-file the map can be request by getcanmatrix() ...
boost::scoped_ptr< WorkerThread > m_worker_thread
static icl_sourcesink::URISchemeMap supportedURISchemes()
URI schemes supported by this source.