l2cap.h (8f4649e3ba0a9d21085f42b688929492b3ab33b7) l2cap.h (60a1ee1b3636b80e148491fec9284777b7193fc5)
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

--- 688 unchanged lines hidden (view full) ---

697
698/**
699 * @brief Provide credits for channel in LE Credit-Based Flow-Control Mode
700 * @param local_cid L2CAP Channel Identifier
701 * @param credits Number additional credits for peer
702 */
703uint8_t l2cap_cbm_provide_credits(uint16_t local_cid, uint16_t credits);
704
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

--- 688 unchanged lines hidden (view full) ---

697
698/**
699 * @brief Provide credits for channel in LE Credit-Based Flow-Control Mode
700 * @param local_cid L2CAP Channel Identifier
701 * @param credits Number additional credits for peer
702 */
703uint8_t l2cap_cbm_provide_credits(uint16_t local_cid, uint16_t credits);
704
705/**
706 * @brief Returns the number of credits provided by peer
707 * @param local_cid
708 * @return number of credits
709 */
710uint16_t l2cap_cbm_available_credits(uint16_t local_cid);
711
705//
706// L2CAP Connection-Oriented Channels in Enhanced Credit-Based Flow-Control Mode - ECBM
707//
708
709/**
710 * @brief Register L2CAP service in Enhanced Credit-Based Flow-Control Mode
711 * @note MTU and initial credits are specified in l2cap_enhanced_accept_connection(..) call
712 * @param packet_handler

--- 96 unchanged lines hidden (view full) ---

809/**
810 * @brief Trigger pending connection responses after pairing completed
811 * @note Must be called after receiving an SM_PAIRING_COMPLETE event, will be removed eventually
812 * @param con_handle
813 */
814void l2cap_ecbm_trigger_pending_connection_responses(hci_con_handle_t con_handle);
815
816/**
712//
713// L2CAP Connection-Oriented Channels in Enhanced Credit-Based Flow-Control Mode - ECBM
714//
715
716/**
717 * @brief Register L2CAP service in Enhanced Credit-Based Flow-Control Mode
718 * @note MTU and initial credits are specified in l2cap_enhanced_accept_connection(..) call
719 * @param packet_handler

--- 96 unchanged lines hidden (view full) ---

816/**
817 * @brief Trigger pending connection responses after pairing completed
818 * @note Must be called after receiving an SM_PAIRING_COMPLETE event, will be removed eventually
819 * @param con_handle
820 */
821void l2cap_ecbm_trigger_pending_connection_responses(hci_con_handle_t con_handle);
822
823/**
824 * @brief Returns the number of outgoing credits provided by peer
825 * @param local_cid
826 * @return number of credits
827 */
828uint16_t l2cap_ecbm_available_credits(uint16_t local_cid);
829
830/**
817 * @brief De-Init L2CAP
818 */
819void l2cap_deinit(void);
820
821/* API_END */
822
823
824// @deprecated - please use l2cap_ertm_create_channel

--- 43 unchanged lines hidden ---
831 * @brief De-Init L2CAP
832 */
833void l2cap_deinit(void);
834
835/* API_END */
836
837
838// @deprecated - please use l2cap_ertm_create_channel

--- 43 unchanged lines hidden ---