Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: ppCANOpen_Example DISCO-F746NG_rtos_test
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.
Generated on Sun Jul 17 2022 07:51:19 by
