|
SmartSnippets DA1459x SDK
|
Go to the documentation of this file.
121 uint8_t country_code;
127 } hids_client_config_t;
129 typedef void (* hids_client_boot_report_cb_t) (
ble_client_t *hids_client,
132 const uint8_t *data);
135 uint16_t length,
const uint8_t *data);
137 uint16_t length,
const uint8_t *data);
138 typedef void (* hids_client_read_hid_info_cb_t) (
ble_client_t *hids_client,
140 typedef void (* hids_client_input_report_get_notif_state_cb_t) (
ble_client_t *hids_client,
143 typedef void (* hids_client_input_report_set_notif_state_cb_t) (
ble_client_t *hids_client,
146 typedef void (* hids_client_boot_report_get_notif_state_cb_t) (
ble_client_t *hids_client,
149 typedef void (* hids_client_boot_report_set_notif_state_cb_t) (
ble_client_t *hids_client,
154 typedef void (* hids_client_set_protocol_mode_cb_t) (
ble_client_t *hids_client,
156 typedef void (* hids_client_external_report_found_cb_t) (
ble_client_t *hids_client,
158 typedef void (* hids_client_discover_external_reports_completed_cb_t) (
ble_client_t *hids_client);
161 typedef void (* hids_client_discover_reports_completed_cb_t) (
ble_client_t *hids_client);
162 typedef void (* hids_client_report_write_completed_cb_t) (
ble_client_t *hids_client,
166 typedef void (* hids_client_dump_service_data_cb_t) (
ble_client_t *hids_client,
167 const char *fmt, ...);
171 hids_client_boot_report_cb_t boot_report;
173 hids_client_report_cb_t report;
175 hids_client_read_report_map_cb_t report_map;
177 hids_client_read_hid_info_cb_t hid_info;
179 hids_client_input_report_get_notif_state_cb_t input_report_get_notif_state;
181 hids_client_input_report_set_notif_state_cb_t input_report_set_notif_state;
183 hids_client_boot_report_get_notif_state_cb_t boot_report_get_notif_state;
185 hids_client_boot_report_set_notif_state_cb_t boot_report_set_notif_state;
187 hids_client_get_protocol_mode_cb_t get_protocol_mode;
189 hids_client_set_protocol_mode_cb_t set_protocol_mode;
191 hids_client_external_report_found_cb_t external_report_found;
193 hids_client_discover_external_reports_completed_cb_t discover_external_reports_complete;
195 hids_client_report_found_cb_t report_found;
197 hids_client_discover_reports_completed_cb_t discover_reports_complete;
199 hids_client_report_write_completed_cb_t report_write_complete;
200 } hids_client_callbacks_t;
231 const hids_client_callbacks_t *cb,
const void *data,
size_t length);
280 bool response, uint16_t length,
const uint8_t *data);
301 uint8_t report_id,
bool response, uint16_t length,
302 const uint8_t *data);
Definition: ble_gattc.h:118
Definition: hids_client.h:79
bool hids_client_get_protocol_mode(ble_client_t *client)
Get protocol mode.
void hids_client_dump_dervice_data(ble_client_t *client, hids_client_dump_service_data_cb_t cb)
Dump HID Service data.
ble_client_t * hids_client_init_from_data(uint16_t conn_idx, const hids_client_config_t *config, const hids_client_callbacks_t *cb, const void *data, size_t length)
Initialize and register HID Client instance from data buffer.
hids_client_cap_t hids_client_get_capabilities(ble_client_t *client)
Get capabilities.
Definition: hids_client.h:105
hids_client_boot_report_type
HID Service Client boot report type.
Definition: hids_client.h:76
att_error_t
Definition: ble_att.h:64
bool hids_client_boot_report_write(ble_client_t *client, hids_client_boot_report_type type, bool response, uint16_t length, const uint8_t *data)
Write Boot Report.
Definition: hids_client.h:88
Definition: hids_client.h:77
Definition: hids_client.h:66
Definition: hids_client.h:111
bool hids_client_discover_reports(ble_client_t *client)
Read Report Reference descriptors.
bool hids_client_boot_report_set_notif_state(ble_client_t *client, hids_client_boot_report_type type, bool enable)
Enable/disable notifications for Boot Input reports.
Definition: hids_client.h:67
bool hids_client_cp_command(ble_client_t *client, hids_client_cp_command_t command)
Write command to control point.
Definition: hids_client.h:99
bool hids_client_read_report_map(ble_client_t *client)
Read Report Map characteristic.
Definition: hids_client.h:89
Definition: hids_client.h:101
bool hids_client_input_report_set_notif_state(ble_client_t *client, uint8_t report_id, bool enable)
Enable/disable notifications for Input Report.
hids_client_protocol_mode_t
HID Service Client protocol mode.
Definition: hids_client.h:55
Definition: ble_client.h:154
Definition: hids_client.h:78
HW_GPIO_MODE mode
Definition: hw_gpio.h:211
bool hids_client_read_hid_info(ble_client_t *client)
Get HID Info characteristic.
Definition: hids_client.h:109
Definition: hids_client.h:107
HID Service Client info data.
Definition: hids_client.h:119
hids_client_cp_command_t
HID Service Client control point command.
Definition: hids_client.h:87
Definition: hids_client.h:57
Definition: hids_client.h:68
bool hids_client_report_write(ble_client_t *client, hids_client_report_type_t type, uint8_t report_id, bool response, uint16_t length, const uint8_t *data)
Write Report.
bool hids_client_input_report_get_notif_state(ble_client_t *client, uint8_t report_id)
Check if notifications are enabled for Input Report.
bool hids_client_boot_report_read(ble_client_t *client, hids_client_boot_report_type type)
Read Boot Report.
bool hids_client_report_read(ble_client_t *client, hids_client_report_type_t type, uint8_t report_id)
Read Report.
bool hids_client_set_protocol_mode(ble_client_t *client)
Set protocol mode.
ble_client_t * hids_client_init(const hids_client_config_t *config, const hids_client_callbacks_t *cb, const ble_evt_gattc_browse_svc_t *evt)
Register HID Client instance.
Definition: hids_client.h:103
bool hids_client_discover_external_reports(ble_client_t *client)
Read External Reports descriptors.
hids_client_report_type_t
HID Service Client report type.
Definition: hids_client.h:65
bool hids_client_boot_report_get_notif_state(ble_client_t *client, hids_client_boot_report_type type)
Check if notifications are enabled for Boot Input Report.
Definition: hids_client.h:56
GATT Client handling routines API.
hids_client_cap_t
HIDS Client capabilities.
Definition: hids_client.h:97