Microchip® Advanced Software Framework

att_dispatch.h File Reference
#include "btstack_util.h"

Functions

int att_dispatch_client_can_send_now (hci_con_handle_t con_handle)
 can send packet for client More...
 
void att_dispatch_client_request_can_send_now_event (hci_con_handle_t con_handle)
 Request emission of L2CAP_EVENT_CAN_SEND_NOW as soon as possible for client. More...
 
void att_dispatch_register_client (btstack_packet_handler_t packet_handler)
 Dispatcher for independent implementation of ATT client and server. More...
 
void att_dispatch_register_server (btstack_packet_handler_t packet_handler)
 reset att dispatchter More...
 
int att_dispatch_server_can_send_now (hci_con_handle_t con_handle)
 can send packet for server More...
 
void att_dispatch_server_request_can_send_now_event (hci_con_handle_t con_handle)
 Request emission of L2CAP_EVENT_CAN_SEND_NOW as soon as possible for server. More...
 

int att_dispatch_client_can_send_now ( hci_con_handle_t  con_handle)

can send packet for client

Parameters
con_handle
handle

References l2cap_can_send_fixed_channel_packet_now(), and L2CAP_CID_ATTRIBUTE_PROTOCOL.

Referenced by gatt_client_run(), and gatt_client_write_value_of_characteristic_without_response().

void att_dispatch_client_request_can_send_now_event ( hci_con_handle_t  con_handle)

Request emission of L2CAP_EVENT_CAN_SEND_NOW as soon as possible for client.

Note
L2CAP_EVENT_CAN_SEND_NOW might be emitted during call to this function so packet handler should be ready to handle it
Parameters
con_handle

References att_client_waiting_for_can_send, L2CAP_CID_ATTRIBUTE_PROTOCOL, and l2cap_request_can_send_fix_channel_now_event().

Referenced by gatt_client_run().

void att_dispatch_register_client ( btstack_packet_handler_t  packet_handler)

Dispatcher for independent implementation of ATT client and server.

reset att dispatchter

Parameters
packet_handerfor ATT client packets

Dispatcher for independent implementation of ATT client and server.

Parameters
packet_handerfor ATT client packets

References att_client_handler, att_packet_handler(), L2CAP_CID_ATTRIBUTE_PROTOCOL, l2cap_register_fixed_channel(), and packet_handler.

Referenced by gatt_client_init().

void att_dispatch_register_server ( btstack_packet_handler_t  packet_handler)

reset att dispatchter

Parameters
packet_handerfor ATT server packets

References att_packet_handler(), att_server_handler, L2CAP_CID_ATTRIBUTE_PROTOCOL, l2cap_register_fixed_channel(), and packet_handler.

Referenced by att_server_init().

int att_dispatch_server_can_send_now ( hci_con_handle_t  con_handle)
void att_dispatch_server_request_can_send_now_event ( hci_con_handle_t  con_handle)

Request emission of L2CAP_EVENT_CAN_SEND_NOW as soon as possible for server.

Note
L2CAP_EVENT_CAN_SEND_NOW might be emitted during call to this function so packet handler should be ready to handle it
Parameters
con_handle

References att_server_waiting_for_can_send, L2CAP_CID_ATTRIBUTE_PROTOCOL, and l2cap_request_can_send_fix_channel_now_event().

Referenced by att_event_packet_handler(), att_run_for_context(), att_server_handle_can_send_now(), att_server_register_can_send_now_callback(), and att_server_request_can_send_now_event().