l2cap.h (dfc5d4aed94bed8234f94d1fd37178a70255f1ba) l2cap.h (b93f89661ecd1d19be40311be96b92932960a800)
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

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

496 * @param mtu
497 * @param local_cid
498 * @return status
499 */
500uint8_t l2cap_create_channel(btstack_packet_handler_t packet_handler, bd_addr_t address, uint16_t psm, uint16_t mtu, uint16_t * out_local_cid);
501
502/**
503 * @brief Disconnects L2CAP channel with given identifier.
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

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

496 * @param mtu
497 * @param local_cid
498 * @return status
499 */
500uint8_t l2cap_create_channel(btstack_packet_handler_t packet_handler, bd_addr_t address, uint16_t psm, uint16_t mtu, uint16_t * out_local_cid);
501
502/**
503 * @brief Disconnects L2CAP channel with given identifier.
504 * @param local_cid
505 * @return status ERROR_CODE_SUCCESS if successful or L2CAP_LOCAL_CID_DOES_NOT_EXIST
504 */
506 */
505void l2cap_disconnect(uint16_t local_cid, uint8_t reason);
507uint8_t l2cap_disconnect(uint16_t local_cid);
506
507/**
508 * @brief Queries the maximal transfer unit (MTU) for L2CAP channel with given identifier.
509 */
510uint16_t l2cap_get_remote_mtu_for_local_cid(uint16_t local_cid);
511
512/**
513 * @brief Sends L2CAP data packet to the channel with given identifier.

--- 380 unchanged lines hidden ---
508
509/**
510 * @brief Queries the maximal transfer unit (MTU) for L2CAP channel with given identifier.
511 */
512uint16_t l2cap_get_remote_mtu_for_local_cid(uint16_t local_cid);
513
514/**
515 * @brief Sends L2CAP data packet to the channel with given identifier.

--- 380 unchanged lines hidden ---