|
Functions | |
| UNS8 | sendPDOrequest (CO_Data *d, UNS16 RPDOIndex) |
| Transmit a PDO request frame on the network to the slave. | |
| UNS8 | _sendPDOevent (CO_Data *d, UNS8 isSyncEvent) |
| Function iterates on all TPDO and look TPDO transmit type and content change before sending it. | |
| void | PDOEventTimerAlarm (CO_Data *d, UNS32 pdoNum) |
| Set timer for PDO event. | |
| void | PDOInhibitTimerAlarm (CO_Data *d, UNS32 pdoNum) |
| Inhibit timer for PDO event. | |
| UNS8 _sendPDOevent | ( | CO_Data * | d, | |
| UNS8 | isSyncEvent | |||
| ) |
Function iterates on all TPDO and look TPDO transmit type and content change before sending it.
| *d | Pointer on a CAN object data structure | |
| isSyncEvent | ||
| d | ||
| isSyncEvent |
Definition at line 527 of file pdo.c.
References buildPDO(), struct_CO_Data::canHandle, Message::cob_id, Message::data, DelAlarm(), struct_s_PDO_status::event_timer, struct_CO_Data::firstIndex, struct_s_PDO_status::inhibit_timer, struct_s_PDO_status::last_message, struct_CO_Data::lastIndex, Message::len, struct_CO_Data::objdict, struct_CO_Data::PDO_status, PDOEventTimerAlarm(), PDOInhibitTimerAlarm(), SetAlarm(), and struct_s_PDO_status::transmit_type_parameter.
Referenced by PDOEventTimerAlarm(), PDOInhibitTimerAlarm(), PDOInit(), and sendPDOevent().

| void PDOEventTimerAlarm | ( | CO_Data * | d, | |
| UNS32 | pdoNum | |||
| ) |
Set timer for PDO event.
| *d | Pointer on a CAN object data structure | |
| pdoNum | The PDO number |
Definition at line 498 of file pdo.c.
References _sendPDOevent(), Message::cob_id, struct_s_PDO_status::event_timer, struct_s_PDO_status::last_message, and struct_CO_Data::PDO_status.
Referenced by _sendPDOevent(), proceedPDO(), and TPDO_Communication_Parameter_Callback().

| void PDOInhibitTimerAlarm | ( | CO_Data * | d, | |
| UNS32 | pdoNum | |||
| ) |
Inhibit timer for PDO event.
| *d | Pointer on a CAN object data structure | |
| pdoNum | The PDO number |
Definition at line 508 of file pdo.c.
References _sendPDOevent(), struct_s_PDO_status::inhibit_timer, struct_CO_Data::PDO_status, and struct_s_PDO_status::transmit_type_parameter.
Referenced by _sendPDOevent().

| UNS8 sendPDOrequest | ( | CO_Data * | d, | |
| UNS16 | RPDOIndex | |||
| ) |
Transmit a PDO request frame on the network to the slave.
| *d | Pointer on a CAN object data structure | |
| RPDOIndex | Index of the receive PDO |
0xFF if error, other in success.
| d | ||
| cobId |
Definition at line 121 of file pdo.c.
References struct_CO_Data::canHandle, Message::cob_id, struct_CO_Data::firstIndex, struct_CO_Data::lastIndex, Message::len, struct_CO_Data::objdict, and Message::rtr.
1.5.6