| uint32_t EC_API_SLV_CoE_odAddVariable | ( | EC_API_SLV_SHandle_t * | pHandle, |
| uint16_t | index, | ||
| char * | pName, | ||
| uint16_t | type, | ||
| uint16_t | bitLen, | ||
| uint16_t | flags, | ||
| EC_API_SLV_CBObjRead_t | cbRead, | ||
| void * | pReadCtxt, | ||
| EC_API_SLV_CBObjWrite_t | cbWrite, | ||
| void * | pWriteCtxt | ||
| ) |
This function creates a Base Data Type Object for the Object Dictionary.
| [in] | pHandle | The pointer to the EtherCAT API instance. |
| [in] | index | array index number |
| [in] | pName | entry name |
| [in] | type | base type (USINT, UDINT...). |
| [in] | bitLen | bit length of the data type |
| [in] | flags | Read, Write, PDO Mapping and other flags |
| [in] | cbRead | Read function pointer to the read function |
| [in] | pReadCtxt | Read function pointer to the read function context |
| [in] | cbWrite | Write function pointer to the write function |
| [in] | pWriteCtxt | Write function pointer to the write function context |