bthh_interface_t Struct Reference

bthh_interface_t Struct Reference

#include < bt_hh.h >

Data Fields

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)
 

Detailed Description

Represents the standard BT-HH interface.

Definition at line 140 of file bt_hh.h .

Field Documentation

void(* cleanup)(void)

Closes the interface.

Definition at line 178 of file bt_hh.h .

bt_status_t (* connect)(bt_bdaddr_t *bd_addr)

connect to hid device

Definition at line 151 of file bt_hh.h .

bt_status_t (* disconnect)(bt_bdaddr_t *bd_addr)

dis-connect from hid device

Definition at line 154 of file bt_hh.h .

bt_status_t (* get_protocol)(bt_bdaddr_t *bd_addr, bthh_protocol_mode_t protocolMode)

Get the HID proto mode.

Definition at line 163 of file bt_hh.h .

bt_status_t (* get_report)(bt_bdaddr_t *bd_addr, bthh_report_type_t reportType, uint8_t reportId, int bufferSize)

Send a GET_REPORT to HID device.

Definition at line 169 of file bt_hh.h .

bt_status_t (* init)( bthh_callbacks_t *callbacks)

Register the BtHh callbacks

Definition at line 148 of file bt_hh.h .

bt_status_t (* send_data)(bt_bdaddr_t *bd_addr, char *data)

Send data to HID device.

Definition at line 175 of file bt_hh.h .

bt_status_t (* set_info)(bt_bdaddr_t *bd_addr, bthh_hid_info_t hid_info)

Set the HID device descriptor for the specified HID device.

Definition at line 160 of file bt_hh.h .

bt_status_t (* set_protocol)(bt_bdaddr_t *bd_addr, bthh_protocol_mode_t protocolMode)

Set the HID proto mode.

Definition at line 166 of file bt_hh.h .

bt_status_t (* set_report)(bt_bdaddr_t *bd_addr, bthh_report_type_t reportType, char *report)

Send a SET_REPORT to HID device.

Definition at line 172 of file bt_hh.h .

size_t size

set to sizeof(BtHhInterface)

Definition at line 143 of file bt_hh.h .

bt_status_t (* virtual_unplug)(bt_bdaddr_t *bd_addr)

Virtual UnPlug (VUP) the specified HID device

Definition at line 157 of file bt_hh.h .


The documentation for this struct was generated from the following file:
  • hardware/libhardware/include/hardware/ bt_hh.h