btstack_event.h (852600fbce4a1e622d1594c6dc93f5a41681ae3e) | btstack_event.h (48ce193c1bb43973676c530932628af0332bfb28) |
---|---|
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 --- 7172 unchanged lines hidden (view full) --- 7181 * @return status 7182 * @note: btstack_type 1 7183 */ 7184static inline uint8_t a2dp_subevent_stream_established_get_status(const uint8_t * event){ 7185 return event[13]; 7186} 7187 7188/** | 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 --- 7172 unchanged lines hidden (view full) --- 7181 * @return status 7182 * @note: btstack_type 1 7183 */ 7184static inline uint8_t a2dp_subevent_stream_established_get_status(const uint8_t * event){ 7185 return event[13]; 7186} 7187 7188/** |
7189 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_START_STREAM_REQUESTED 7190 * @param event packet 7191 * @return a2dp_cid 7192 * @note: btstack_type 2 7193 */ 7194static inline uint16_t a2dp_subevent_start_stream_requested_get_a2dp_cid(const uint8_t * event){ 7195 return little_endian_read_16(event, 3); 7196} 7197/** 7198 * @brief Get field local_seid from event A2DP_SUBEVENT_START_STREAM_REQUESTED 7199 * @param event packet 7200 * @return local_seid 7201 * @note: btstack_type 1 7202 */ 7203static inline uint8_t a2dp_subevent_start_stream_requested_get_local_seid(const uint8_t * event){ 7204 return event[5]; 7205} 7206 7207/** |
|
7189 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STARTED 7190 * @param event packet 7191 * @return a2dp_cid 7192 * @note: btstack_type 2 7193 */ 7194static inline uint16_t a2dp_subevent_stream_started_get_a2dp_cid(const uint8_t * event){ 7195 return little_endian_read_16(event, 3); 7196} --- 4954 unchanged lines hidden --- | 7208 * @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_STARTED 7209 * @param event packet 7210 * @return a2dp_cid 7211 * @note: btstack_type 2 7212 */ 7213static inline uint16_t a2dp_subevent_stream_started_get_a2dp_cid(const uint8_t * event){ 7214 return little_endian_read_16(event, 3); 7215} --- 4954 unchanged lines hidden --- |