bt_hc_interface_t 結構體參考資料
#include <
bt_hci_lib.h
>
資料欄位 |
|
size_t | size |
int(* | init )(const bt_hc_callbacks_t *p_cb, unsigned char *local_bdaddr) |
void(* | set_power )( bt_hc_chip_power_state_t state) |
int(* | lpm )( bt_hc_low_power_event_t event) |
void(* | preload )( TRANSAC transac) |
void(* | postload )( TRANSAC transac) |
int(* | transmit_buf )( TRANSAC transac, char *p_buf, int len) |
int(* | logging )( bt_hc_logging_state_t state, char *p_path, bool save_existing) |
void(* | cleanup )(void) |
int(* | tx_cmd )( TRANSAC transac, char *p_buf, int len) |
詳細說明
定義位於檔案 bt_hci_lib.h 的第 165 行。
欄位說明文件
void(* cleanup)(void) |
關閉介面
定義位於檔案 bt_hci_lib.h 的 194 行。
int(* init)(const bt_hc_callbacks_t *p_cb, unsigned char *local_bdaddr) |
開啟介面,並為此介面的實作提供回呼例程。
定義位於檔案 bt_hci_lib.h 的 173 行。
int(* logging)( bt_hc_logging_state_t state, char *p_path, bool save_existing) |
控制 HCI 記錄開/關
定義位於檔案 bt_hci_lib.h 的 191 行。
int(* lpm)( bt_hc_low_power_event_t event) |
設定低耗電模式喚醒
定義位於檔案 bt_hci_lib.h 的 179 行。
void(* postload)( TRANSAC transac) |
已呼叫後堆疊初始化
定義位於檔案 bt_hci_lib.h 的 185 行。
void(* preload)( TRANSAC transac) |
在堆疊初始化之前呼叫
定義位於檔案 bt_hci_lib.h 的 182 行。
void(* set_power)( bt_hc_chip_power_state_t state) |
晶片電源控制
定義位於檔案 bt_hci_lib.h 的 176 行。
size_t size |
設為 sizeof(bt_hc_interface_t)
定義位於檔案 bt_hci_lib.h 的 167 行。
int(* transmit_buf)( TRANSAC transac, char *p_buf, int len) |
傳輸緩衝區
定義位於檔案 bt_hci_lib.h 的 188 行。
int(* tx_cmd)( TRANSAC transac, char *p_buf, int len) |
將指令傳送至 hc 層 (例如 SCO 狀態)
定義位於檔案 bt_hci_lib.h 的 197 行。
這個結構體的說明文件是由下列檔案產生:
- external/bluetooth/bluedroid/hci/include/ bt_hci_lib.h