bthh_interface_t 結構體參考資料
bthh_interface_t 結構體參考資料
#include <
bt_hh.h
>
資料欄位 |
|
size_t | size |
bt_status_t (* | init )( bthh_callbacks_t *callbacks) |
bt_status_t (* | connect )(bt_bdaddr_t *bd_addr) |
bt_status_t (* | disconnect )(bt_bdaddr_t *bd_addr) |
bt_status_t (* | virtual_unplug )(bt_bdaddr_t *bd_addr) |
bt_status_t (* | set_info )(bt_bdaddr_t *bd_addr, bthh_hid_info_t hid_info) |
bt_status_t (* | get_protocol )(bt_bdaddr_t *bd_addr, bthh_protocol_mode_t protocolMode) |
bt_status_t (* | set_protocol )(bt_bdaddr_t *bd_addr, bthh_protocol_mode_t protocolMode) |
bt_status_t (* | get_report )(bt_bdaddr_t *bd_addr, bthh_report_type_t reportType, uint8_t reportId, int bufferSize) |
bt_status_t (* | set_report )(bt_bdaddr_t *bd_addr, bthh_report_type_t reportType, char *report) |
bt_status_t (* | send_data )(bt_bdaddr_t *bd_addr, char *data) |
void(* | cleanup )(void) |
詳細說明
欄位說明文件
void(* cleanup)(void) |
關閉介面。
定義位於檔案 bt_hh.h 的第 178 行 。
bt_status_t (* connect)(bt_bdaddr_t *bd_addr) |
bt_status_t (* disconnect)(bt_bdaddr_t *bd_addr) |
bt_status_t (* get_protocol)(bt_bdaddr_t *bd_addr, bthh_protocol_mode_t protocolMode) |
bt_status_t (* get_report)(bt_bdaddr_t *bd_addr, bthh_report_type_t reportType, uint8_t reportId, int bufferSize) |
bt_status_t (* init)( bthh_callbacks_t *callbacks) |
bt_status_t (* send_data)(bt_bdaddr_t *bd_addr, char *data) |
bt_status_t (* set_info)(bt_bdaddr_t *bd_addr, bthh_hid_info_t hid_info) |
bt_status_t (* set_protocol)(bt_bdaddr_t *bd_addr, bthh_protocol_mode_t protocolMode) |
bt_status_t (* set_report)(bt_bdaddr_t *bd_addr, bthh_report_type_t reportType, char *report) |
bt_status_t (* virtual_unplug)(bt_bdaddr_t *bd_addr) |
這個結構體的說明文件是由下列檔案產生:
- hardware/libhardware/include/hardware/ bt_hh.h