BLE adapter#
Modules#
Functions#
Creates a BLE adapter interface.
Handles BLE events.
Callback for kernel start event.
This function returns the MAC address of the BLE advertiser.
This function returns the MAC address of the BLE connection.
Function Documentation#
sid_pal_ble_adapter_create#
sid_error_t sid_pal_ble_adapter_create (sid_pal_ble_adapter_interface_t * handle)
Creates a BLE adapter interface.
Type | Direction | Argument Name | Description |
---|---|---|---|
sid_pal_ble_adapter_interface_t * | [inout] | handle | Pointer to the BLE adapter interface handle. |
This function initializes the BLE adapter interface and assigns it to the provided handle.
Returns
sid_error_t Error code indicating the result of the operation.
sl_ble_adapter_on_event#
void sl_ble_adapter_on_event (sl_bt_msg_t * evt)
Handles BLE events.
Type | Direction | Argument Name | Description |
---|---|---|---|
sl_bt_msg_t * | [in] | evt | Pointer to the Bluetooth event message. |
This function processes BLE events received from the Bluetooth stack.
sl_ble_adapter_on_kernel_start#
void sl_ble_adapter_on_kernel_start (void )
Callback for kernel start event.
Type | Direction | Argument Name | Description |
---|---|---|---|
void | N/A |
This function is called when the kernel starts.
ble_adapter_get_advertiser_address#
sid_error_t ble_adapter_get_advertiser_address (uint8_t * addr)
This function returns the MAC address of the BLE advertiser.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | [out] | addr | Pointer to the buffer where the MAC address will be stored. |
This MAC address is used during BLE advertising.
Returns
sid_error_t Error code indicating the result of the operation.
ble_adapter_get_connection_address#
sid_error_t ble_adapter_get_connection_address (uint8_t * addr)
This function returns the MAC address of the BLE connection.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint8_t * | [out] | addr | Pointer to the buffer where the MAC address will be stored. |
This MAC address is used during BLE connection.
Returns
sid_error_t Error code indicating the result of the operation.