btstack_event.h (7f1690cf27ca04545945f16bd57a2ec52ce35927) btstack_event.h (66a726407acdab10cd9cfc3d51a507b822221f33)
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

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

1458 * @return local_cid
1459 * @note: btstack_type 2
1460 */
1461static inline uint16_t l2cap_event_le_packet_sent_get_local_cid(const uint8_t * event){
1462 return little_endian_read_16(event, 2);
1463}
1464
1465/**
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

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

1458 * @return local_cid
1459 * @note: btstack_type 2
1460 */
1461static inline uint16_t l2cap_event_le_packet_sent_get_local_cid(const uint8_t * event){
1462 return little_endian_read_16(event, 2);
1463}
1464
1465/**
1466 * @brief Get field local_cid from event L2CAP_EVENT_ERTM_BUFFER_RELEASED
1467 * @param event packet
1468 * @return local_cid
1469 * @note: btstack_type 2
1470 */
1471static inline uint16_t l2cap_event_ertm_buffer_released_get_local_cid(const uint8_t * event){
1472 return little_endian_read_16(event, 2);
1473}
1474
1475/**
1466 * @brief Get field status from event RFCOMM_EVENT_CHANNEL_OPENED
1467 * @param event packet
1468 * @return status
1469 * @note: btstack_type 1
1470 */
1471static inline uint8_t rfcomm_event_channel_opened_get_status(const uint8_t * event){
1472 return event[2];
1473}

--- 5495 unchanged lines hidden ---
1476 * @brief Get field status from event RFCOMM_EVENT_CHANNEL_OPENED
1477 * @param event packet
1478 * @return status
1479 * @note: btstack_type 1
1480 */
1481static inline uint8_t rfcomm_event_channel_opened_get_status(const uint8_t * event){
1482 return event[2];
1483}

--- 5495 unchanged lines hidden ---