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_init | ( | uint8_t | country_code, |
const uint8_t * | descriptor, | ||
uint16_t | descriptor_size | ||
) |
Implementation of the GATT HIDS Device To use with your application, add '#import <hids.gatt>' to your .gatt file.
Set up HIDS Device
Implementation of the GATT HIDS Device To use with your application, add '#import <hids.gatt>' to your .gatt file.
References att_read_callback(), att_register_service_handler(), att_write_callback(), att_service_handler::end_handle, gatt_server_get_client_configuration_handle_for_characteristic_with_uuid16(), gatt_server_get_get_handle_range_for_service_with_uuid16(), gatt_server_get_value_handle_for_characteristic_with_uuid16(), hid_boot_keyboard_input_client_configuration_handle, hid_boot_keyboard_input_value_handle, hid_boot_mouse_input_client_configuration_handle, hid_boot_mouse_input_value_handle, hid_country_code, hid_descriptor, hid_descriptor_size, hid_protocol_mode, hid_protocol_mode_value_handle, hid_report_input_client_configuration_handle, hid_report_input_value_handle, hid_report_map_handle, ORG_BLUETOOTH_CHARACTERISTIC_BOOT_KEYBOARD_INPUT_REPORT, ORG_BLUETOOTH_CHARACTERISTIC_BOOT_MOUSE_INPUT_REPORT, ORG_BLUETOOTH_CHARACTERISTIC_PROTOCOL_MODE, ORG_BLUETOOTH_CHARACTERISTIC_REPORT, ORG_BLUETOOTH_CHARACTERISTIC_REPORT_MAP, ORG_BLUETOOTH_SERVICE_HUMAN_INTERFACE_DEVICE, att_service_handler::read_callback, att_service_handler::start_handle, and att_service_handler::write_callback.
void hids_device_register_packet_handler | ( | btstack_packet_handler_t | callback | ) |
Register callback for the HIDS Device client.
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.
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.