library for C++ CANOpen implementation. mbed independant, but is easy to attach into with mbed.

Dependents:   ppCANOpen_Example DISCO-F746NG_rtos_test

Embed: (wiki syntax)

« Back to documentation index

ServiceProvider Class Reference

ServiceProvider Class Reference

Node Class to implement feature of a CANOpen NMT node. More...

#include <ServiceProvider.h>

Public Member Functions

void Run (void)
 Main loop.
void UpdateNodes (void)
 Iterate through Nodes and update.
int AddNode (Node *node)
 Register a node to get messages and get update calls.
void PostMessage (int nodeId, CanOpenMessage *msg)
 Add a message to the message queue outbox.
void PostNmtControl (char targetNodeId, NmtCommandSpecifier cs)
 quick way to create and send an NMT Control message
uint32_t GetTime (void)
 A way for the the Nodes to get elapsed time when they want it.

Static Public Member Functions

static void UpdateNodes_CWrapper (void *pServiceObject)
 C helper function to pass to API.

Detailed Description

Node Class to implement feature of a CANOpen NMT node.

Definition at line 50 of file ServiceProvider.h.


Member Function Documentation

int AddNode ( Node node )

Register a node to get messages and get update calls.

Definition at line 153 of file ServiceProvider.cpp.

uint32_t GetTime ( void   )

A way for the the Nodes to get elapsed time when they want it.

Definition at line 240 of file ServiceProvider.cpp.

void PostMessage ( int  nodeId,
CanOpenMessage msg 
)

Add a message to the message queue outbox.

Definition at line 169 of file ServiceProvider.cpp.

void PostNmtControl ( char  targetNodeId,
NmtCommandSpecifier  cs 
)

quick way to create and send an NMT Control message

Note:
Make posting a message easier!

Definition at line 174 of file ServiceProvider.cpp.

void Run ( void   )

Main loop.

Definition at line 69 of file ServiceProvider.cpp.

void UpdateNodes ( void   )

Iterate through Nodes and update.

Definition at line 133 of file ServiceProvider.cpp.

void UpdateNodes_CWrapper ( void *  pServiceObject ) [static]

C helper function to pass to API.

Definition at line 144 of file ServiceProvider.cpp.