btstack_event.h (2fca4dad957cd7b88f4657ed51e89c12615dda72) | btstack_event.h (9f0b00b1541df867db78f6e95a526cc34c1b50e2) |
---|---|
1/* 2 * Copyright (C) 2016 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 --- 6 unchanged lines hidden (view full) --- 15 * from this software without specific prior written permission. 16 * 4. Any redistribution, use, or modification is done solely for 17 * personal benefit and not for any commercial purpose or for 18 * monetary gain. 19 * 20 * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | 1/* 2 * Copyright (C) 2016 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 --- 6 unchanged lines hidden (view full) --- 15 * from this software without specific prior written permission. 16 * 4. Any redistribution, use, or modification is done solely for 17 * personal benefit and not for any commercial purpose or for 18 * monetary gain. 19 * 20 * THIS SOFTWARE IS PROVIDED BY BLUEKITCHEN GMBH AND CONTRIBUTORS 21 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
23 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BLUEKITCHEN 24 * GMBH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | 23 * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MATTHIAS 24 * RINGWALD OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 26 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 27 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 30 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * --- 1582 unchanged lines hidden (view full) --- 1615 * @note: btstack_type 2 1616 */ 1617static inline uint16_t l2cap_event_ertm_buffer_released_get_local_cid(const uint8_t * event){ 1618 return little_endian_read_16(event, 2); 1619} 1620 1621 1622/** | 25 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 26 * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS 27 * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 28 * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 29 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF 30 * THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * --- 1582 unchanged lines hidden (view full) --- 1615 * @note: btstack_type 2 1616 */ 1617static inline uint16_t l2cap_event_ertm_buffer_released_get_local_cid(const uint8_t * event){ 1618 return little_endian_read_16(event, 2); 1619} 1620 1621 1622/** |
1623 * @brief Get field con_handle from event L2CAP_EVENT_INFORMATION_RESPONSE 1624 * @param event packet 1625 * @return con_handle 1626 * @note: btstack_type H 1627 */ 1628static inline hci_con_handle_t l2cap_event_information_response_get_con_handle(const uint8_t * event){ 1629 return little_endian_read_16(event, 2); 1630} 1631/** 1632 * @brief Get field extended_feature_mask from event L2CAP_EVENT_INFORMATION_RESPONSE 1633 * @param event packet 1634 * @return extended_feature_mask 1635 * @note: btstack_type 2 1636 */ 1637static inline uint16_t l2cap_event_information_response_get_extended_feature_mask(const uint8_t * event){ 1638 return little_endian_read_16(event, 4); 1639} 1640/** 1641 * @brief Get field fixed_channels_supported from event L2CAP_EVENT_INFORMATION_RESPONSE 1642 * @param event packet 1643 * @return fixed_channels_supported 1644 * @note: btstack_type 2 1645 */ 1646static inline uint16_t l2cap_event_information_response_get_fixed_channels_supported(const uint8_t * event){ 1647 return little_endian_read_16(event, 6); 1648} 1649 1650/** |
|
1623 * @brief Get field status from event RFCOMM_EVENT_CHANNEL_OPENED 1624 * @param event packet 1625 * @return status 1626 * @note: btstack_type 1 1627 */ 1628static inline uint8_t rfcomm_event_channel_opened_get_status(const uint8_t * event){ 1629 return event[2]; 1630} --- 10575 unchanged lines hidden --- | 1651 * @brief Get field status from event RFCOMM_EVENT_CHANNEL_OPENED 1652 * @param event packet 1653 * @return status 1654 * @note: btstack_type 1 1655 */ 1656static inline uint8_t rfcomm_event_channel_opened_get_status(const uint8_t * event){ 1657 return event[2]; 1658} --- 10575 unchanged lines hidden --- |