HCI Interface Functions

[English]

HCI_IF API Brief

Application

Brief

hci_if_find_handle_by_addr()

find connection handle by mobile addr

hci_if_find_addr_by_handle()

find mobile addr by HCI connection handle

hci_if_send_command()

app used to send HCI command

hci_if_conn_set_tws_role()

app used to update TWS role

hci_if_conn_set_profile_sync_done()

app used to update profile sync state done to host stack

hci_if_conn_get_profile_sync_done()

App other module used to get the profile sync state done flag

hci_if_register_TSS_or_sync_profile_done_cb()

Register tws switch or sync profile done callback handler

hci_if_get_sync_len()

return the HCI layer profile sync max len

hci_if_conn_sync()

TWS master used to sync profile to TWS slave

hci_if_conn_restore()

TWS slave used to receive profile to rebuild its host stack

hci_if_conn_restore_specific()

TWS slave update connection handle and recover relevant settings

hci_if_get_conn_bt_role()

app used to get the bt role of the current link

hci_if_get_conn_dir()

app used to get the current link direction

hci_if_get_conn_mode()

app used to the link’s ACL mode

hci_if_set_tx_data_allowed()

App used to set if data is TX allowed, when is TSS procedure

hci_if_get_tx_data_allowed()

bt audio interface used to get IF data is TX allowed

hci_if_create_connection()

APP used to create one ACL connection

hci_if_register_event_callback()

APP used to register event callback

bth_init()

hci layer initialise function API

hci_if_get_bt_last_two_record()

get last two device informaion

hci_if_get_conn_lk()

get dedicated bd_addr link key

hci_if_add_conn_lk()

updata link key of target devcie

hci_if_delete_conn_lk()

remove link key of target device

hci_if_register_lk_ctrl()

register the link key ctrl function

hci_if_register_le_lk_ctrl()

register the LE link key ctrl function

hci_if_write_scan_type()

set scan type

hci_if_get_local_addr()

get local BT address

hci_if_get_dev_info_ptr()

get remote device information

hci_if_disconnect_all_link()

disconnect all link befor the system shutdown

hci_if_enter_dut_mode()

Enter DUT mode

hci_if_enter_pair_mode()

BT module into pair mode

hci_if_is_le_handle()

check handle is BLE or not

hci_if_get_le_conn_interval()

get LE connection interval value by connection handle

hci_if_le_para_cfg()

set LE relevant configure into system

hci_if_get_mobile_link_cnt()

get connected mobile link count

hci_if_get_conn_state()

get connect state by using conneciotn handle

hci_if_send_temperature()

tell BT controller that the temperature is changed.

hci_if_set_local_addr()

update local MAC address

hci_if_set_psr_mode()

set psr mode

hci_if_get_psr_mode()

get psr mode

hci_if_get_local_EIR()

get local EIR

HCI_IF API Reference

Header File

Functions

uint16_t hci_if_find_handle_by_addr(btif_bd_addr_t *p_addr)

hci_if_find_handle_by_addr brief description

find connection handle by mobile addr

参数:

p_addr[in] remote MAC address

返回值:
  • 0xFFFF – not found

  • other – connection handle

返回:

connection handle

btif_bd_addr_t *hci_if_find_addr_by_handle(uint16_t handle)

hci_if_find_addr_by_handle brief description

find mobile addr by HCI connection handle

参数:

handle[in] connection handle

返回:

Pointer of device address

btif_ret_t hci_if_send_command(hci_if_cmd_opcode_t cmd_opcode, uint8_t *p_cmd, uint8_t cmd_len)

hci_if_send_command brief description

app used to send HCI command

参数:
  • cmd_opcode[in] HCI command opcode

  • p_cmd[in] data buffer for HCI command

  • cmd_len[in] data length for p_cmd

返回值:
  • 0 – success

  • other – fail

返回:

result

void hci_if_conn_set_tws_role(uint16_t handle, btif_tws_role_t tws_role)

hci_if_conn_set_tws_role brief description

app used to update TWS role

参数:
  • handle[in] conndetion handle

  • tws_role[in] TWS role value

返回:

N/A

