Go to the documentation of this file.
71 #include "custom_config.h"
79 #define HIDS_CONNECTION_MAX (10 < CFG_MAX_CONNECTIONS ?\
80 10 : CFG_MAX_CONNECTIONS)
82 #define HIDS_REPORT_MAX_SIZE 20
83 #define HIDS_REPORT_MAP_MAX_SIZE 512
90 #define HIDS_REP_TYPE_INPUT 1
91 #define HIDS_REP_TYPE_OUTPUT 2
92 #define HIDS_REP_TYPE_FEATURE 3
100 #define HID_INFO_FLAG_REMOTE_WAKE_MSK 0x01
101 #define HID_INFO_FLAG_NORMALLY_CONNECTABLE_MSK 0x02
@ HIDS_EVT_REP_CHAR_WRITE
Definition: hids.h:121
hids_report_type_t
HID Service write report type.
Definition: hids.h:127
bool is_kb
Definition: hids.h:205
hids_report_int_t feature_report
Definition: hids.h:214
uint16_t bcd_hid
Definition: hids.h:160
@ HIDS_REPORT_TYPE_KB_IN
Definition: hids.h:134
@ HIDS_REPORT_TYPE_IN2
Definition: hids.h:130
uint8_t conn_idx
Definition: hids.h:150
@ HIDS_EVT_REPORT_MODE_ENTERED
Definition: hids.h:120
@ HIDS_EVT_IN_REP_NOTIFY_ENABLED
Definition: hids.h:115
@ HIDS_REPORT_TYPE_IN1
Definition: hids.h:129
@ HIDS_EVT_HOST_EXIT_SUSP
Definition: hids.h:118
HID Service Report characteristic define.
Definition: hids.h:180
uint8_t report_type
Definition: hids.h:174
@ HIDS_EVT_HOST_SUSP
Definition: hids.h:117
sdk_err_t hids_service_init(hids_init_t *p_hids_init)
Initialize a HID Service instance in ATT DB.
bool out_report_sup
Definition: hids.h:211
hids_evt_handler_t evt_handler
Definition: hids.h:204
@ HIDS_REPORT_TYPE_RESERVED
Definition: hids.h:128
HID Information characteristic value.
Definition: hids.h:159
uint16_t value_len
Definition: hids.h:181
@ HIDS_EVT_IN_REP_NOTIFY_DISABLED
Definition: hids.h:116
uint16_t len
Definition: hids.h:190
uint16_t len
Definition: hids.h:153
@ HIDS_EVT_INVALID
Definition: hids.h:114
hids_evt_type_t evt_type
Definition: hids.h:149
bool feature_report_sup
Definition: hids.h:213
void(* hids_evt_handler_t)(hids_evt_t *p_evt)
HID Service event handler type.
Definition: hids.h:198
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.
uint16_t offset
Definition: hids.h:152
hids_evt_type_t
HID Service event type.
Definition: hids.h:113
HID Service Report Map characteristic value.
Definition: hids.h:188
Value of a Report Reference descriptor.
Definition: hids.h:172
hids_report_int_t output_report
Definition: hids.h:212
bool is_mouse
Definition: hids.h:206
hids_report_map_t report_map
Definition: hids.h:208
uint16_t sdk_err_t
SDK API result type.
Definition: ble_error.h:243
uint8_t flags
Definition: hids.h:162
uint8_t report_id
Definition: hids.h:173
@ HIDS_EVT_BOOT_MODE_ENTERED
Definition: hids.h:119
@ HIDS_REPORT_TYPE_MOUSE_IN
Definition: hids.h:136
hids_report_ref_t ref
Definition: hids.h:182
@ HIDS_REPORT_TYPE_KB_OUT
Definition: hids.h:135
uint8_t const * data
Definition: hids.h:154
HID Service event.
Definition: hids.h:148
@ HIDS_REPORT_TYPE_OUT
Definition: hids.h:132
uint8_t * p_map
Definition: hids.h:189
Profile/Service Utilities API.
@ HIDS_REPORT_TYPE_IN3
Definition: hids.h:131
hids_report_type_t report_type
Definition: hids.h:151
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
Definition: hids.h:133
uint8_t b_country_code
Definition: hids.h:161
HID Service initialization variable.
Definition: hids.h:203
hids_hid_info_t hid_info
Definition: hids.h:207
uint8_t input_report_count
Definition: hids.h:209
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.