btstack_event.h (584bbe7d59efa1c2a1cd2066ed6c23700d212751) | btstack_event.h (891b9fc2698ee1660239b66b4ecf3d9c2affaae8) |
---|---|
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 --- 3245 unchanged lines hidden (view full) --- 3254 * @return status 3255 * @note: btstack_type 1 3256 */ 3257static inline uint8_t gap_event_inquiry_complete_get_status(const uint8_t * event){ 3258 return event[2]; 3259} 3260 3261/** | 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 --- 3245 unchanged lines hidden (view full) --- 3254 * @return status 3255 * @note: btstack_type 1 3256 */ 3257static inline uint8_t gap_event_inquiry_complete_get_status(const uint8_t * event){ 3258 return event[2]; 3259} 3260 3261/** |
3262 * @brief Get field con_handle from event GAP_EVENT_RSSI_MEASUREMENT 3263 * @param event packet 3264 * @return con_handle 3265 * @note: btstack_type H 3266 */ 3267static inline hci_con_handle_t gap_event_rssi_measurement_get_con_handle(const uint8_t * event){ 3268 return little_endian_read_16(event, 2); 3269} 3270/** 3271 * @brief Get field rssi from event GAP_EVENT_RSSI_MEASUREMENT 3272 * @param event packet 3273 * @return rssi 3274 * @note: btstack_type 1 3275 */ 3276static inline uint8_t gap_event_rssi_measurement_get_rssi(const uint8_t * event){ 3277 return event[4]; 3278} 3279 3280/** |
|
3262 * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 3263 * @param event packet 3264 * @return status 3265 * @note: btstack_type 1 3266 */ 3267static inline uint8_t hci_subevent_le_connection_complete_get_status(const uint8_t * event){ 3268 return event[3]; 3269} --- 4638 unchanged lines hidden --- | 3281 * @brief Get field status from event HCI_SUBEVENT_LE_CONNECTION_COMPLETE 3282 * @param event packet 3283 * @return status 3284 * @note: btstack_type 1 3285 */ 3286static inline uint8_t hci_subevent_le_connection_complete_get_status(const uint8_t * event){ 3287 return event[3]; 3288} --- 4638 unchanged lines hidden --- |