AIROC™ BTSDK v4.4 - Documentation | ||||
Human Interface Device Profile (HID) Device over BR/EDR. More...
Data Structures | |
struct | wiced_bt_hidd_qos_info_t |
HIDD QoS configuration. More... | |
struct | wiced_bt_rep_data |
HID-Device Response data. More... | |
struct | wiced_bt_hidd_data_t |
Incoming data. More... | |
union | wiced_bt_hidd_event_data_t |
Data types for HIDD event callback. More... | |
struct | wiced_bt_hidd_reg_info_t |
HIDD device registration information. More... | |
struct | wiced_bt_hidd_pwr_md |
Macros | |
#define | HID_TRANS_HANDSHAKE (0) |
Define the HID transaction types (see Table 3.1 Bluetooth HID Protocol Message type in the spec) | |
#define | HID_TRANS_CONTROL (1) |
#define | HID_TRANS_GET_REPORT (4) |
#define | HID_TRANS_SET_REPORT (5) |
#define | HID_TRANS_GET_PROTOCOL (6) |
#define | HID_TRANS_SET_PROTOCOL (7) |
#define | HID_TRANS_GET_IDLE (8) |
#define | HID_TRANS_SET_IDLE (9) |
#define | HID_TRANS_DATA (10) |
#define | HID_TRANS_DATAC (11) |
#define | HID_GET_TRANS_FROM_HDR(x) ((x >> 4) & 0x0f) |
#define | HID_GET_PARAM_FROM_HDR(x) (x & 0x0f) |
#define | HID_BUILD_HDR(t, p) (uint8_t)((t << 4) | (p & 0x0f)) |
#define | HID_HDR_LEN (1) |
#define | HID_PAR_HANDSHAKE_RSP_SUCCESS (0) |
Parameters for Handshake. More... | |
#define | HID_PAR_HANDSHAKE_RSP_NOT_READY (1) |
Device is busy to accept data. | |
#define | HID_PAR_HANDSHAKE_RSP_ERR_INVALID_REP_ID (2) |
Invalid report ID transmitted. | |
#define | HID_PAR_HANDSHAKE_RSP_ERR_UNSUPPORTED_REQ (3) |
The device does not support the request. | |
#define | HID_PAR_HANDSHAKE_RSP_ERR_INVALID_PARAM (4) |
Parameter value is out of range or inappropriate for the request. More... | |
#define | HID_PAR_HANDSHAKE_RSP_ERR_UNKNOWN (14) |
Device could not identify the error condition. | |
#define | HID_PAR_HANDSHAKE_RSP_ERR_FATAL (15) |
Restart is essential to resume functionality. | |
#define | HID_PAR_CONTROL_NOP (0) |
Parameters for Control. More... | |
#define | HID_PAR_CONTROL_HARD_RESET (1) |
Perform Hard Reset. | |
#define | HID_PAR_CONTROL_SOFT_RESET (2) |
Perform Soft Reset. | |
#define | HID_PAR_CONTROL_SUSPEND (3) |
Go to reduced power mode. | |
#define | HID_PAR_CONTROL_EXIT_SUSPEND (4) |
Exit reduced power mode. | |
#define | HID_PAR_CONTROL_VIRTUAL_CABLE_UNPLUG (5) |
Destroys or invalidate all bonding and Virtual Cable information. | |
#define | HID_PAR_REP_TYPE_MASK (0x03) |
Different report types in get, set, data. More... | |
#define | HID_PAR_REP_TYPE_OTHER (0x00) |
Other report type. | |
#define | HID_PAR_REP_TYPE_INPUT (0x01) |
Input report type. | |
#define | HID_PAR_REP_TYPE_OUTPUT (0x02) |
Output report type. | |
#define | HID_PAR_REP_TYPE_FEATURE (0x03) |
Feature report type. | |
#define | HID_PAR_GET_REP_BUFSIZE_FOLLOWS (0x08) /** Buffer size in two bytes after Report ID */ |
Parameters for Get Report. | |
#define | HID_PAR_PROTOCOL_MASK (0x01) |
Parameters for Protocol Type. More... | |
#define | HID_PAR_PROTOCOL_REPORT (0x01) |
Report protocol mode, default mode. | |
#define | HID_PAR_PROTOCOL_BOOT_MODE (0x00) |
Boot protocol mode. | |
#define | HID_SDP_DESCRIPTOR_REPORT (0x22) |
Descriptor types in the SDP record (see Table 5.6: Descriptor Type Codes) More... | |
#define | HID_SDP_DESCRIPTOR_PHYSICAL (0x23) |
Descriptor type physical. | |
Typedefs | |
typedef uint8_t | wiced_bt_hidd_status_t |
HIDD status codes (see wiced_bt_hidd_status_e) | |
typedef struct wiced_bt_rep_data | wiced_bt_hidd_get_rep_data_t |
HID-Device Response data. More... | |
typedef uint8_t | wiced_bt_hidd_cback_event_t |
HIDD events (see wiced_bt_hidd_cback_event_e) | |
typedef uint8_t | wiced_bt_hidd_st_t |
typedef void( | wiced_bt_hidd_callback_t )(wiced_bt_hidd_cback_event_t event, uint32_t data, wiced_bt_hidd_event_data_t *p_event_data) |
HIDD callback. More... | |
typedef struct wiced_bt_hidd_pwr_md | wiced_bt_hidd_pm_pwr_md_t |
Functions | |
wiced_bt_hidd_status_t | wiced_bt_hidd_register (wiced_bt_hidd_reg_info_t *p_reg_info) |
Function wiced_bt_hidd_register. More... | |
wiced_bt_hidd_status_t | wiced_bt_hidd_deregister (void) |
Function wiced_bt_hidd_deregister. More... | |
wiced_bt_hidd_status_t | wiced_bt_hidd_connect (void) |
Function wiced_bt_hidd_connect. More... | |
wiced_bt_hidd_status_t | wiced_bt_hidd_disconnect (void) |
Function wiced_bt_hidd_disconnect. More... | |
wiced_bt_hidd_status_t | wiced_bt_hidd_hand_shake (uint8_t res_code) |
Function wiced_bt_hidd_hand_shake. More... | |
wiced_bt_hidd_status_t | wiced_bt_hidd_virtual_unplug (void) |
Function wiced_bt_hidd_virtual_unplug. More... | |
wiced_bt_hidd_status_t | wiced_bt_hidd_send_data (wiced_bool_t control_ch, uint8_t rep_type, uint8_t *p_data, uint16_t data_len) |
Function wiced_bt_hidd_send_data. More... | |
Human Interface Device Profile (HID) Device over BR/EDR.
#define HID_PAR_CONTROL_NOP (0) |
Parameters for Control.
No Operation
#define HID_PAR_HANDSHAKE_RSP_ERR_INVALID_PARAM (4) |
Parameter value is out of range or inappropriate for the request.
#define HID_PAR_HANDSHAKE_RSP_SUCCESS (0) |
Parameters for Handshake.
Handshake successful
#define HID_PAR_PROTOCOL_MASK (0x01) |
Parameters for Protocol Type.
Mask used for report type
#define HID_PAR_REP_TYPE_MASK (0x03) |
Different report types in get, set, data.
Mask used for report type
#define HID_SDP_DESCRIPTOR_REPORT (0x22) |
Descriptor types in the SDP record (see Table 5.6: Descriptor Type Codes)
Descriptor type report
typedef void( wiced_bt_hidd_callback_t)(wiced_bt_hidd_cback_event_t event, uint32_t data, wiced_bt_hidd_event_data_t *p_event_data) |
HIDD callback.
Callback for Human Interface Device Profile Device (HIDD)
[in] | event | : Callback event (see # |
[in] | data | : Integer data corresponding to the event |
[in] | p_data | : Data associated with the event |
typedef struct wiced_bt_rep_data wiced_bt_hidd_get_rep_data_t |
HID-Device Response data.
HIDD get report data
HID-Device Callback Events.
enum wiced_bt_hidd_st_e |
HIDD state (see wiced_bt_hidd_st_e)
Enumerator | |
---|---|
WICED_BT_HIDD_BUSY_CONN_ST |
Busy state. |
WICED_BT_HIDD_IDLE_CONN_ST |
Idle state. |
WICED_BT_HIDD_SUSP_CONN_ST |
Suspension state. |
HID status codes.