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
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


Definition at line 22906 of file /mnt/raid/workspaces/ws.wDIAeKYhQ/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h

sl_btmesh_event_pending#

bool sl_btmesh_event_pending (void )
Parameters
N/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


Definition at line 22914 of file /mnt/raid/workspaces/ws.wDIAeKYhQ/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h

sl_btmesh_event_pending_len#

uint32_t sl_btmesh_event_pending_len (void )
Parameters
N/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


Definition at line 22923 of file /mnt/raid/workspaces/ws.wDIAeKYhQ/overlay/gsdk/protocol/bluetooth/build/native/mesh_app/inc/sl_btmesh_api.h