void hci_if_conn_set_profile_sync_done(uint16_t handle, btif_sync_prof_status_t sync_status)

hci_if_conn_set_profile_sync_done brief description

app used to update profile sync state done to host stack

参数:
  • handle[in] connection handle

  • sync_status[in] sync status

返回:

N/A

btif_sync_prof_status_t hci_if_conn_get_profile_sync_done(uint16_t handle)

hci_if_conn_get_profile_sync_done brief description

App other module used to get the profile sync state done flag

参数:

handle[in] connection handle

返回:

sync profile status, see@btif_sync_prof_status_t

btif_ret_t hci_if_register_TSS_or_sync_profile_done_cb(hci_if_sync_profile_or_TSS_done_cb_fp cb)

hci_if_register_TSS_or_sync_profile_done_cb brief description

Register tws switch or sync profile done callback handler

参数:

cb[in] callback function

返回值:
  • 0 – success [BK_RET_OK]

  • other – fail

返回:

result

uint16_t hci_if_get_sync_len(btif_bd_addr_t *p_addr)

hci_if_get_sync_len brief description

return the HCI layer profile sync max len

参数:

addr[in] remote MAC address

返回:

data length

btif_ret_t hci_if_conn_sync(btif_bd_addr_t *p_addr, uint8_t *p_buff, uint16_t buff_len, uint16_t *p_length)

hci_if_conn_sync brief description

TWS master used to sync profile to TWS slave

参数:
  • p_addr[in] remote MAC addresss

  • p_buff[in] buffer used to sync profile data

  • buff_len[in] p_buff allocated length

  • p_length[in] sync profile data length will be sent

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t hci_if_conn_restore(btif_bd_addr_t *p_addr, uint8_t *p_buff, uint16_t length)

hci_if_conn_restore brief description

TWS slave used to receive profile to rebuild its host stack

参数:
  • p_addr[in] remote MAC address

  • p_buff[in] sync profile data

  • length[in] p_buff data length

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t hci_if_conn_restore_specific(btif_bd_addr_t *p_addr, uint16_t handle, uint16_t sync_handle)

hci_if_conn_restore_specific brief description

TWS slave update connection handle and recover relevant settings

参数:
  • p_addr[in] remote MAC address

  • handle[in] connection handle of ACL

  • sync_handle[in] connection handle of SCO

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_bt_role_t hci_if_get_conn_bt_role(uint16_t handle)

hci_if_get_conn_bt_role brief description

app used to get the bt role of the current link

参数:

handle[in] connection handle

返回:

role of conneciotn link

if_link_dir_t hci_if_get_conn_dir(uint16_t handle)

hci_if_get_conn_dir brief description

app used to get the current link direction

参数:

handle[in] connection handle

返回:

direction of link

if_link_mode_t hci_if_get_conn_mode(uint16_t handle)

hci_if_get_conn_mode brief description

app used to the link’s ACL mode

参数:

handle[in] connection handle

返回:

mode type @if_link_mode_t

btif_ret_t hci_if_set_tx_data_allowed(uint16_t handle, bool allowed)

hci_if_set_tx_data_allowed brief description

App used to set if data is TX allowed, when is TSS procedure

参数:
  • handle[in] connection handle

  • allowed[in] allow / deny

返回值:
  • 0 – success

  • other – fail

返回:

result

bool hci_if_get_tx_data_allowed(uint16_t handle)

hci_if_get_tx_data_allowed brief description

bt audio interface used to get IF data is TX allowed

参数:

handle[in] connection handle

返回值:
  • true – allow

  • fail – deny

返回:

bool

btif_ret_t hci_if_create_connection(btif_bd_addr_t *p_addr)

hci_if_create_connection brief description

APP used to create one ACL connection

参数:

p_addr[in] remote MAC address

返回值:
  • 0 – success

  • other – fail

返回:

result

void hci_if_register_event_callback(btif_hci_register_t *p_callback, btif_p_connection_req conn_req)

hci_if_register_event_callback brief description

APP used to register event callback

参数:
  • p_callback[in] hci event callback struct

  • conn_req[in] connection request event callback function

返回:

N/A

void bth_init(tws_ux_info_t *p_tws_ux_info)

