l2cap.c (77a7418aca9d36f50c1ff639bd0fae683d2981c3) | l2cap.c (8f4649e3ba0a9d21085f42b688929492b3ab33b7) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 1040 unchanged lines hidden (view full) --- 1049 return hci_can_send_acl_packet_now(con_handle); 1050} 1051 1052uint8_t *l2cap_get_outgoing_buffer(void){ 1053 return hci_get_outgoing_packet_buffer() + COMPLETE_L2CAP_HEADER; // 8 bytes 1054} 1055 1056// only for L2CAP Basic Channels | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 1040 unchanged lines hidden (view full) --- 1049 return hci_can_send_acl_packet_now(con_handle); 1050} 1051 1052uint8_t *l2cap_get_outgoing_buffer(void){ 1053 return hci_get_outgoing_packet_buffer() + COMPLETE_L2CAP_HEADER; // 8 bytes 1054} 1055 1056// only for L2CAP Basic Channels |
1057bool l2cap_reserve_packet_buffer(void){ 1058 return hci_reserve_packet_buffer(); | 1057void l2cap_reserve_packet_buffer(void){ 1058 hci_reserve_packet_buffer(); |
1059} 1060 1061// only for L2CAP Basic Channels 1062void l2cap_release_packet_buffer(void){ 1063 hci_release_packet_buffer(); 1064} 1065 1066static void l2cap_setup_header(uint8_t * acl_buffer, hci_con_handle_t con_handle, uint8_t packet_boundary, uint16_t remote_cid, uint16_t len){ --- 4780 unchanged lines hidden --- | 1059} 1060 1061// only for L2CAP Basic Channels 1062void l2cap_release_packet_buffer(void){ 1063 hci_release_packet_buffer(); 1064} 1065 1066static void l2cap_setup_header(uint8_t * acl_buffer, hci_con_handle_t con_handle, uint8_t packet_boundary, uint16_t remote_cid, uint16_t len){ --- 4780 unchanged lines hidden --- |