Infineon Logo AIROC BTSDK v4.6 - Documentation
 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Event Flag

Defines a group of APIs to expose the event flags RTOS functionality. More...

Functions

wiced_event_flags_t * wiced_rtos_create_event_flags (void)
 Allocates memory for a new event flags instance and returns the pointer. More...
 
wiced_result_t wiced_rtos_init_event_flags (wiced_event_flags_t *event_flags)
 Initializes the event flags instance (malloc'd by wiced_rtos_create_event_flags) More...
 
wiced_result_t wiced_rtos_wait_for_event_flags (wiced_event_flags_t *event_flags, uint32_t flags_to_wait_for, uint32_t *flags_set, wiced_bool_t clear_set_flags, wiced_event_flags_wait_option_t wait_option, uint32_t timeout_ms)
 Blocking wait for specific bit patter of event flags to be set elsewhere. More...
 
wiced_result_t wiced_rtos_set_event_flags (wiced_event_flags_t *event_flags, uint32_t flags_to_set)
 Set the event flags in logical OR operation. More...
 

Detailed Description

Defines a group of APIs to expose the event flags RTOS functionality.

Function Documentation

wiced_event_flags_t* wiced_rtos_create_event_flags ( void  )

Allocates memory for a new event flags instance and returns the pointer.

Parameters
void
Returns
  • NULL an error occurred and the instance was not allocated, do not init
  • valid pointer to event flags instance, which can now we initialized
wiced_result_t wiced_rtos_init_event_flags ( wiced_event_flags_t *  event_flags)

Initializes the event flags instance (malloc'd by wiced_rtos_create_event_flags)

Parameters
[in]event_flagsa pointer to the event flags handle
Returns
  • WICED_SUCCESS
  • WICED_ERROR
wiced_result_t wiced_rtos_set_event_flags ( wiced_event_flags_t *  event_flags,
uint32_t  flags_to_set 
)

Set the event flags in logical OR operation.

Parameters
[in]event_flagsa pointer to the event flags handle
[in]flags_to_seta group of event flags (ORed bit-fields) to set
Returns
  • WICED_SUCCESS
  • WICED_ERROR
wiced_result_t wiced_rtos_wait_for_event_flags ( wiced_event_flags_t *  event_flags,
uint32_t  flags_to_wait_for,
uint32_t *  flags_set,
wiced_bool_t  clear_set_flags,
wiced_event_flags_wait_option_t  wait_option,
uint32_t  timeout_ms 
)

Blocking wait for specific bit patter of event flags to be set elsewhere.

Parameters
[in]event_flagsa pointer to the event flags handle
[in]flags_to_wait_forbit pattern of event flags to wait for
[in]flags_setevent flag(s) set
[in]clear_set_flagsoption to clear set flag(s)
[in]wait_optionWAIT_FOR_ANY_EVENT or WAIT_FOR_ALL_EVENTS
[in]timeout_msmilliseconds to block
Returns
  • WICED_SUCCESS
  • WICED_ERROR