Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Attributes | Friends | List of all members
icl_hardware::can::HardwareCanSourcePeak Class Reference

#include <HardwareCanSourcePeak.h>

Inheritance diagram for icl_hardware::can::HardwareCanSourcePeak:
Inheritance graph
[legend]

Classes

class  WorkerThread
 

Public Types

typedef boost::shared_ptr< const HardwareCanSourcePeakConstPtr
 Const shared pointer shorthand. More...
 
typedef boost::shared_ptr< HardwareCanSourcePeakPtr
 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< WorkerThreadm_worker_thread
 

Friends

class icl_sourcesink::DataSourceFactory< HardwareCanSourcePeak >
 Provide access for the factory. More...
 
class icl_sourcesink::SourceSinkManager
 Provide access for the manager. More...
 

Detailed Description

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.

Member Typedef Documentation

Const shared pointer shorthand.

Definition at line 52 of file HardwareCanSourcePeak.h.

Shared pointer shorthand.

Definition at line 46 of file HardwareCanSourcePeak.h.

Constructor & Destructor Documentation

icl_hardware::can::HardwareCanSourcePeak::~HardwareCanSourcePeak ( )

Definition at line 299 of file HardwareCanSourcePeak.cpp.

icl_hardware::can::HardwareCanSourcePeak::HardwareCanSourcePeak ( const std::string &  uri = "",
const std::string &  name = "HardwareCanSourcePeak" 
)
protected

Constructor.

Definition at line 197 of file HardwareCanSourcePeak.cpp.

Member Function Documentation

bool icl_hardware::can::HardwareCanSourcePeak::advance ( )
protected

Advance to the next data element.

Definition at line 308 of file HardwareCanSourcePeak.cpp.

virtual CanMessageStamped::Ptr icl_hardware::can::HardwareCanSourcePeak::get ( ) const
inlinevirtual

Definition at line 74 of file HardwareCanSourcePeak.h.

virtual bool icl_hardware::can::HardwareCanSourcePeak::isSeekable ( ) const
inlinevirtual

Definition at line 79 of file HardwareCanSourcePeak.h.

static icl_sourcesink::URISchemeMap icl_hardware::can::HardwareCanSourcePeak::supportedURISchemes ( )
inlinestatic

URI schemes supported by this source.

Definition at line 55 of file HardwareCanSourcePeak.h.

Friends And Related Function Documentation

friend class icl_sourcesink::DataSourceFactory< HardwareCanSourcePeak >
friend

Provide access for the factory.

Definition at line 92 of file HardwareCanSourcePeak.h.

friend class icl_sourcesink::SourceSinkManager
friend

Provide access for the manager.

Definition at line 89 of file HardwareCanSourcePeak.h.

Member Data Documentation

CanMessageStamped::Ptr icl_hardware::can::HardwareCanSourcePeak::m_buffer
private

Buffers the latest data element.

Definition at line 99 of file HardwareCanSourcePeak.h.

uint32_t icl_hardware::can::HardwareCanSourcePeak::m_sleep_time
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.

boost::scoped_ptr<WorkerThread> icl_hardware::can::HardwareCanSourcePeak::m_worker_thread
private

The worker thread that monitors the CAN device and buffers newly received data.

Definition at line 110 of file HardwareCanSourcePeak.h.


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


fzi_icl_can
Author(s):
autogenerated on Mon Jun 10 2019 13:17:02