Zephyr Project API 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
hid_host.h File Reference

HID Host Protocol handling. More...

#include <stdbool.h>
#include <stdint.h>
#include <zephyr/bluetooth/classic/hid.h>
#include <zephyr/bluetooth/conn.h>
#include <zephyr/net_buf.h>

Go to the source code of this file.

Data Structures

struct  bt_hid_host_cb
 Callbacks supplied by the HID Host application. More...

Functions

int bt_hid_host_register (const struct bt_hid_host_cb *cb)
 Register HID Host callbacks.
int bt_hid_host_unregister (void)
 Unregister HID Host callbacks.
int bt_hid_host_connect (struct bt_conn *conn, struct bt_hid_host **hid)
 Initiate an HID connection to a remote HID Device.
struct bt_conn * bt_hid_host_get_conn (struct bt_hid_host *hid)
 Get the ACL connection of an HID association.
int bt_hid_host_disconnect (struct bt_hid_host *hid)
 Disconnect an HID association.
int bt_hid_host_get_report (struct bt_hid_host *hid, uint8_t type, uint8_t report_id, uint16_t buffer_size)
 Send a GET_REPORT request to the HID Device.
int bt_hid_host_set_report (struct bt_hid_host *hid, uint8_t type, struct net_buf *buf)
 Send a SET_REPORT request to the HID Device.
int bt_hid_host_get_protocol (struct bt_hid_host *hid)
 Send a GET_PROTOCOL request to the HID Device.
int bt_hid_host_set_protocol (struct bt_hid_host *hid, uint8_t protocol)
 Send a SET_PROTOCOL request to the HID Device.
int bt_hid_host_output_report (struct bt_hid_host *hid, struct net_buf *buf)
 Send an output report on the interrupt channel.
int bt_hid_host_suspend (struct bt_hid_host *hid)
 Send SUSPEND control to the HID Device.
int bt_hid_host_exit_suspend (struct bt_hid_host *hid)
 Send EXIT_SUSPEND control to the HID Device.
int bt_hid_host_virtual_cable_unplug (struct bt_hid_host *hid)
 Send Virtual Cable Unplug to the HID Device.
struct net_buf * bt_hid_host_create_pdu (struct net_buf_pool *pool)
 Allocate a PDU buffer for HID Host transmissions.

Detailed Description

HID Host Protocol handling.