bth_init brief description

hci layer initialise function API

返回:

N/A

uint8_t hci_if_get_bt_last_two_record(btif_bt_dev_info_t *p_dev_info1, btif_bt_dev_info_t *p_dev_info2)

hci_if_get_bt_last_two_record brief description

get last two device informaion

参数:
  • p_dev_info1[out] information for device one

  • p_dev_info2[out] information for device two

返回:

Found record count

btif_ret_t hci_if_get_conn_lk(btif_bd_addr_t *addr, btif_lk_t *p_lk)

hci_if_get_conn_lk brief description

get dedicated bd_addr link key

参数:
  • addr[in] remote MAC address

  • p_lk[out] link key value

返回值:
  • 0 – success

  • other – fail

返回:

result

hci_if_add_conn_lk brief description

updata link key of target devcie

参数:
  • p_addr[in] remote MAC

  • p_lk[in] link key value

  • key_type[in] link key type

返回值:
  • 0 – success

  • other – fail

返回:

result

btif_ret_t hci_if_delete_conn_lk(btif_bd_addr_t *p_addr)

hci_if_delete_conn_lk brief description

remove link key of target device

参数:

p_addr[in] remote MAC address

返回值:
  • 0 – success

  • other – fail

返回:

result

hci_if_register_lk_ctrl brief description

register the link key ctrl function

参数:

p_lk_ctrl[in] link key control function struct

返回:

N/A

hci_if_register_le_lk_ctrl brief description

register the LE link key ctrl function

参数:

p_lk_ctrl[in] link key control function struct

返回:

N/A

void hci_if_write_scan_type(uint8_t scan_type)

hci_if_write_scan_type brief description

set scan type

参数:

scan_type[in] scan type value

返回:

N/A

btif_bd_addr_t *hci_if_get_local_addr(void)

hci_if_get_local_addr brief description

get local BT address

返回:

local BT MAC address

btif_ret_t hci_if_get_dev_info_ptr(btif_bd_addr_t *p_addr, btif_bt_dev_info_t **p_dev_info)

hci_if_get_dev_info_ptr brief description

get remote device information

参数:
  • p_addr[in] remote MAC address

  • p_dev_info[out] remote device information data struct

返回值:
  • 0 – success

  • other – fail

返回:

result

void hci_if_disconnect_all_link(void)

hci_if_disconnect_all_link brief description

disconnect all link befor the system shutdown

返回:

N/A

void hci_if_enter_dut_mode(void)

hci_if_enter_dut_mode brief description

Enter DUT mode

返回:

N/A

void hci_if_enter_pair_mode(void)

hci_if_enter_pair_mode brief description

BT module into pair mode

返回:

N/A

bool hci_if_is_le_handle(uint16_t handle)

hci_if_is_le_handle brief description

check handle is BLE or not

返回值:
  • true – a LE conneciton handle

  • fail – not a LE conneciton handle

返回:

bool

uint16_t hci_if_get_le_conn_interval(uint16_t handle)

hci_if_get_le_conn_interval brief description

get LE connection interval value by connection handle

参数:

handle[in] connection handle

返回:

value

void hci_if_le_para_cfg(le_if_cfg_para_t *p_le_cfg)

hci_if_le_para_cfg brief description

set LE relevant configure into system

参数:

p_le_cfg[in] LE relevant configured parameter

返回:

N/A

hci_if_get_mobile_link_cnt brief description

get connected mobile link count

返回:

mobile count

btif_conn_state_t hci_if_get_conn_state(uint16_t handle)

hci_if_get_conn_state brief description

get connect state by using conneciotn handle

参数:

handle[in] connection handle

返回:

connection state @btif_conn_state_t

void hci_if_send_temperature(void)

hci_if_send_temperature brief description

tell BT controller that the temperature is changed.

返回:

N/A

void hci_if_set_local_addr(btif_bd_addr_t *p_addr)

hci_if_set_local_addr brief description

update local MAC address

参数:

p_addr[in] local MAC address

返回:

N/A

void hci_if_set_psr_mode(btif_bd_addr_t *p_addr, uint8_t psr_mode)

