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.
Data direction | Parameter name | Description |
---|---|---|
[in] |
resource |
Pointer to an events_resource struct |
Returns
Status of the event software procedure.
Return value | Description |
---|---|
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 |