COTPdoTrigPdo

Description

This function allows the application to trigger a TPDO event for the given TPDO number.

Prototype

void COTPdoTrigPdo(CO_TPDO *pdo, CPU_INT16U num);

ParameterDescription
pdoPointer to start of TPDO array
numNumber of TPDO (0..511)

Returned Value

none

Additional Information

This function can be removed from the CANopen device by disabling the transmit PDO support with the configuration CO_TPDO.N.

Example

The following example triggers the transmission of TPDO #3 of the CANopen node AppNode.


    :
    COTPdoTrigPdo(&(AppNode.TPdo[0]), 3);
    :