|
Functions | |
| UNS8 | writeNetworkDict (CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data) |
| Used to send a SDO request frame to write the data at the index and subIndex indicated. | |
| UNS8 | writeNetworkDictCallBack (CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, SDOCallback_t Callback) |
| Used to send a SDO request frame to write in a distant node dictionnary. | |
| UNS8 | writeNetworkDictCallBackAI (CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 count, UNS8 dataType, void *data, SDOCallback_t Callback, UNS8 endianize) |
| Used to send a SDO request frame to write in a distant node dictionnary. | |
| UNS8 | readNetworkDict (CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType) |
| Used to send a SDO request frame to read. | |
| UNS8 | readNetworkDictCallback (CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType, SDOCallback_t Callback) |
| Used to send a SDO request frame to read in a distant node dictionnary. | |
| UNS8 | readNetworkDictCallbackAI (CO_Data *d, UNS8 nodeId, UNS16 index, UNS8 subIndex, UNS8 dataType, SDOCallback_t Callback) |
| Used to send a SDO request frame to read in a distant node dictionnary. | |
| UNS8 | getReadResultNetworkDict (CO_Data *d, UNS8 nodeId, void *data, UNS8 *size, UNS32 *abortCode) |
| Use this function after calling readNetworkDict to get the result. | |
| UNS8 | getWriteResultNetworkDict (CO_Data *d, UNS8 nodeId, UNS32 *abortCode) |
| Use this function after calling writeNetworkDict function to get the result of the write. | |
| UNS8 getReadResultNetworkDict | ( | CO_Data * | d, | |
| UNS8 | nodeId, | |||
| void * | data, | |||
| UNS8 * | size, | |||
| UNS32 * | abortCode | |||
| ) |
Use this function after calling readNetworkDict to get the result.
| *d | Pointer to a CAN object data structure | |
| nodeId | Node Id of the slave | |
| *data | Pointer to the datas | |
| *size | Pointer to the size | |
| *abortCode | Pointer to the abortcode. (0 = not available. Else : SDO abort code. (received if return SDO_ABORTED_RCV) |
UNS32 data; UNS8 size; readNetworkDict(0, 0x05, 0x1016, 1, 0) // get the data index 1016 subindex 1 of node 5 while (getReadResultNetworkDict (0, 0x05, &data, &size) != SDO_UPLOAD_IN_PROGRESS);
Definition at line 1532 of file sdo.c.
References getSDOlineOnUse(), and struct_CO_Data::transfers.

| UNS8 getWriteResultNetworkDict | ( | CO_Data * | d, | |
| UNS8 | nodeId, | |||
| UNS32 * | abortCode | |||
| ) |
Use this function after calling writeNetworkDict function to get the result of the write.
It is mandatory to call this function because it is releasing the line used for the transfer.
| *d | Pointer to a CAN object data structure | |
| nodeId | Node Id of the slave | |
| *abortCode | Pointer to the abortcode
|
UNS32 data = 0x50; UNS8 size; UNS32 abortCode; writeNetworkDict(0, 0x05, 0x1016, 1, size, &data) // write the data index 1016 subindex 1 of node 5 while (getWriteResultNetworkDict (0, 0x05, &abortCode) != SDO_DOWNLOAD_IN_PROGRESS);
Definition at line 1567 of file sdo.c.
References getSDOlineOnUse(), and struct_CO_Data::transfers.

| UNS8 readNetworkDict | ( | CO_Data * | d, | |
| UNS8 | nodeId, | |||
| UNS16 | index, | |||
| UNS8 | subIndex, | |||
| UNS8 | dataType | |||
| ) |
Used to send a SDO request frame to read.
| *d | Pointer to a CAN object data structure | |
| nodeId | Node Id of the slave | |
| index | At index indicated | |
| subIndex | At subIndex indicated | |
| dataType | (defined in objdictdef.h) : put "visible_string" for strings, 0 for integers or reals or other value. |
| UNS8 readNetworkDictCallback | ( | CO_Data * | d, | |
| UNS8 | nodeId, | |||
| UNS16 | index, | |||
| UNS8 | subIndex, | |||
| UNS8 | dataType, | |||
| SDOCallback_t | Callback | |||
| ) |
Used to send a SDO request frame to read in a distant node dictionnary.
The function Callback which must be defined in the user code is called at the end of the exchange. (on succes or abort).
| *d | Pointer on a CAN object data structure | |
| nodeId | Node Id of the slave | |
| index | At index indicated | |
| subIndex | At subIndex indicated | |
| dataType | (defined in objdictdef.h) : put "visible_string" for strings, 0 for integers or reals or other value. | |
| Callback | Callback function |
| UNS8 readNetworkDictCallbackAI | ( | CO_Data * | d, | |
| UNS8 | nodeId, | |||
| UNS16 | index, | |||
| UNS8 | subIndex, | |||
| UNS8 | dataType, | |||
| SDOCallback_t | Callback | |||
| ) |
Used to send a SDO request frame to read in a distant node dictionnary.
The function Callback which must be defined in the user code is called at the end of the exchange. (on succes or abort). First free SDO client parameter is automatically initialized for specific node if not already defined.
| *d | Pointer on a CAN object data structure | |
| nodeId | Node Id of the slave | |
| index | At index indicated | |
| subIndex | At subIndex indicated | |
| dataType | (defined in objdictdef.h) : put "visible_string" for strings, 0 for integers or reals or other value. | |
| Callback | Callback function |
Definition at line 1484 of file sdo.c.
References struct_CO_Data::firstIndex, struct_CO_Data::lastIndex, and struct_CO_Data::objdict.
| UNS8 writeNetworkDict | ( | CO_Data * | d, | |
| UNS8 | nodeId, | |||
| UNS16 | index, | |||
| UNS8 | subIndex, | |||
| UNS8 | count, | |||
| UNS8 | dataType, | |||
| void * | data | |||
| ) |
Used to send a SDO request frame to write the data at the index and subIndex indicated.
| *d | Pointer to a CAN object data structure | |
| nodeId | Node Id of the slave | |
| index | At index indicated | |
| subIndex | At subIndex indicated | |
| count | number of bytes to write in the dictionnary. | |
| dataType | (defined in objdictdef.h) : put "visible_string" for strings, 0 for integers or reals or other value. | |
| *data | Pointer to data |
Definition at line 1331 of file sdo.c.
References _writeNetworkDict().

| UNS8 writeNetworkDictCallBack | ( | CO_Data * | d, | |
| UNS8 | nodeId, | |||
| UNS16 | index, | |||
| UNS8 | subIndex, | |||
| UNS8 | count, | |||
| UNS8 | dataType, | |||
| void * | data, | |||
| SDOCallback_t | Callback | |||
| ) |
Used to send a SDO request frame to write in a distant node dictionnary.
The function Callback which must be defined in the user code is called at the end of the exchange. (on succes or abort).
| *d | Pointer to a CAN object data structure | |
| nodeId | Node Id of the slave | |
| index | At index indicated | |
| subIndex | At subIndex indicated | |
| count | number of bytes to write in the dictionnary. | |
| dataType | (defined in objdictdef.h) : put "visible_string" for strings, 0 for integers or reals or other value. | |
| *data | Pointer to data | |
| Callback | Callback function |
Definition at line 1337 of file sdo.c.
References _writeNetworkDict().

| UNS8 writeNetworkDictCallBackAI | ( | CO_Data * | d, | |
| UNS8 | nodeId, | |||
| UNS16 | index, | |||
| UNS8 | subIndex, | |||
| UNS8 | count, | |||
| UNS8 | dataType, | |||
| void * | data, | |||
| SDOCallback_t | Callback, | |||
| UNS8 | endianize | |||
| ) |
Used to send a SDO request frame to write in a distant node dictionnary.
The function Callback which must be defined in the user code is called at the end of the exchange. (on succes or abort). First free SDO client parameter is automatically initialized for specific node if not already defined.
| *d | Pointer to a CAN object data structure | |
| nodeId | Node Id of the slave | |
| index | At index indicated | |
| subIndex | At subIndex indicated | |
| count | number of bytes to write in the dictionnary. | |
| dataType | (defined in objdictdef.h) : put "visible_string" for strings, 0 for integers or reals or other value. | |
| *data | Pointer to data | |
| Callback | Callback function | |
| endianize | When not 0, data is endianized into network byte order when 0, data is not endianized and copied in machine native endianness |
Definition at line 1343 of file sdo.c.
References _writeNetworkDict(), struct_CO_Data::firstIndex, struct_CO_Data::lastIndex, and struct_CO_Data::objdict.

1.5.6