#include <bcm_sync.h>
Public Member Functions | |
BCMsync (const std::string &device, can::SocketCANDriverSharedPtr driver, const SyncProperties &sync_properties) | |
template<class T > | |
void | setIgnored (const T &other) |
template<class T > | |
void | setMonitored (const T &other) |
Public Member Functions inherited from canopen::Layer | |
void | diag (LayerReport &report) |
LayerState | getLayerState () |
void | halt (LayerStatus &status) |
void | init (LayerStatus &status) |
Layer (const std::string &n) | |
void | read (LayerStatus &status) |
void | recover (LayerStatus &status) |
void | shutdown (LayerStatus &status) |
void | write (LayerStatus &status) |
virtual | ~Layer () |
Static Public Attributes | |
static const uint32_t | ALL_NODES_MASK = 127 |
static const uint32_t | HEARTBEAT_ID = 0x700 |
static const uint32_t | NMT_ID = 0x000 |
Protected Member Functions | |
virtual void | handleDiag (LayerReport &report) |
virtual void | handleHalt (LayerStatus &status) |
virtual void | handleInit (LayerStatus &status) |
virtual void | handleRead (LayerStatus &status, const LayerState ¤t_state) |
virtual void | handleRecover (LayerStatus &status) |
virtual void | handleShutdown (LayerStatus &status) |
virtual void | handleWrite (LayerStatus &status, const LayerState ¤t_state) |
Private Member Functions | |
void | handleFrame (const can::Frame &frame) |
bool | skipNode (uint8_t id) |
Private Attributes | |
can::BCMsocket | bcm_ |
std::string | device_ |
can::SocketCANDriverSharedPtr | driver_ |
can::FrameListenerConstSharedPtr | handler_ |
std::set< int > | ignored_nodes_ |
std::set< int > | known_nodes_ |
std::set< int > | monitored_nodes_ |
boost::mutex | mutex_ |
std::set< int > | started_nodes_ |
std::vector< can::Frame > | sync_frames_ |
uint16_t | sync_ms_ |
bool | sync_running_ |
Additional Inherited Members | |
Public Types inherited from canopen::Layer | |
enum | LayerState { Off, Init, Shutdown, Error, Halt, Recover, Ready } |
Public Attributes inherited from canopen::Layer | |
const std::string | name |
Definition at line 21 of file bcm_sync.h.
|
inline |
Definition at line 143 of file bcm_sync.h.
|
inlineprotectedvirtual |
Implements canopen::Layer.
Definition at line 86 of file bcm_sync.h.
|
inlineprivate |
Definition at line 46 of file bcm_sync.h.
|
inlineprotectedvirtual |
Implements canopen::Layer.
Definition at line 125 of file bcm_sync.h.
|
inlineprotectedvirtual |
Implements canopen::Layer.
Definition at line 95 of file bcm_sync.h.
|
inlineprotectedvirtual |
Implements canopen::Layer.
Definition at line 78 of file bcm_sync.h.
|
inlineprotectedvirtual |
Implements canopen::Layer.
Definition at line 134 of file bcm_sync.h.
|
inlineprotectedvirtual |
Implements canopen::Layer.
Definition at line 119 of file bcm_sync.h.
|
inlineprotectedvirtual |
Implements canopen::Layer.
Definition at line 82 of file bcm_sync.h.
|
inline |
Definition at line 160 of file bcm_sync.h.
|
inline |
Definition at line 156 of file bcm_sync.h.
|
inlineprivate |
Definition at line 39 of file bcm_sync.h.
|
static |
Definition at line 139 of file bcm_sync.h.
|
private |
Definition at line 32 of file bcm_sync.h.
|
private |
Definition at line 24 of file bcm_sync.h.
|
private |
Definition at line 33 of file bcm_sync.h.
|
private |
Definition at line 35 of file bcm_sync.h.
|
static |
Definition at line 140 of file bcm_sync.h.
|
private |
Definition at line 26 of file bcm_sync.h.
|
private |
Definition at line 28 of file bcm_sync.h.
|
private |
Definition at line 27 of file bcm_sync.h.
|
private |
Definition at line 22 of file bcm_sync.h.
|
static |
Definition at line 141 of file bcm_sync.h.
|
private |
Definition at line 29 of file bcm_sync.h.
|
private |
Definition at line 37 of file bcm_sync.h.
|
private |
Definition at line 34 of file bcm_sync.h.
|
private |
Definition at line 31 of file bcm_sync.h.