bt_hc_interface_t 结构体参考文档

bt_hc_interface_t 结构体参考

#include < bt_hci_lib.h >

数据字段

size_t  尺寸
 
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 行


此结构体的文档是根据以下文件生成的: