8.6.4.4 Function events_attach_user()
Attach user to the event channel.
enum status_code events_attach_user( struct events_resource * resource, uint8_t user_id)
Attach a user peripheral to the event channel to receive events.
Data direction | Parameter name | Description |
---|---|---|
[in] |
resource |
Pointer to an events_resource struct instance |
[in] |
user_id |
A number identifying the user peripheral found in the device header file |
Returns
Status of the user attach procedure.
Return value | Description |
---|---|
STATUS_OK |
No errors detected when attaching the event user |