hci_if_set_psr_mode brief description

参数:

p_addr[in] local MAC address

Param :

uint8_t hci_if_get_psr_mode(btif_bd_addr_t *p_addr)

hci_if_get_psr_mode brief description

参数:

p_addr[in] local MAC address

返回:

psr mode

uint8_t *hci_if_get_local_EIR(void)

hci_if_get_local_EIR brief description

参数:

NA[in]

返回:

local EIR pointer

Structures

struct btif_hci_register_t
struct inq_mode_t

Public Members

uint8_t inq_mode

inquiry mode

struct if_le_set_pref_slave_duration_t

LE set preference slave duration data struct definition.

Public Members

uint16_t conhdl

Connection handle

uint16_t duration

Preferred event duration (N * 0.625 ms)

uint8_t single_tx

Slave transmits a single packet per connection event (False/True)

struct if_auto_accept_tws_t

TWS paired auto accept connection data struct definition.

Public Members

uint8_t filter_type

02 connection setup

uint8_t filter_condition

0x02 auto accept

btif_bd_addr_t addr

auto accept addr

uint8_t auto_accept_flag

02 auto accept and role switch disabled

struct if_set_conn_encrypt_t

set connect encrypt command data struct defintion

Public Members

uint16_t handle

connection handle

uint8_t encrypt

true or false for enable or disable

struct if_hci_event_t

HCI event header data struct defintion.

struct if_pscan_rep_mode_change_t

pscan repetation mode change data struct definition

struct if_cmd_cmp_t

command complete event data struct definition

struct if_setprofile_cmp_t

TWS private set profile complete event data struct definition.

struct if_role_discovery_t

role discovery event data struct definition

struct if_local_feature_cmp_t

read local supported features complete event data struct definition

struct if_ext_feature_cmp_t

read local extended features event data struct definition

struct if_btc_buffer_size_t

set host buffer size command data struct definition

struct if_inq_info_t

inquiry result event data struct definition

struct if_conn_complete_t

connection complete event data struct definition

struct if_conn_req_t

connection request event data struct definition

struct if_disc_complete_t

connection disconnect event data struct defintion

struct if_auth_complete_t

authentication complete event data struct definition

struct if_rnr_complete_t

remote name request complete event data struct definition

struct if_encry_change_t

encryption change event data struct defintion

struct if_change_lk_complete_t

change link key complete event data struct definition

struct if_master_lk_complete_t

select link key complete event data struct definition

struct if_remote_feature_complete_t

get remote feature complete event data struct definition

struct if_remote_version_complete_t

get remote version compelete event data struct definition

struct if_hci_qos_t

QoS setup command data struct definition.

struct if_qos_setup_complete_t

QoS setup complete event data struct definition.

Public Members

uint8_t flags

Reserved

struct if_cmd_complete_t

command complete event data struct definition

struct if_cmd_status_t

command status event data struct definition

struct if_hw_error_t

hardware error event data struct definition

struct if_flush_occured_t

flash occured event data struct definition

struct if_role_change_t

role changed event data struct definition

struct if_num_of_complete_t

set host number of completed packets command data struct definition

struct if_mode_change_t

mode change event data struct definition

struct if_return_lk_t

return link key event data struct definition

struct if_pin_code_req_t

PIN code request event data struct defintion.

struct if_lk_req_t

link key request event data struct definition

struct if_lk_notify_t

link key notification event data struct definition

struct if_data_buffer_overflow_t

data buffer overflow event data struct definition

struct if_max_slot_change_t

max slot change event data struct definition

struct if_clk_offset_complete_t

read clock offset complete event data struct definition

struct if_pac_type_change_t

connection packet type change event data struct definition

struct if_qos_violation_t

Qos violation event data struct definition.

struct if_pscan_rep_change_t

page scan repetition mode change event data struct definition

struct if_flow_spec_complete_t

flow specification complete event data struct definition

struct if_inq_info_with_rssi_t

inquiry result with RSSI event data struct definition

struct if_inquiry_info_rssi_pscan_mode_t
struct if_remote_ext_features_complete_t

read remote extended features complete event data struct definition

struct if_sync_conn_complete_t

