l2cap.h (989c549884f3b180a9f6ca6fd10e24bc72baf497) | l2cap.h (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 --- 552 unchanged lines hidden (view full) --- 561 * @param local_cid 562 * @return status 563 */ 564uint8_t l2cap_request_can_send_now_event(uint16_t local_cid); 565 566/** 567 * @brief Reserve outgoing buffer 568 * @note Only for L2CAP Basic Mode 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 --- 552 unchanged lines hidden (view full) --- 561 * @param local_cid 562 * @return status 563 */ 564uint8_t l2cap_request_can_send_now_event(uint16_t local_cid); 565 566/** 567 * @brief Reserve outgoing buffer 568 * @note Only for L2CAP Basic Mode Channels |
569 * @return true on success | 569 * @note Must only be called after a 'can send now' check or event 570 * @note Asserts if packet buffer is already reserved |
570 */ | 571 */ |
571bool l2cap_reserve_packet_buffer(void); | 572void l2cap_reserve_packet_buffer(void); |
572 573/** 574 * @brief Get outgoing buffer and prepare data. 575 * @note Only for L2CAP Basic Mode Channels 576 */ 577uint8_t *l2cap_get_outgoing_buffer(void); 578 579/** --- 287 unchanged lines hidden --- | 573 574/** 575 * @brief Get outgoing buffer and prepare data. 576 * @note Only for L2CAP Basic Mode Channels 577 */ 578uint8_t *l2cap_get_outgoing_buffer(void); 579 580/** --- 287 unchanged lines hidden --- |