Go to the documentation of this file.
71 #include "custom_config.h"
79 #define HIDS_CONNECTION_MAX 10
81 #define HIDS_REPORT_MAX_SIZE 20
82 #define HIDS_REPORT_MAP_MAX_SIZE 512
89 #define HIDS_REP_TYPE_INPUT 1
90 #define HIDS_REP_TYPE_OUTPUT 2
91 #define HIDS_REP_TYPE_FEATURE 3
99 #define HID_INFO_FLAG_REMOTE_WAKE_MSK 0x01
100 #define HID_INFO_FLAG_NORMALLY_CONNECTABLE_MSK 0x02
@ HIDS_EVT_REP_CHAR_WRITE
hids_report_type_t
HID Service write report type.
hids_report_int_t feature_report
uint16_t hids_service_start_handle_get(void)
Provide the interface for other modules to obtain the hids service start handle .
@ HIDS_EVT_REPORT_MODE_ENTERED
@ HIDS_EVT_IN_REP_NOTIFY_ENABLED
@ HIDS_EVT_HOST_EXIT_SUSP
HID Service Report characteristic define.
sdk_err_t hids_service_init(hids_init_t *p_hids_init)
Initialize a HID Service instance in ATT DB.
hids_evt_handler_t evt_handler
@ HIDS_REPORT_TYPE_RESERVED
HID Information characteristic value.
@ HIDS_EVT_IN_REP_NOTIFY_DISABLED
void(* hids_evt_handler_t)(hids_evt_t *p_evt)
HID Service event handler type.
sdk_err_t hids_input_rep_send(uint8_t conn_idx, uint8_t rep_idx, uint8_t *p_data, uint16_t length)
Send an input report.
hids_evt_type_t
HID Service event type.
HID Service Report Map characteristic value.
Value of a Report Reference descriptor.
hids_report_int_t output_report
hids_report_map_t report_map
uint16_t sdk_err_t
SDK API result type.
@ HIDS_EVT_BOOT_MODE_ENTERED
@ HIDS_REPORT_TYPE_MOUSE_IN
@ HIDS_REPORT_TYPE_KB_OUT
Profile/Service Utilities API.
hids_report_type_t report_type
sdk_err_t hids_boot_mouse_in_rep_send(uint8_t conn_idx, uint8_t *p_data, uint16_t length)
Send boot mouse input report.
@ HIDS_REPORT_TYPE_FEATURE
HID Service initialization variable.
uint8_t input_report_count
sdk_err_t hids_boot_kb_in_rep_send(uint8_t conn_idx, uint8_t *p_data, uint16_t length)
Send boot keyboard input report.