CANopen Slave Documentation
Version 6.16.04
|
The structure CosPdoMap_s describes the mapping parameters of a PDO with static mapping. For static PDO mapping the symbol COS_PDO_MAPPING is set to 0.
The following code snippet is taken from the cos_user.c file. In this static mapping table, the first PDO has four entries (objects 7130h:01h to 7130h:04h). Each entry has a size of 2 byte (10h = 16 bit). The second PDO has two entries (objects 6000h:01h to 6000h:02h). Each entry has a size of 1 byte (8 bit).
Please note that the protocol stack does not copy any data to (or from) a PDO automatically. Instead, the user has to adopt the functions CosPdoRcvDataUpdate() and CosPdoTrmDataUpdate() for that purpose.
Data Fields | |
uint16_t | uwIndex |
uint8_t | ubSubIndex |
uint8_t | ubLength |
uint8_t CosPdoMap_s::ubLength |
Length
uint8_t CosPdoMap_s::ubSubIndex |
Sub-Index
uint16_t CosPdoMap_s::uwIndex |
Index