Microchip® Advanced Software Framework

hids_device.h File Reference
#include <stdint.h>
#include "btstack_defines.h"
#include "bluetooth.h"

Functions

void hids_device_init (uint8_t hid_country_code, const uint8_t *hid_descriptor, uint16_t hid_descriptor_size)
 Implementation of the GATT HIDS Device To use with your application, add '#import <hids.gatt>' to your .gatt file. More...
 
void hids_device_register_packet_handler (btstack_packet_handler_t callback)
 Register callback for the HIDS Device client. More...
 
void hids_device_request_can_send_now_event (hci_con_handle_t con_handle)
 Request can send now event to send HID Report Generates an HIDS_SUBEVENT_CAN_SEND_NOW subevent. More...
 
void hids_device_send_boot_keyboard_input_report (hci_con_handle_t con_handle, const uint8_t *report, uint16_t report_len)
 Send HID Boot Mouse Input Report. More...
 
void hids_device_send_boot_mouse_input_report (hci_con_handle_t con_handle, const uint8_t *report, uint16_t report_len)
 Send HID Boot Mouse Input Report. More...
 
void hids_device_send_input_report (hci_con_handle_t con_handle, const uint8_t *report, uint16_t report_len)
 Send HID Report: Input. More...
 

void hids_device_register_packet_handler ( btstack_packet_handler_t  callback)

Register callback for the HIDS Device client.

Parameters
callback

References callback, and packet_handler.

void hids_device_request_can_send_now_event ( hci_con_handle_t  con_handle)

Request can send now event to send HID Report Generates an HIDS_SUBEVENT_CAN_SEND_NOW subevent.

Parameters
hid_cid

References att_server_register_can_send_now_callback(), btstack_context_callback_registration_t::callback, con_handle, btstack_context_callback_registration_t::context, and hids_device_can_send_now().

void hids_device_send_boot_keyboard_input_report ( hci_con_handle_t  con_handle,
const uint8_t *  report,
uint16_t  report_len 
)

Send HID Boot Mouse Input Report.

References att_server_notify(), and hid_boot_keyboard_input_value_handle.

void hids_device_send_boot_mouse_input_report ( hci_con_handle_t  con_handle,
const uint8_t *  report,
uint16_t  report_len 
)

Send HID Boot Mouse Input Report.

References att_server_notify(), and hid_boot_mouse_input_value_handle.

void hids_device_send_input_report ( hci_con_handle_t  con_handle,
const uint8_t *  report,
uint16_t  report_len 
)

Send HID Report: Input.

References att_server_notify(), and hid_report_input_value_handle.