xref: /btstack/src/l2cap.h (revision 16833f0a4e9e562990f7384eae1771a5c962f5f0)
143625864Smatthias.ringwald /*
243625864Smatthias.ringwald  *  l2cap.h
343625864Smatthias.ringwald  *
443625864Smatthias.ringwald  *  Logical Link Control and Adaption Protocl (L2CAP)
543625864Smatthias.ringwald  *
643625864Smatthias.ringwald  *  Created by Matthias Ringwald on 5/16/09.
743625864Smatthias.ringwald  */
843625864Smatthias.ringwald 
943625864Smatthias.ringwald #include "hci.h"
1043625864Smatthias.ringwald 
1143625864Smatthias.ringwald typedef enum {
1243625864Smatthias.ringwald     COMMAND_REJECT = 1,
1343625864Smatthias.ringwald     CONNECTION_REQUEST,
1443625864Smatthias.ringwald     CONNECTION_RESPONSE,
1543625864Smatthias.ringwald     CONFIGURE_REQUEST,
1643625864Smatthias.ringwald     CONFIGURE_RESPONSE,
1743625864Smatthias.ringwald     DISCONNECTION_REQUEST,
1843625864Smatthias.ringwald     DISCONNECTION_RESPONSE,
1943625864Smatthias.ringwald     ECHO_REQUEST,
2043625864Smatthias.ringwald     ECHO_RESPONSE,
2143625864Smatthias.ringwald     INFORMATIONAL_REQUEST,
2243625864Smatthias.ringwald     INFORMATIONAL_RESPONSE
2343625864Smatthias.ringwald } L2CAP_SIGNALING_COMMANDS;
2443625864Smatthias.ringwald 
25*16833f0aSmatthias.ringwald typedef struct {
26*16833f0aSmatthias.ringwald 
27*16833f0aSmatthias.ringwald } l2cap_channel_t;
28*16833f0aSmatthias.ringwald 
29*16833f0aSmatthias.ringwald typedef struct {
30*16833f0aSmatthias.ringwald 
31*16833f0aSmatthias.ringwald } l2cap_service_t;
32*16833f0aSmatthias.ringwald 
3343625864Smatthias.ringwald void l2cap_init();
3443625864Smatthias.ringwald int l2cap_send_signaling_packet(hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, uint8_t identifier, ...);
3543625864Smatthias.ringwald 
3643625864Smatthias.ringwald extern uint16_t  local_cid;
3743625864Smatthias.ringwald extern uint8_t   sig_seq_nr;
38