synchronous connection complete event data struct definition

struct if_sync_conn_changed_t

synchronous connection changed event data struct defintion

struct if_sniff_subrating_t

sniff subrating event data struct definition

struct if_ext_inquiry_info_t

extended inquiry result event data struct definition

struct if_key_fresh_complete_t

encryption key refresh complete event data struct definition

struct if_io_cap_req_t

IO capability request event data struct definition.

struct if_io_cap_rsp_t

IO capability response event data struct definition.

struct if_user_confirm_req_t

user confirmation request event data struct definition

struct if_user_passkey_req_t

user passkey request event data struct definition

struct if_simple_pairing_complete_t

simple pairing complete event data struct definition

ink supervision timeout changed event data struct definition

struct if_user_passkey_notify_t

user passkey notification event data struct definition

struct if_remote_host_features_notify_t

remote host supported features notification event data struct definition

struct if_rssi_t

read RSSI command data struct definition

struct if_per_t
struct if_switch_role_t

role switch command data struct definition

struct if_disc_conn_t

disconnect command data struct definition

struct if_cancel_conn_t

Create connection cancel command data struct definition.

struct if_write_policy_t

write link policy settings command data struct definition

struct if_inquiry_t

inquiry command data struct definition

Public Members

uint8_t length

max amount of time (1.28s units)

struct if_wr_iac_lap_t

write current IAC LAP command data struct definition

struct if_inq_result_t

inquiry result event data struct definition

struct if_user_event_ctrl_cmd

user event control data struct definition

Public Members

uint8_t enable

true or false

uint8_t mode

mode value @btif_user_event_mode_t

uint32_t dur_time

time duration, unit ms

uint32_t interval

user event interval, unit ms

uint16_t le_handle

LE connection handle

void (*usr_cbk)(void)

user callback function - if bt controller service user event, then call this funtion

struct tws_snoop_connected_evt_t

TWS snoop connect event data struct definition.

struct tws_snoop_disconnected_evt_t

TWS snoop disconnect event data struct.

struct tws_switch_evt_t

TWS switch event data struct.

TWS private link information event data struct.

struct if_tws_event_t

TWS private event data struct.

struct freq_calib_reslut_t
struct if_create_conn_t

create connection data struct

struct tws_init_t

TWS private link data struct.

struct start_snoop_t

TWS start snoop data struct.

struct stop_snoop_t

TWS stop snoop data struct.

struct tws_switch_t

TWS switch command data struct.

struct tws_sch_cmd_t

TWS schedule command data struct.

struct set_bt_compatibility_t

set BT compatibility command data struct

struct set_le_compatibility_t

set BLE compatibility command data struct

struct if_accept_sync_t

accept sync parameter data struct

Public Members

btif_bd_addr_t addr

remote BT MAC address

uint32_t transmit_bw

transmit bandwith

uint32_t receive_bw

receive bandwith

uint16_t max_latency

max latency

uint16_t voice_setting

voice setting

uint8_t retransmit_effort

retransmit effoer

uint16_t packet_type

packet type of SCO

Beken private HCI command for set profile state.

Public Members

connection handle

profile index @btif_hci_profile_type_t

value for enable | disable

struct if_vs_sleep_ctrl_cmd

Beken private HCI command for sleep control.

Public Members

uint8_t mode

mode @if_sleep_ctrl_type

link key control callback function struct

Public Members

callback function for get link key

callback function for add link key

callback function for delete link key

callback function for get last two devices

callback function fro get specific device infotmation

LE link key control callback function struct.

Public Members

callback function for get link key

callback function for add link key

callback function for delete link key

Macros

