CANopenNode
CANopen protocol stack
|
Specified in standard CiA 309 More...
Macros | |
#define | CO_CONFIG_GTW (0) |
Configuration of Gateway ASCII mapping. | |
#define | CO_CONFIG_GTW_BLOCK_DL_LOOP 1 |
Number of loops of CO_SDOclientDownload() in case of block download. | |
#define | CO_CONFIG_GTWA_COMM_BUF_SIZE 200 |
Size of command buffer in ASCII gateway object. | |
#define | CO_CONFIG_GTWA_LOG_BUF_SIZE 2000 |
Size of message log buffer in ASCII gateway object. | |
Specified in standard CiA 309
#define CO_CONFIG_GTW (0) |
Configuration of Gateway ASCII mapping.
Gateway object is covered by standard CiA 309 - CANopen access from other networks. It enables usage of the NMT master, SDO client and LSS master as a gateway device.
Possible flags, can be ORed:
#define CO_CONFIG_GTW_BLOCK_DL_LOOP 1 |
Number of loops of CO_SDOclientDownload() in case of block download.
If SDO clint has block download in progress and OS has buffer for CAN tx messages, then CO_SDOclientDownload() functionion can be called multiple times within own loop (up to 127). This can speed-up SDO block transfer.
#define CO_CONFIG_GTWA_COMM_BUF_SIZE 200 |
Size of command buffer in ASCII gateway object.
If large amount of data is transferred (block transfer), then this should be increased to 1000 or more. Buffer may be refilled between the block transfer.