COTPdoTrigObj

Description

This function allows the application to trigger a TPDO event for the given object entry. The event will be distributed to all TPDOs, which holds an active mapping entry to this object entry.

Prototype

void COTPdoTrigObj(CO_TPDO *pdo, CO_OBJ *obj);

ParameterDescription
pdoPointer to start of TPDO array
objPointer to object entry

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 all TPDOs of the CANopen node AppNode, which contains the hypothetical object directory entry "[1234:56]".


    CO_OBJ  *entry;
    :
    entry = CODirFind(&(AppNode.Dir), CO_DEV(0x1234, 0x56));
    COTPdoTrigObj(&(AppNode.TPdo[0]), entry);
    :