l2cap.h (2fca4dad957cd7b88f4657ed51e89c12615dda72) | l2cap.h (0b81d2a574f0a2bc297d86517e065a1a08615d68) |
---|---|
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 --- 433 unchanged lines hidden (view full) --- 442#define PSM_ATT 0x1f 443#define PSM_IPSP 0x23 444 445/** 446 * @brief Set up L2CAP and register L2CAP with HCI layer. 447 */ 448void l2cap_init(void); 449 | 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 --- 433 unchanged lines hidden (view full) --- 442#define PSM_ATT 0x1f 443#define PSM_IPSP 0x23 444 445/** 446 * @brief Set up L2CAP and register L2CAP with HCI layer. 447 */ 448void l2cap_init(void); 449 |
450/** 451 * @brief Registers packet handler for LE Connection Parameter Update events | 450/** 451 * @brief Add event packet handler for LE Connection Parameter Update events |
452 */ | 452 */ |
453void l2cap_register_packet_handler(void (*handler)(uint8_t packet_type, uint16_t channel, uint8_t *packet, uint16_t size)); | 453void l2cap_add_event_handler(btstack_packet_callback_registration_t * callback_handler); |
454 | 454 |
455/** 456 * @brief Remove event packet handler. 457 */ 458void l2cap_remove_event_handler(btstack_packet_callback_registration_t * callback_handler); 459 |
|
455/** 456 * @brief Get max MTU for Classic connections based on btstack configuration 457 */ 458uint16_t l2cap_max_mtu(void); 459 460/** 461 * @brief Get max MTU for LE connections based on btstack configuration 462 */ --- 239 unchanged lines hidden --- | 460/** 461 * @brief Get max MTU for Classic connections based on btstack configuration 462 */ 463uint16_t l2cap_max_mtu(void); 464 465/** 466 * @brief Get max MTU for LE connections based on btstack configuration 467 */ --- 239 unchanged lines hidden --- |