Functions | |
int | att_server_can_send_packet_now (hci_con_handle_t con_handle) |
int | att_server_indicate (hci_con_handle_t con_handle, uint16_t attribute_handle, uint8_t *value, uint16_t value_len) |
void | att_server_init (uint8_t const *db, att_read_callback_t read_callback, att_write_callback_t write_callback) |
int | att_server_notify (hci_con_handle_t con_handle, uint16_t attribute_handle, uint8_t *value, uint16_t value_len) |
void | att_server_register_can_send_now_callback (btstack_context_callback_registration_t *callback_registration, hci_con_handle_t con_handle) |
Request callback when sending is possible. More... | |
void | att_server_register_packet_handler (btstack_packet_handler_t handler) |
void | att_server_request_can_send_now_event (hci_con_handle_t con_handle) |
Request emission of ATT_EVENT_CAN_SEND_NOW as soon as possible. More... | |
int att_server_can_send_packet_now | ( | hci_con_handle_t | con_handle | ) |
References att_dispatch_server_can_send_now().
int att_server_indicate | ( | hci_con_handle_t | con_handle, |
uint16_t | attribute_handle, | ||
uint8_t * | value, | ||
uint16_t | value_len | ||
) |
References att_dispatch_server_can_send_now(), ATT_HANDLE_VALUE_INDICATION_IN_PROGRESS, att_handle_value_indication_timeout(), att_prepare_handle_value_indication(), att_server_for_handle(), ATT_TRANSACTION_TIMEOUT_MS, BTSTACK_ACL_BUFFERS_FULL, btstack_run_loop_add_timer(), btstack_run_loop_set_timer(), btstack_run_loop_set_timer_handler(), ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER, L2CAP_CID_ATTRIBUTE_PROTOCOL, l2cap_get_outgoing_buffer(), l2cap_reserve_packet_buffer(), and l2cap_send_prepared_connectionless().
void att_server_init | ( | uint8_t const * | db, |
att_read_callback_t | read_callback, | ||
att_write_callback_t | write_callback | ||
) |
References att_dispatch_register_server(), att_event_packet_handler(), att_packet_handler(), att_set_db(), att_set_read_callback(), att_set_write_callback(), btstack_packet_callback_registration_t::callback, hci_add_event_handler(), and sm_add_event_handler().
Referenced by le_counter_setup(), le_prov_app_setup(), and tss_app_setup().
int att_server_notify | ( | hci_con_handle_t | con_handle, |
uint16_t | attribute_handle, | ||
uint8_t * | value, | ||
uint16_t | value_len | ||
) |
References att_dispatch_server_can_send_now(), att_prepare_handle_value_notification(), att_server_for_handle(), BTSTACK_ACL_BUFFERS_FULL, ERROR_CODE_UNKNOWN_CONNECTION_IDENTIFIER, L2CAP_CID_ATTRIBUTE_PROTOCOL, l2cap_get_outgoing_buffer(), l2cap_reserve_packet_buffer(), and l2cap_send_prepared_connectionless().
Referenced by battery_service_can_send_now(), hids_device_send_boot_keyboard_input_report(), hids_device_send_boot_mouse_input_report(), hids_device_send_input_report(), and packet_handler().
void att_server_register_can_send_now_callback | ( | btstack_context_callback_registration_t * | callback_registration, |
hci_con_handle_t | con_handle | ||
) |
Request callback when sending is possible.
callback_registration | to point to callback function and context information |
con_handle |
References att_dispatch_server_can_send_now(), att_dispatch_server_request_can_send_now_event(), btstack_linked_list_add_tail(), btstack_context_callback_registration_t::callback, con_handle, and btstack_context_callback_registration_t::context.
Referenced by battery_service_server_set_battery_value(), and hids_device_request_can_send_now_event().
void att_server_register_packet_handler | ( | btstack_packet_handler_t | handler | ) |
References att_client_packet_handler.
Referenced by le_counter_setup(), le_prov_app_setup(), and tss_app_setup().
void att_server_request_can_send_now_event | ( | hci_con_handle_t | con_handle | ) |
Request emission of ATT_EVENT_CAN_SEND_NOW as soon as possible.
con_handle |
References att_client_waiting_for_can_send, att_dispatch_server_request_can_send_now_event(), and log_debug.
Referenced by att_write_callback(), heartbeat_handler(), packet_handler(), process_data(), and tss_server_return_credit().