Home
last modified time | relevance | path

Searched refs:protocol_mode (Results 1 – 8 of 8) sorted by relevance

/btstack/src/classic/
H A Dhid_host.h99 hid_protocol_mode_t protocol_mode; member
163 uint8_t hid_host_connect(bd_addr_t remote_addr, hid_protocol_mode_t protocol_mode, uint16_t * hid_c…
172 uint8_t hid_host_accept_connection(uint16_t hid_cid, hid_protocol_mode_t protocol_mode);
220 uint8_t hid_host_send_set_protocol_mode(uint16_t hid_cid, hid_protocol_mode_t protocol_mode);
H A Dhid_host.c270 event[pos++] = connection->protocol_mode; in hid_emit_set_protocol_response_event()
319 …t_connection_t * connection, hid_handshake_param_type_t status, hid_protocol_mode_t protocol_mode){ in hid_emit_get_protocol_event() argument
328 event[pos++] = protocol_mode; in hid_emit_get_protocol_event()
749 hid_protocol_mode_t protocol_mode; in hid_host_handle_control_packet() local
776 connection->protocol_mode = connection->requested_protocol_mode; in hid_host_handle_control_packet()
835 protocol_mode = connection->protocol_mode; in hid_host_handle_control_packet()
839 protocol_mode = (hid_protocol_mode_t)packet[1]; in hid_host_handle_control_packet()
840 switch (protocol_mode){ in hid_host_handle_control_packet()
853 hid_emit_get_protocol_event(connection, message_status, protocol_mode); in hid_host_handle_control_packet()
1023 connection->protocol_mode = connection->requested_protocol_mode; in hid_host_packet_handler()
[all …]
H A Dhid_device.c85 hid_protocol_mode_t protocol_mode; member
155 hid_device->protocol_mode = HID_PROTOCOL_MODE_REPORT; in hid_device_setup_instance()
471 switch (device->protocol_mode){ in packet_handler()
527 switch (device->protocol_mode){ in packet_handler()
578 device->protocol_mode = (hid_protocol_mode_t) param; in packet_handler()
579 switch (device->protocol_mode){ in packet_handler()
808 outgoing_buffer[1] = device->protocol_mode; in packet_handler()
1002 return hid_device->protocol_mode == HID_PROTOCOL_MODE_BOOT; in hid_device_in_boot_protocol_mode()
/btstack/src/ble/gatt-service/
H A Dhids_client.h157 hid_protocol_mode_t protocol_mode; member
239 …_handle, btstack_packet_handler_t packet_handler, hid_protocol_mode_t protocol_mode, uint16_t * hi…
301 …end_set_protocol_mode(uint16_t hids_cid, uint8_t service_index, hid_protocol_mode_t protocol_mode);
H A Dhids_client.c274 hid_protocol_mode_t protocol_mode = client->services[report.service_index].protocol_mode; in find_report_index_for_report_id_and_report_type() local
276 if (protocol_mode == HID_PROTOCOL_MODE_BOOT){ in find_report_index_for_report_id_and_report_type()
280 } else if (protocol_mode == HID_PROTOCOL_MODE_REPORT){ in find_report_index_for_report_id_and_report_type()
427 hid_protocol_mode_t protocol_mode = client->services[report.service_index].protocol_mode; in hids_client_get_next_notification_report_index() local
429 if (protocol_mode == HID_PROTOCOL_MODE_BOOT){ in hids_client_get_next_notification_report_index()
433 } else if (protocol_mode == HID_PROTOCOL_MODE_REPORT){ in hids_client_get_next_notification_report_index()
526 event[pos++] = client->services[0].protocol_mode; in hids_emit_connection_established()
939 … client->services[client->service_index].protocol_mode = client->required_protocol_mode; in hids_client_handle_can_write_without_reponse()
1273 client->services[i].protocol_mode = HID_PROTOCOL_MODE_REPORT; in handle_gatt_client_event()
1449 …_handle, btstack_packet_handler_t packet_handler, hid_protocol_mode_t protocol_mode, uint16_t * hi… in hids_client_connect() argument
[all …]
/btstack/example/
H A Dhog_mouse_demo.c105 static uint8_t protocol_mode = 1; variable
170 switch (protocol_mode){ in send_report()
383 protocol_mode = hids_subevent_protocol_mode_get_protocol_mode(packet); in packet_handler()
H A Dhog_keyboard_demo.c169 static uint8_t protocol_mode = 1; variable
257 switch (protocol_mode){ in send_report()
435 protocol_mode = hids_subevent_protocol_mode_get_protocol_mode(packet); in packet_handler()
H A Dhog_host_demo.c86 static hid_protocol_mode_t protocol_mode = HID_PROTOCOL_MODE_REPORT; variable
162 switch (protocol_mode){ in hid_handle_input_report()
510 hids_client_connect(connection_handle, handle_gatt_client_event, protocol_mode, &hids_cid); in sm_packet_handler()