sl_bt_evt_system_resource_exhaustedSystem#

Indicates that a system resource has been exhausted during the operation of the Bluetooth stack.

Data Structures

struct  

sl_bt_evt_system_resource_exhausted_s

Data structure of the resource_exhausted event.

Macros

#define 

sl_bt_evt_system_resource_exhausted_id   0x080100a0

Identifier of the resource_exhausted event.

Detailed Description#

Indicates that a system resource has been exhausted during the operation of the Bluetooth stack.

If resource errors occur already when the Bluetooth stack is starting, the error is reported directly as a return value from sl_bt_stack_init (when the Bluetooth on-demand start component is not included in the application build), or from sl_bt_system_start_bluetooth (when the on-demand start component is included). The fields of this event indicate how many failures have occurred for a specific resource. If further resource failures occur while this event is already queued in the BGAPI event queue but not yet delivered to the application, the new failures are included in the already queued event. When the application receives this event, the fields represent the number of failures that have occurred since the previous sl_bt_evt_system_resource_exhausted event.


Data Structure Documentation#

sl_bt_evt_system_resource_exhausted_s#

struct sl_bt_evt_system_resource_exhausted_s

Data structure of the resource_exhausted event.

Data Fields

uint8_t

num_buffers_discarded

The system has temporarily run out of the pre-allocated data buffers that are allocated based on SL_BT_CONFIG_BUFFER_SIZE configuration and some expendable data or event had to be discarded to satisfy a non-expendble buffer allocation. A typical case is discarding scan reports when a large inflow of scan reports exceeds the speed at which the application drains the BGAPI event queue.

uint8_t

num_buffer_allocation_failures

The system has run out of the pre-allocated data buffers that are allocated based on SL_BT_CONFIG_BUFFER_SIZE configuration and a buffer allocation has failed.

uint8_t

num_heap_allocation_failures

The Bluetooth stack has failed to make an allocation from the heap. Note that only allocations made by the Bluetooth stack are detected and reported by this field. Allocation failures in other components that use sl_malloc() or malloc() are not included in this count.