HCI_SYNC_L2CAP_PENDING_CHAN_MAX_CNT
HCIIF_DEFAULT_TWS_INTERVAL
HCIIF_DEFAULT_TWS_DURATION
HCIIF_SPEECHING_TWS_DURATION
HCIIF_PROFILE_BUSY_TWS_INTERVAL
HCIIF_PROFILE_BUSY_TWS_DURATION
IF_PSCAN_EN
IF_ISCAN_EN
IF_BOTH_SCAN_EN
IF_NO_SCAN_EN
BTIF_HCI_INQ_CMP
BTIF_HCI_INQ_RESULT
BTIF_CONN_COMPLETE
BTIF_CONN_REQUEST
BTIF_DISCONNECT_COMP
BTIF_AUTH_COMP
BTIF_ENCRYPT_CHG
BTIF_ENCRYPT_CHG_V2
BTIF_CMD_COMP
BTIF_CMD_STATUS
BTIF_ROLE_CHG
BTIF_MODE_CHG
BTIF_KEY_REQUEST
BTIF_KEY_NOTIFY
BTIF_PSCAN_REP_CHANGE
BTIF_HCI_INQ_RESULT_EIR
BTIF_LE_EVENT
BTIF_VENDOR_EVENT
BTIF_CONN_RELEASED
BTIF_W4_OUT_CONNECT
BTIF_W4_IN_CONNECT
BTIF_CONN_CONNECTED
BTIF_W4_RELEASE
BTIF_INVALID_STATE
IF_POLICY_ROLE_SWITCH
IF_POLICY_HOLD_MODE
IF_POLICY_SNIFF_MODE
IF_ACTIVE
IF_HOLD
IF_SNIFF
IF_ERROR_MODE
TWS_EVENT_SNOOP_CONNECTED
TWS_EVENT_SNOOP_DISCONNECT
TWS_EVENT_SWITCH_COMPLETE
BT_CALIB_CMP_EVT_SUBCODE
SLEEP_MODE_NORMAL
SLEEP_MODE_TIME_WAKEUP
SLEEP_MODE_WAKEUP
BTIF_HCI_INQUIRY

LINK CONTROL CMD.

BTIF_HCI_CANCEL_INQURIY
BTIF_HCI_ENTER_PERIODIC_INQURIY
BTIF_HCI_EXIT_PERIODIC_INQURIY
BTIF_HCI_CREATE_CONNECTION
BTIF_HCI_DISC_CONNECTION
BTIF_HCI_CANCEL_CREATE_CONNECTION
BTIF_HCI_ACCEPT_CONN_REQUEST
BTIF_HCI_REJECT_CONN_REQUEST
BTIF_HCI_LK_REQ_REPLY
BTIF_HCI_LK_REQ_NEG_REPLY
BTIF_HCI_PIN_CODE_REQ_REPLY
BTIF_HCI_PIN_CODE_REQ_NEG_REPLY
BTIF_HCI_CHANGE_PACKET_TYPE
BTIF_HCI_AUTH_REQUEST
BTIF_HCI_SET_CONN_ENCRY
BTIF_HCI_CHANGE_CONN_LK
BTIF_HCI_MASTER_LK
BTIF_HCI_REMOTE_NAME_REQ
BTIF_HCI_REMOTE_NAME_CANCEL
BTIF_HCI_REMOTE_FEATURE
BTIF_HCI_REMOTE_EXT_FEATURE
BTIF_HCI_REMOTE_VERSION
BTIF_HCI_CLK_OFFSET
BTIF_HCI_READ_LMP_HANDLE
BTIF_HCI_SETUP_SYNC
BTIF_HCI_ACCEPT_SYNC_REQ
BTIF_HCI_REJECT_SYNC_REQ
BTIF_HCI_IO_CAP_REPLY
BTIF_HCI_USER_CONFIRM_REPLY
BTIF_HCI_USER_CONFIRM_NEG_REPLY
BTIF_HCI_USER_PASSKEY_REPLY
BTIF_HCI_USER_PASSKEY_NEG_REPLY
BTIF_HCI_IO_CAP_NEG_REPLY
BTIF_HCI_ENTER_SNIFF

LINK POLICY CMD.

BTIF_HCI_EXIT_SNIFF
BTIF_HCI_ROLE_DISCOVERY
BTIF_HCI_SWITCH_ROLE
BTIF_HCI_EN_DUT_MODE_CMD
BTIF_HCI_SET_EVENT_MASK

CONTROLLER & BASEBAND CMD.

