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

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

1122 * @brief Get field incoming from event L2CAP_EVENT_CHANNEL_OPENED
1123 * @param event packet
1124 * @return incoming
1125 * @note: btstack_type 1
1126 */
1127static inline uint8_t l2cap_event_channel_opened_get_incoming(const uint8_t * event){
1128 return event[23];
1129}
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

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

1122 * @brief Get field incoming from event L2CAP_EVENT_CHANNEL_OPENED
1123 * @param event packet
1124 * @return incoming
1125 * @note: btstack_type 1
1126 */
1127static inline uint8_t l2cap_event_channel_opened_get_incoming(const uint8_t * event){
1128 return event[23];
1129}
1130/**
1131 * @brief Get field mode from event L2CAP_EVENT_CHANNEL_OPENED
1132 * @param event packet
1133 * @return mode
1134 * @note: btstack_type 1
1135 */
1136static inline uint8_t l2cap_event_channel_opened_get_mode(const uint8_t * event){
1137 return event[24];
1138}
1139/**
1140 * @brief Get field fcs from event L2CAP_EVENT_CHANNEL_OPENED
1141 * @param event packet
1142 * @return fcs
1143 * @note: btstack_type 1
1144 */
1145static inline uint8_t l2cap_event_channel_opened_get_fcs(const uint8_t * event){
1146 return event[25];
1147}
1130
1131/**
1132 * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_CLOSED
1133 * @param event packet
1134 * @return local_cid
1135 * @note: btstack_type 2
1136 */
1137static inline uint16_t l2cap_event_channel_closed_get_local_cid(const uint8_t * event){

--- 5813 unchanged lines hidden ---
1148
1149/**
1150 * @brief Get field local_cid from event L2CAP_EVENT_CHANNEL_CLOSED
1151 * @param event packet
1152 * @return local_cid
1153 * @note: btstack_type 2
1154 */
1155static inline uint16_t l2cap_event_channel_closed_get_local_cid(const uint8_t * event){

--- 5813 unchanged lines hidden ---