Utility Functions#

Utility functions for applications on SoC.

Functions#

sl_status_t
sl_btmesh_pop_event(sl_btmesh_msg_t *event)

Function Documentation#

sl_btmesh_pop_event#

sl_status_t sl_btmesh_pop_event (sl_btmesh_msg_t * event)
Parameters
TypeDirectionArgument NameDescription
sl_btmesh_msg_t *N/Aevent

the pointer for storing the new event

Get the next event that requires processing by user application. Application is not blocked if no event is waiting.

Returns

  • SL_STATUS_OK if a new event is returned, or SL_STATUS_NOT_FOUND if no event is waiting; other value indicates an error occurred


sl_btmesh_event_pending#

bool sl_btmesh_event_pending (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

Check whether events are in queue pending for processing. Call sl_btmesh_pop_event to process pending events.

Returns

  • true if event is pending; false otherwise


sl_btmesh_event_pending_len#

uint32_t sl_btmesh_event_pending_len (void )
Parameters
TypeDirectionArgument NameDescription
voidN/A

Check whether events are in queue pending for processing and return the next event length in bytes if events are pending. Call sl_btmesh_pop_event to process pending events.

Returns

  • the next event length if event is pending; 0 otherwise