1 /* 2 * l2cap_signaling.h 3 * 4 * Created by Matthias Ringwald on 7/23/09. 5 */ 6 7 #pragma once 8 9 #include <stdint.h> 10 #include "utils.h" 11 #include "hci_cmds.h" 12 13 typedef enum { 14 COMMAND_REJECT = 1, 15 CONNECTION_REQUEST, 16 CONNECTION_RESPONSE, 17 CONFIGURE_REQUEST, 18 CONFIGURE_RESPONSE, 19 DISCONNECTION_REQUEST, 20 DISCONNECTION_RESPONSE, 21 ECHO_REQUEST, 22 ECHO_RESPONSE, 23 INFORMATIONAL_REQUEST, 24 INFORMATIONAL_RESPONSE 25 } L2CAP_SIGNALING_COMMANDS; 26 27 uint16_t l2cap_create_signaling_packet(uint8_t *acl_buffer, hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, uint8_t identifier, ...); 28 uint16_t l2cap_create_signaling_internal(uint8_t * acl_buffer,hci_con_handle_t handle, L2CAP_SIGNALING_COMMANDS cmd, uint8_t identifier, va_list argptr); 29 uint8_t l2cap_next_sig_id(); 30 uint16_t l2cap_next_source_cid(); 31 32