nrfxlib API 2.7.99
Loading...
Searching...
No Matches

◆ sdc_hci_cmd_ip_read_bd_addr()

uint8_t sdc_hci_cmd_ip_read_bd_addr ( sdc_hci_cmd_ip_read_bd_addr_return_t p_return)

#include <softdevice_controller/include/sdc_hci_cmd_info_params.h>

Read BD_ADDR.

The description below is extracted from Core_v5.4, Vol 4, Part E, Section 7.4.6

On a BR/EDR Controller, this command reads the Bluetooth Controller address (BD_ADDR). (See [Vol 2] Part B, Section 1.2 and [Vol 3] Part C, Section 3.2.1).

On an LE Controller, this command shall read the Public Device Address as defined in [Vol 6] Part B, Section 1.3. If this Controller does not have a Public Device Address, the value 0x000000000000 shall be returned.

On a BR/EDR/LE Controller, the public address shall be the same as the BD_ADDR.

Event(s) generated (unless masked away): When the HCI_Read_BD_ADDR command has completed, an HCI_Command_Complete event shall be generated.

Parameters
[out]p_returnExtra return parameters.
Return values
0if success.
Returns
Returns value between 0x01-0xFF in case of error. See Vol 2, Part D, Error for a list of error codes and descriptions.