8.6.4.18 Function events_trigger()

Trigger software event.

enum status_code events_trigger( struct events_resource * resource)

Trigger an event by software.

Note: Software event works on either a synchronous path or resynchronized path, and edge detection must be configured to rising-edge detection.
Table 8-34. Parameters
Data directionParameter nameDescription

[in]

resource

Pointer to an events_resource struct

Returns

Status of the event software procedure.

Table 8-35. Return Values
Return valueDescription

STATUS_OK

No error was detected when software tigger signal was issued

STATUS_ERR_UNSUPPORTED_DEV

If the channel path is asynchronous and/or the edge detection is not set to RISING