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.

Table 8-7. Parameters
Data directionParameter nameDescription

[out]

resource

Pointer to a events_resource struct instance

[in]

config

Pointer to a events_config struct

Returns

Status of the configuration procedure.

Table 8-8. Return Values
Return valueDescription

STATUS_OK

Allocation and configuration went successful

STATUS_ERR_NOT_FOUND

No free event channel found