File Information
Library: IoT/CANopen
Package: Node
Header: IoT/CANopen/Node.h
Inheritance
Direct Base Classes: Poco::OSP::Service
All Base Classes: Poco::OSP::Service, Poco::RefCountedObject
Known Derived Classes: NodeImpl
Member Summary
Member Functions: enumerateNodes, isA, lock, mpdo, nmt, objectDictionary, pdo, sdo, time, type, unlock
Inherited Functions: duplicate, isA, referenceCount, release, type
Nested Classes
struct NodeInfo
Types
Ptr
typedef Poco::AutoPtr < Node > Ptr;
ScopedLock
typedef Poco::ScopedLock < Node > ScopedLock;
Destructor
~Node
virtual ~Node();
Destroys the Node.
Member Functions
enumerateNodes
virtual void enumerateNodes(
std::vector < NodeInfo > & nodes
) = 0;
Returns the node IDs of all peer nodes on the network from which a heartbeat has been received within the heartbeat timeout.
isA
bool isA(
const std::type_info & otherType
) const;
See also: Poco::OSP::Service::isA()
lock
virtual void lock() = 0;
Locks the bus for exclusive use.
mpdo
virtual MPDO & mpdo() = 0;
Returns the MPDO instance.
nmt
virtual NMT & nmt() = 0;
Returns the NMT instance.
objectDictionary
virtual ObjectDictionary & objectDictionary() = 0;
Returns the object dictionary.
pdo
virtual PDO & pdo() = 0;
Returns the PDO instance.
sdo
virtual SDO & sdo() = 0;
Returns the SDO instance.
time
virtual Time & time() = 0;
Returns the TIME instance.
type
const std::type_info & type() const;
See also: Poco::OSP::Service::type()
unlock
virtual void unlock() = 0;
Unlocks the bus.
Variables
SERVICE_NAME
static const std::string SERVICE_NAME;
nodeGone
Poco::BasicEvent < const Poco::UInt8 > nodeGone;
Fired when a node is no longer available on the network.
nodeSeen
Poco::BasicEvent < const NodeInfo > nodeSeen;
Fired when a new node has been discovered on the network.