8.6.4.7 Function events_detach_user()
Detach a user peripheral from the event channel.
enum status_code events_detach_user( struct events_resource * resource, uint8_t user_id)
Deattach a user peripheral from the event channels so it does not receive any more events.
Data direction | Parameter name | Description |
---|---|---|
[in] |
resource |
Pointer to an event_resource struct instance |
[in] |
user_id |
A number identifying the user peripheral found in the device header file |
Returns
Status of the user detach procedure.
Return value | Description |
---|---|
STATUS_OK |
No errors detected when detaching the event user |