Generic Access Profile defines the device discovery , link management and related security procedures. More...
Macros | |
#define | CO_BIT(pos) (1UL<<(pos)) |
#define | GAP_KEY_LEN (16) |
#define | GAP_ACTV_INVALID_IDX (0xFF) |
#define | GAP_LE_FEATS_LEN (0x08) |
#define | GAP_RAND_NB_LEN (0x08) |
#define | GAP_ADV_DATA_LEN (0x1F) |
#define | GAP_SCAN_RSP_DATA_LEN (0x1F) |
#define | GAP_MIN_OCTETS (27) |
#define | GAP_MIN_TIME (328) |
#define | GAP_MAX_OCTETS (251) |
#define | GAP_MAX_TIME (17040) |
#define | GAP_LE_CHNL_MAP_LEN (0x05) |
#define | GAP_MAX_LOCAL_NAME_LEN (0x12) |
#define | GAP_DEFAULT_LOCAL_NAME "SIFLI-BLE-DEV" |
Functions | |
uint8_t | ble_gap_set_dev_name (ble_gap_dev_name_t *dev) |
Set local device name. The event. More... | |
uint8_t | ble_gap_set_appearance (uint16_t appearance) |
Set local appearance for GAP service. More... | |
uint8_t | ble_gap_set_slave_prefer_param (ble_gap_slave_prf_param_t *param) |
Set local slave prefer param for GAP service. More... | |
uint8_t | ble_gap_configure_public_addr (bd_addr_t *addr) |
Configure local public address. More... | |
uint8_t | ble_gap_get_local_version (void) |
Get the local version supported by controller. The event BLE_GAP_LOCAL_VER_IND will indicate the result. More... | |
uint8_t | ble_gap_get_local_bdaddr (void) |
Get the local address. The event BLE_GAP_LOCAL_BD_ADDR_IND will indicate the result. More... | |
uint8_t | ble_gap_get_local_adv_tx_power (void) |
Get the local advertising channel tx power. The event BLE_GAP_LOCAL_ADV_TX_POWER_IND will indicate the result. More... | |
uint8_t | ble_gap_get_local_max_data_len (void) |
Get the local maximum data length support by controller. The event BLE_GAP_LOCAL_MAX_DATA_LEN_IND will indicate the result. More... | |
uint8_t | ble_gap_get_number_of_adv_sets (void) |
Get the maximum number of adv sets.The event BLE_GAP_NUMBER_ADV_SETS_IND will indicate the result. More... | |
uint8_t | ble_gap_get_local_max_adv_data_len (void) |
Get the maximum adv data len and scan rsp len supported by controller.The event BLE_GAP_LOCAL_MAX_ADV_DATA_LEN_IND will indicate the result. More... | |
uint8_t | ble_gap_set_white_list (ble_gap_white_list_t *white_list) |
Set the white list.The event BLE_GAP_SET_WHITE_LIST_CNF will indicate the result. More... | |
uint8_t | ble_gap_set_resolving_list (ble_gap_resolving_list_t *rl_list) |
Set the resolving list.The event BLE_GAP_SET_RESOLVING_LIST_CNF will indicate the result. More... | |
uint8_t | ble_gap_get_local_ral_addr (ble_gap_addr_t *addr) |
Get local ral address via peer ral address. The event BLE_GAP_RAL_ADDR_IND will indicate the result. More... | |
uint8_t | ble_gap_generate_rand_addr (uint8_t rand_type) |
Generate a random address by rand type. The event BLE_GAP_LOCAL_BD_ADDR_IND will indicate the result. More... | |
uint8_t | ble_gap_set_irk (ble_gap_sec_key_t *new_irk) |
Set new irk. The event BLE_GAP_SET_IRK_CNF will indicate the result. More... | |
uint8_t | ble_gap_create_advertising (ble_gap_adv_parameter_t *para) |
Create a new advertising set. The event BLE_GAP_ADV_CREATED_IND will receive if created successful. BLE_GAP_CREATE_ADV_CNF will indicate the created compelted. More... | |
uint8_t | ble_gap_set_adv_data (ble_gap_adv_data_t *data) |
Set advertising data, it should be set before advertising start. The event BLE_GAP_SET_ADV_DATA_CNF will indicate the result. More... | |
uint8_t | ble_gap_set_scan_rsp_data (ble_gap_adv_data_t *data) |
Set scan rsp data, it should be set before advertising start. The event BLE_GAP_SET_SCAN_RSP_DATA_CNF will indicate the result. More... | |
uint8_t | ble_gap_start_advertising (ble_gap_adv_start_t *adv_start) |
Start advertising. The event BLE_GAP_START_ADV_CNF will indicate the result. More... | |
uint8_t | ble_gap_stop_advertising (ble_gap_adv_stop_t *adv_stop) |
Stop advertising. The event BLE_GAP_STOP_ADV_CNF will indicate the result. More... | |
uint8_t | ble_gap_delete_advertising (ble_gap_adv_delete_t *del) |
Delete advertising set. The event BLE_GAP_DELETE_ADV_CNF will indicate the result. More... | |
uint8_t | ble_gap_scan_start (ble_gap_scan_start_t *scan_param) |
Start scan. The event BLE_GAP_SCAN_START_CNF will indicate the result. More... | |
uint8_t | ble_gap_scan_stop (void) |
Stop scan.The event BLE_GAP_SCAN_STOP_CNF will indicate the result. More... | |
uint8_t | ble_gap_create_connection (ble_gap_connection_create_param_t *conn_param) |
Start connect peer device. The event BLE_GAP_CREATE_CONNECTION_CNF will indicate connect operation result. BLE_GAP_CONNECTED_IND will indicate peer device connected. More... | |
uint8_t | ble_gap_connect_response (ble_gap_connection_response_t *rsp) |
Provide link information for the connected request. More... | |
uint8_t | ble_gap_cancel_create_connection (void) |
Start connect peer device. The event BLE_GAP_CANCEL_CREATE_CONNECTION_CNF indicate the result. More... | |
uint8_t | ble_gap_disconnect (ble_gap_disconnect_t *conn) |
Disconnect peer device. The event BLE_GAP_DISCONNECT_CNF will indicate disconnect operation result. BLE_GAP_DISCONNECTED_IND will indicate peer device disconnected. More... | |
uint8_t | ble_gap_get_remote_version (ble_gap_get_remote_version_t *ver) |
Get the peer device Bluetooth version. The event BLE_GAP_REMOTE_VER_IND will indicate the result. More... | |
uint8_t | ble_gap_get_remote_feature (bt_gap_get_remote_feature_t *feature) |
Get the peer device supported features. The event BLE_GAP_REMOTE_FEATURE_IND will indicate the result. More... | |
uint8_t | ble_gap_get_remote_rssi (ble_gap_get_rssi_t *rssi) |
Get the peer device RSSI. The event BLE_GAP_REMOTE_RSSI_IND will indicate the result. More... | |
uint8_t | ble_gap_get_remote_physical (ble_gap_get_phy_t *phy) |
Get the peer device physical configuration. The event BLE_GAP_REMOTE_PHY_IND will indicate the result. More... | |
uint8_t | ble_gap_update_conn_param (ble_gap_update_conn_param_t *conn_para) |
Update the connection parameters with peer device. The event BLE_GAP_UPDATE_CONN_PARAM_IND will indicate the result. More... | |
uint8_t | ble_gap_lepsm_register (void) |
uint8_t | ble_gap_resolve_address (ble_gap_resolve_address_t *req) |
Resolve RPA address with IRKs. The event BLE_GAP_RESOLVE_ADDRESS_CNF will indicate the result. BLE_GAP_SOLVED_ADDRESS_IND will indicate address is solved with the correct IRK. More... | |
uint8_t | ble_gap_bond (ble_gap_bond_t *bond) |
Bond with peer device. The API could be only called via master device. Slave device can use ble_gap_security_request(). The event BLE_GAP_BOND_CNF indicate the bond command result. The event BLE_GAP_BOND_IND will indicate the bond process result. More... | |
uint8_t | ble_gap_bond_confirm (ble_gap_bond_confirm_t *cfm) |
Reponse with bond request from peer device. Should call this API after received BLE_GAP_BOND_REQ_IND. The event BLE_GAP_BOND_IND will indicate the bond result. More... | |
uint8_t | ble_gap_encrypt_confirm (ble_gap_encrypt_confirm_t *cfm) |
Reponse with encrypt request from peer device. Should call this API after received BLE_GAP_ENCRYPT_REQ_IND. The event BLE_GAP_ENCRYPT_IND will indicate the result. More... | |
uint8_t | ble_gap_security_request (ble_gap_sec_req_t *req) |
Request master initiates a security with associated parameters which only could be called as slave role. Master device can use ble_gap_bond(). The event BLE_GAP_SECURITY_REQUEST_CNF will indicate the result of request. More... | |
uint8_t | ble_gap_update_phy (ble_gap_update_phy_t *phy) |
Update phy configuration with peer device. The event BLE_GAP_PHY_UPDATE_IND will indicate the result. More... | |
uint8_t | ble_gap_update_data_len (ble_gap_update_data_len_t *req) |
Update data length with peer device. The event BLE_GAP_UPDATE_DATA_LENGTH_IND will indicate the result. More... | |
uint8_t | ble_gap_update_channel_map (ble_gap_update_channel_map_t *map) |
Update channel map to avoid air collision. The event BLE_GAP_UPDATE_CHANNEL_MAP_CNF and BLE_GAP_UPDATE_CHANNEL_MAP_IND will indicate the result. More... | |
uint8_t | ble_get_local_irk (ble_gap_sec_key_t *local_irk) |
Get local irk. More... | |
ble_common_update_type_t | ble_request_local_irk (ble_gap_sec_key_t *local_irk) |
User implementation function. Stack will call this function to get local irk. More... | |
uint8_t | ble_gap_aes_h6 (uint8_t *w, uint8_t *key_id, uint32_t cb_request) |
uint8_t | ble_gap_aes_h7 (uint8_t *salt, uint8_t *w, uint32_t metainfo) |
Generic Access Profile defines the device discovery , link management and related security procedures.
#define CO_BIT | ( | pos | ) | (1UL<<(pos)) |
return Value with one bit set. There is no return type since this is a macro and this will be resolved by the compiler upon assignment to an l-value.
#define GAP_ACTV_INVALID_IDX (0xFF) |
Invalid activity identifier.
#define GAP_ADV_DATA_LEN (0x1F) |
The maximum ADV Data length.
#define GAP_DEFAULT_LOCAL_NAME "SIFLI-BLE-DEV" |
Default Local device name.
#define GAP_KEY_LEN (16) |
Key length.
#define GAP_LE_CHNL_MAP_LEN (0x05) |
LE Channel map length.
#define GAP_LE_FEATS_LEN (0x08) |
LE Feature Flags Length.
#define GAP_MAX_LOCAL_NAME_LEN (0x12) |
Maximum Local device name.
#define GAP_MAX_OCTETS (251) |
maximum data size in octets.
#define GAP_MAX_TIME (17040) |
maximum data size in octets.
#define GAP_MIN_OCTETS (27) |
minimum data size in octets.
#define GAP_MIN_TIME (328) |
minimum data transfer time in us.
#define GAP_RAND_NB_LEN (0x08) |
Random number length.
#define GAP_SCAN_RSP_DATA_LEN (0x1F) |
The maximum scan response length.
The struture of BLE_GAP_CANCEL_CREATE_CONNECTION_CNF.
The struture of BLE_GAP_CREATE_ADV_CNF.
The strucutre of BLE_GAP_CREATE_CONNECTION_CNF.
The struture of BLE_GAP_RESOLVE_ADDRESS_CNF.
The strcture of BLE_GAP_SET_ADV_DATA_CNF.
The struture of BLE_GAP_SET_IRK_CNF.
The struture of BLE_GAP_SET_RESOLVING_LIST_CNF.
The strcture of BLE_GAP_SET_SCAN_RSP_DATA_CNF.
The struture of BLE_GAP_SET_WHITE_LIST_CNF.
The struture of BLE_GAP_SCAN_START_CNF.
The struture of BLE_GAP_SCAN_STOP_CNF.
enum adv_channel_map |
Advertising channels enables.
enum adv_filter_policy |
Advertising filter policy.
enum ble_gap_adv_type |
GAP Advertising Flags.
enum ble_gap_event_t |
GAP events that notify user.
enum gap_auth |
Authentication Requirements.
enum gap_auth_mask |
enum gap_io_cap |
enum gap_kdist |
enum gap_modulation_idx |
enum gap_oob |
enum gap_phy |
enum gap_phy_type |
enum gap_pkt_pld_type |
Packet Payload type for test mode.
enum gap_rnd_addr_type |
enum gap_sec_req |
Security Defines.
enum gap_test_phy |
Enumeration of TX/RX PHY used for Test Mode.
enum gap_tk_type |
enum gapc_bond |
Bond event type.
enum gapc_phy_option |
Option for PHY configuration.
enum gapm_adv_disc_mode |
enum gapm_adv_prop |
Advertising properties bit field bit value.
enum gapm_adv_prop_pos |
Advertising properties bit field bit positions.
enum gapm_adv_report_info |
enum gapm_adv_report_type |
Advertising report type.
enum gapm_adv_type |
enum gapm_init_prop |
Initiating Properties.
enum gapm_init_type |
Initiating Types.
enum gapm_leg_adv_prop |
Advertising properties configurations for legacy advertising.
enum gapm_own_addr |
enum gapm_scan_prop |
Scanning properties bit field bit value.
enum gapm_scan_type |
Scanning Types.
uint8_t ble_gap_bond | ( | ble_gap_bond_t * | bond | ) |
Bond with peer device. The API could be only called via master device. Slave device can use ble_gap_security_request(). The event BLE_GAP_BOND_CNF indicate the bond command result. The event BLE_GAP_BOND_IND will indicate the bond process result.
[in] | bond | bond information. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_bond_confirm | ( | ble_gap_bond_confirm_t * | cfm | ) |
Reponse with bond request from peer device. Should call this API after received BLE_GAP_BOND_REQ_IND. The event BLE_GAP_BOND_IND will indicate the bond result.
[in] | cfm | confirm parameters. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_cancel_create_connection | ( | void | ) |
Start connect peer device. The event BLE_GAP_CANCEL_CREATE_CONNECTION_CNF indicate the result.
The | status of send to BLE subsystem. |
uint8_t ble_gap_configure_public_addr | ( | bd_addr_t * | addr | ) |
Configure local public address.
[in] | addr | public address. |
The | status of configure. |
uint8_t ble_gap_connect_response | ( | ble_gap_connection_response_t * | rsp | ) |
Provide link information for the connected request.
[in] | rsp | connection information. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_create_advertising | ( | ble_gap_adv_parameter_t * | para | ) |
Create a new advertising set. The event BLE_GAP_ADV_CREATED_IND will receive if created successful. BLE_GAP_CREATE_ADV_CNF will indicate the created compelted.
[in] | para | advertising parameters. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_create_connection | ( | ble_gap_connection_create_param_t * | conn_param | ) |
Start connect peer device. The event BLE_GAP_CREATE_CONNECTION_CNF will indicate connect operation result. BLE_GAP_CONNECTED_IND will indicate peer device connected.
[in] | conn_param | connection parameters. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_delete_advertising | ( | ble_gap_adv_delete_t * | del | ) |
Delete advertising set. The event BLE_GAP_DELETE_ADV_CNF will indicate the result.
[in] | del | delete advertising parameter. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_disconnect | ( | ble_gap_disconnect_t * | conn | ) |
Disconnect peer device. The event BLE_GAP_DISCONNECT_CNF will indicate disconnect operation result. BLE_GAP_DISCONNECTED_IND will indicate peer device disconnected.
[in] | conn | disconnect parameters. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_encrypt_confirm | ( | ble_gap_encrypt_confirm_t * | cfm | ) |
Reponse with encrypt request from peer device. Should call this API after received BLE_GAP_ENCRYPT_REQ_IND. The event BLE_GAP_ENCRYPT_IND will indicate the result.
[in] | cfm | encrypt confirm parameters. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_generate_rand_addr | ( | uint8_t | rand_type | ) |
Generate a random address by rand type. The event BLE_GAP_LOCAL_BD_ADDR_IND will indicate the result.
[in] | rand_type | address random type.( |
The | status of send to BLE subsystem. |
uint8_t ble_gap_get_local_adv_tx_power | ( | void | ) |
Get the local advertising channel tx power. The event BLE_GAP_LOCAL_ADV_TX_POWER_IND will indicate the result.
The | status of send to BLE subsystem. |
uint8_t ble_gap_get_local_bdaddr | ( | void | ) |
Get the local address. The event BLE_GAP_LOCAL_BD_ADDR_IND will indicate the result.
The | status of send to BLE subsystem. |
uint8_t ble_gap_get_local_max_adv_data_len | ( | void | ) |
Get the maximum adv data len and scan rsp len supported by controller.The event BLE_GAP_LOCAL_MAX_ADV_DATA_LEN_IND will indicate the result.
The | status of send to BLE subsystem. |
uint8_t ble_gap_get_local_max_data_len | ( | void | ) |
Get the local maximum data length support by controller. The event BLE_GAP_LOCAL_MAX_DATA_LEN_IND will indicate the result.
The | status of send to BLE subsystem. |
uint8_t ble_gap_get_local_ral_addr | ( | ble_gap_addr_t * | addr | ) |
Get local ral address via peer ral address. The event BLE_GAP_RAL_ADDR_IND will indicate the result.
[in] | addr | Peer ral address. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_get_local_version | ( | void | ) |
Get the local version supported by controller. The event BLE_GAP_LOCAL_VER_IND will indicate the result.
The | status of send to BLE subsystem. |
uint8_t ble_gap_get_number_of_adv_sets | ( | void | ) |
Get the maximum number of adv sets.The event BLE_GAP_NUMBER_ADV_SETS_IND will indicate the result.
The | status of send to BLE subsystem. |
uint8_t ble_gap_get_remote_feature | ( | bt_gap_get_remote_feature_t * | feature | ) |
Get the peer device supported features. The event BLE_GAP_REMOTE_FEATURE_IND will indicate the result.
[in] | feature | version parameters. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_get_remote_physical | ( | ble_gap_get_phy_t * | phy | ) |
Get the peer device physical configuration. The event BLE_GAP_REMOTE_PHY_IND will indicate the result.
[in] | phy | parameters. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_get_remote_rssi | ( | ble_gap_get_rssi_t * | rssi | ) |
Get the peer device RSSI. The event BLE_GAP_REMOTE_RSSI_IND will indicate the result.
[in] | rssi | parameters. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_get_remote_version | ( | ble_gap_get_remote_version_t * | ver | ) |
Get the peer device Bluetooth version. The event BLE_GAP_REMOTE_VER_IND will indicate the result.
[in] | ver | version parameters. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_resolve_address | ( | ble_gap_resolve_address_t * | req | ) |
Resolve RPA address with IRKs. The event BLE_GAP_RESOLVE_ADDRESS_CNF will indicate the result. BLE_GAP_SOLVED_ADDRESS_IND will indicate address is solved with the correct IRK.
[in] | req | resolve address and possible IRKs. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_scan_start | ( | ble_gap_scan_start_t * | scan_param | ) |
Start scan. The event BLE_GAP_SCAN_START_CNF will indicate the result.
[in] | scan_param | Scan start parameters. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_scan_stop | ( | void | ) |
Stop scan.The event BLE_GAP_SCAN_STOP_CNF will indicate the result.
The | status of send to BLE subsystem. |
uint8_t ble_gap_security_request | ( | ble_gap_sec_req_t * | req | ) |
Request master initiates a security with associated parameters which only could be called as slave role. Master device can use ble_gap_bond(). The event BLE_GAP_SECURITY_REQUEST_CNF will indicate the result of request.
[in] | req | Security properties. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_set_adv_data | ( | ble_gap_adv_data_t * | data | ) |
Set advertising data, it should be set before advertising start. The event BLE_GAP_SET_ADV_DATA_CNF will indicate the result.
[in] | data | advertising data. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_set_appearance | ( | uint16_t | appearance | ) |
Set local appearance for GAP service.
[in] | appearance | local appearance. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_set_dev_name | ( | ble_gap_dev_name_t * | dev | ) |
Set local device name. The event.
[in] | dev | local device name. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_set_irk | ( | ble_gap_sec_key_t * | new_irk | ) |
Set new irk. The event BLE_GAP_SET_IRK_CNF will indicate the result.
[in] | new_irk | new irk to set. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_set_resolving_list | ( | ble_gap_resolving_list_t * | rl_list | ) |
Set the resolving list.The event BLE_GAP_SET_RESOLVING_LIST_CNF will indicate the result.
[in] | rl_list | Devices in resolving list. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_set_scan_rsp_data | ( | ble_gap_adv_data_t * | data | ) |
Set scan rsp data, it should be set before advertising start. The event BLE_GAP_SET_SCAN_RSP_DATA_CNF will indicate the result.
[in] | data | scan response data. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_set_slave_prefer_param | ( | ble_gap_slave_prf_param_t * | param | ) |
Set local slave prefer param for GAP service.
[in] | param | local slave prefer param. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_set_white_list | ( | ble_gap_white_list_t * | white_list | ) |
Set the white list.The event BLE_GAP_SET_WHITE_LIST_CNF will indicate the result.
[in] | white_list | Devices in white list. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_start_advertising | ( | ble_gap_adv_start_t * | adv_start | ) |
Start advertising. The event BLE_GAP_START_ADV_CNF will indicate the result.
[in] | adv_start | start advertising parameter. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_stop_advertising | ( | ble_gap_adv_stop_t * | adv_stop | ) |
Stop advertising. The event BLE_GAP_STOP_ADV_CNF will indicate the result.
[in] | adv_stop | stop advertising parameter. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_update_channel_map | ( | ble_gap_update_channel_map_t * | map | ) |
Update channel map to avoid air collision. The event BLE_GAP_UPDATE_CHANNEL_MAP_CNF and BLE_GAP_UPDATE_CHANNEL_MAP_IND will indicate the result.
[in] | map | Channel updated parameters. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_update_conn_param | ( | ble_gap_update_conn_param_t * | conn_para | ) |
Update the connection parameters with peer device. The event BLE_GAP_UPDATE_CONN_PARAM_IND will indicate the result.
[in] | conn_para | Connection update parameters. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_update_data_len | ( | ble_gap_update_data_len_t * | req | ) |
Update data length with peer device. The event BLE_GAP_UPDATE_DATA_LENGTH_IND will indicate the result.
[in] | req | Updated parameters. |
The | status of send to BLE subsystem. |
uint8_t ble_gap_update_phy | ( | ble_gap_update_phy_t * | phy | ) |
Update phy configuration with peer device. The event BLE_GAP_PHY_UPDATE_IND will indicate the result.
[in] | phy | Phy updated parameters. |
The | status of send to BLE subsystem. |
uint8_t ble_get_local_irk | ( | ble_gap_sec_key_t * | local_irk | ) |
Get local irk.
[out] | local_irk | Local irk. |
0 | if local irk could get. |
ble_common_update_type_t ble_request_local_irk | ( | ble_gap_sec_key_t * | local_irk | ) |
User implementation function. Stack will call this function to get local irk.
[out] | local_irk | Local irk. |
BLE_UPDATE_NO_UPDATE | No need to update. BLE_UPDATE_ONCE Only update if public address not existed. BLE_UPDATE_ALWAYS Always use this public address. |