CANopen Master Documentation
Version 6.06.04
|
This file implements generic demo functions for a CANopen Master application, used by the Demo application.
Functions | |
void | ComDemoAppConsoleError (const char *szMessageV, ComStatus_tv tvStatusV) |
void | ComDemoAppConsoleLog (const char *szMessageV) |
ComStatus_tv | ComDemoAppInit (uint8_t ubNetV) |
ComStatus_tv | ComDemoAppInitServices (uint8_t ubNetV) |
ComStatus_tv | ComDemoAppInitTarget (uint8_t ubCanIfV, uint8_t ubNetV, ComDemoAppOptions_ts *ptsOptionsV) |
void | ComDemoAppProcess (uint8_t ubNetV) |
void | ComDemoAppTimerEvent (void) |
void ComDemoAppConsoleError | ( | const char * | szMessageV, |
ComStatus_tv | tvStatusV | ||
) |
[in] | szMessageV | Message string |
[in] | tvStatusV | CANopen stack status value |
This function prints the message szMessageV and the CANopen stack status code tvStatusV to the console.
void ComDemoAppConsoleLog | ( | const char * | szMessageV | ) |
[in] | szMessageV | Message string |
This function prints the message szMessageV to the console or a logging system.
ComStatus_tv ComDemoAppInit | ( | uint8_t | ubNetV | ) |
[in] | ubNetV | CANopen Network channel |
This function is called inside the example main()
routine after the CANopen FD Master protocol stack has been initialised. The function calls ComDemoAppInitTarget() and ComDemoAppInitServices() for an individual initialisation of target examples (refer to Examples for evaluation boards).
ComStatus_tv ComDemoAppInitServices | ( | uint8_t | ubNetV | ) |
[in] | ubNetV | CANopen Network channel |
/source/application/examples-com/boards/
directories.This function is called inside the ComDemoAppInit() routine. The function performs an individual CANopen service initialisation of the target examples.
ComStatus_tv ComDemoAppInitTarget | ( | uint8_t | ubCanIfV, |
uint8_t | ubNetV, | ||
ComDemoAppOptions_ts * | ptsOptionsV | ||
) |
[in] | ubCanIfV | Physical CAN interface |
[in] | ubNetV | CANopen Network channel |
[in] | ptsOptionsV | Configuration options |
/source/application/examples-com/boards/
directories.This function is called inside the ComDemoAppInit() routine. The function performs an individual hardware initialisation of the target examples.
void ComDemoAppProcess | ( | uint8_t | ubNetV | ) |
[in] | ubNetV | - CANopen Network channel |
This function is called inside the main loop of the demo application. The functionality is individual for each target inside the examples-com
directory.
void ComDemoAppTimerEvent | ( | void | ) |
This function is called periodically with a 10 ms timer base inside the demo application. The functionality is individual for each target inside the examples-com
directory.