BTIF_HCI_RESET
BTIF_HCI_SET_FILTER
BTIF_HCI_WRITE_LOCAL_NAME
BTIF_HCI_READ_CONN_ACCEPT_TO
BTIF_HCI_WRITE_CONN_ACCEPT_TO
BTIF_HCI_WRITE_PAGE_TO
BTIF_HCI_READ_SCAN_ENABLE
BTIF_HCI_WRITE_SCAN_ENABLE
BTIF_HCI_WRITE_PSCAN_ACT
BTIF_HCI_WRITE_ISCAN_ACT
BTIF_HCI_WRITE_COD
BTIF_HCI_WRITE_VOICE_SETTING
BTIF_HCI_SET_BTC_TO_BTH_FC
BTIF_HCI_HOST_BUFFER_SIZE
BTIF_HCI_HOST_NUM_OF_COMPLETE
BTIF_HCI_WRITE_IAC_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_SET_PATH_LOSS_REP_PARAM_CMD
BTIF_HCI_LE_SET_PATH_LOSS_REP_EN_CMD
BTIF_HCI_LE_SET_TX_POWER_REP_EN_CMD
BTIF_HCI_LE_TX_TEST_V4_CMD
BTIF_HCI_VS_SET_BD_ADDR_CMD_OPCODE

BEKEN private HCI command defintion.

HCI_VS_SET_PREF_SLAVE_EVT_DUR_CMD_OPCODE
BTIF_HCI_VS_SET_LE_BD_ADDR_CMD_OPCODE
BTIF_HCI_VS_CONFIG_BT_FEATURE_CMD_OPCODE
BTIF_HCI_SET_VENDOR_FEATURE_CMD_OPCODE
BTIF_HCI_SET_SPI_WR_RF_REGIST_CMD_OPCODE
BTIF_HCI_VS_SET_SYNC_CONN_EN_CMD_OPCODE
BTIF_HCI_START_SNOOP_CMD
BTIF_HCI_TWS_INIT_CMD
BTIF_HCI_TWS_STOP_SNOOP_CMD
BTIF_HCI_TWS_SWITCH_CMD
BTIF_HCI_TWS_SCH_CMD
BTIF_HCI_TWS_AUDIO_SYNC_CMD
BTIF_HCI_VS_USER_SLEEP_CTRL_CMD_OPCODE
BTIF_HCI_VS_USER_EVENT_CTRL_CMD_OPCODE
BTIF_HCI_VS_SET_CTUNE_CMD_OPCODE
BTIF_HCI_VS_SET_TX_PWR_LVL_CMD_OPCODE
BTIF_HCI_PROFILE_TYPE_A2DP_SNK
BTIF_HCI_PROFILE_TYPE_A2DP_SRC
BTIF_HCI_PROFILE_TYPE_A2DP_OOP_SNK
BTIF_HCI_PROFILE_TYPE_A2DP_OOP_SRC
STANDARD_INQUIRY

inquiry mode definition

RSSI_INQUIRY
EXTENDED_INQUIRY
BTIF_HCI_USER_EVENT_MODE_POD
BTIF_HCI_USER_EVENT_MODE_TWS
BTIF_USER_EVENT_MODE_LE
BTIF_USER_TEMPRATURE_CHANGED

Type Definitions

typedef uint8_t if_scan_en_t
typedef uint8_t btif_conn_state_t
typedef uint8_t if_sleep_ctrl_type
typedef uint16_t hci_if_cmd_opcode_t
typedef uint16_t btif_hci_profile_type_t

profile tyep definition

typedef uint8_t btif_user_event_mode_t

user event mode definition

typedef void (*hci_if_sync_profile_or_TSS_done_cb_fp)(uint16_t handle)
typedef btif_ret_t (*hci_if_get_lk_pfn)(btif_bd_addr_t *p_addr, btif_lk_t *p_lk)
typedef btif_ret_t (*hci_if_add_lk_pfn)(btif_bd_addr_t *p_addr, btif_lk_t *p_lk, if_link_key_type_t lk_type)
typedef btif_ret_t (*hci_if_delete_lk_pfn)(btif_bd_addr_t *p_addr)
typedef uint8_t (*hci_if_get_last_two_record_pfn)(btif_bt_dev_info_t *p_dev_info1, btif_bt_dev_info_t *p_dev_info2)
typedef btif_ret_t (*hci_if_get_dev_info_ptr_pfn)(btif_bd_addr_t *p_bd_addr, btif_bt_dev_info_t **p_dev_info)
typedef btif_ret_t (*hci_if_get_le_lk)(btif_bd_addr_t *p_addr, btif_le_lk_t **p_lk)
typedef btif_ret_t (*hci_if_add_le_lk)(btif_bd_addr_t addr, btif_le_lk_t *p_lk)
typedef btif_ret_t (*hci_if_delete_le_lk)(btif_bd_addr_t addr)

