...
Code Block | ||
---|---|---|
| ||
static const uint16_t s_aus1C12_Entries[] = { 0x1600, 0x1601, 0x1602}; { .eCommand = OD_CREATE_SUBOBJECT, .pszName = NULL, .uCreate.tSubObject = { .usIndex = 0x1C12, .bSubindex = 3, .bValueInfo = ODV3_VALUE_INFO_INITIAL_VALUE, .bIndicationFlags = 0, .usDataType = ECAT_OD_DTYPE_UNSIGNED16, .usAccessRights = ECAT_OD_READ_ALL | ECAT_OD_WRITE_PREOP, .ulMaxFieldUnits = 1, }, .tInitial = {&s_aus1C12_Entries[2], sizeof(s_aus1C12_Entries[2])}, }, |
Add the handling of the specific request
We need to add a special command that allows the application to inform the stack about a change in the input/output size. This is essential for dynamic PDO changes.
...