8.6.4.3 Function events_allocate()
Allocate an event channel and set configuration.
enum status_code events_allocate( struct events_resource * resource, struct events_config * config)
Allocates an event channel from the event channel pool and sets the channel configuration.
Data direction | Parameter name | Description |
---|---|---|
[out] |
resource |
Pointer to a events_resource struct instance |
[in] |
config |
Pointer to a events_config struct |
Returns
Status of the configuration procedure.
Return value | Description |
---|---|
STATUS_OK |
Allocation and configuration went successful |
STATUS_ERR_NOT_FOUND |
No free event channel found |