Enumerations

enum hci_if_le_meta_event

Values:

enumerator BTIF_LE_META_CON_CMP_EVT_SUBCODE
enumerator BTIF_LE_META_ADV_REPORT_EVT_SUBCODE
enumerator BTIF_LE_META_CON_UPDATE_CMP_EVT_SUBCODE
enumerator BTIF_LE_META_RD_REM_FEATS_CMP_EVT_SUBCODE
enumerator BTIF_LE_META_LTK_REQUEST_EVT_SUBCODE
enumerator BTIF_LE_META_REM_CON_PARAM_REQ_EVT_SUBCODE
enumerator BTIF_LE_META_DATA_LEN_CHG_EVT_SUBCODE
enumerator BTIF_LE_META_RD_LOC_P256_PUB_KEY_CMP_EVT_SUBCODE
enumerator BTIF_LE_META_GEN_DHKEY_CMP_EVT_SUBCODE
enumerator BTIF_LE_META_ENH_CON_CMP_EVT_SUBCODE
enumerator BTIF_LE_META_DIR_ADV_REP_EVT_SUBCODE
enumerator BTIF_LE_META_PHY_UPD_CMP_EVT_SUBCODE
enumerator BTIF_LE_META_EXT_ADV_REPORT_EVT_SUBCODE
enumerator BTIF_LE_META_PER_ADV_SYNC_EST_EVT_SUBCODE
enumerator BTIF_LE_META_PER_ADV_REPORT_EVT_SUBCODE
enumerator BTIF_LE_META_PER_ADV_SYNC_LOST_EVT_SUBCODE
enumerator BTIF_LE_META_SCAN_TIMEOUT_EVT_SUBCODE
enumerator BTIF_LE_META_ADV_SET_TERMINATED_EVT_SUBCODE
enumerator BTIF_LE_META_SCAN_REQ_RCVD_EVT_SUBCODE
enumerator BTIF_LE_META_CH_SEL_ALGO_EVT_SUBCODE
enumerator BTIF_LE_META_CONLESS_IQ_REPORT_EVT_SUBCODE
enumerator BTIF_LE_META_CON_IQ_REPORT_EVT_SUBCODE
enumerator BTIF_LE_META_CTE_REQ_FAILED_EVT_SUBCODE
enumerator BTIF_LE_META_PER_ADV_SYNC_TRANSF_REC_EVT_SUBCODE
enumerator BTIF_LE_META_CIS_ESTABLISHED_EVT_SUBCODE
enumerator BTIF_LE_META_CIS_REQUEST_EVT_SUBCODE
enumerator BTIF_LE_META_CREATE_BIG_CMP_EVT_SUBCODE
enumerator BTIF_LE_META_TERMINATE_BIG_CMP_EVT_SUBCODE
enumerator BTIF_LE_META_BIG_SYNC_ESTABLISHED_EVT_SUBCODE
enumerator BTIF_LE_META_BIG_SYNC_LOST_EVT_SUBCODE
enumerator BTIF_LE_META_REQ_PEER_SCA_CMP_EVT_SUBCODE
enumerator BTIF_LE_META_PATH_LOSS_THRESHOLD_EVT_SUBCODE
enumerator BTIF_LE_META_TX_POWER_REPORTING_EVT_SUBCODE
enumerator BTIF_LE_META_BIG_INFO_ADV_REPORT_EVT_SUBCODE
enumerator BTIF_LE_META_PER_ADV_SYNC_EST_EVT_V2_SUBCODE
enumerator BTIF_LE_META_ENH_CON_CMP_V2_EVT_SUBCODE