btstack_event.h (b24771d95ee6d9f64db864cc393e7cef0ede2b50) | btstack_event.h (ec422a3a4976e7a9c71e76dbd16a721dd3ee46fa) |
---|---|
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 --- 7642 unchanged lines hidden (view full) --- 7651 * @return attention_time 7652 * @note: btstack_type 1 7653 */ 7654static inline uint8_t mesh_subevent_attention_timer_get_attention_time(const uint8_t * event){ 7655 return event[3]; 7656} 7657 7658/** | 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 --- 7642 unchanged lines hidden (view full) --- 7651 * @return attention_time 7652 * @note: btstack_type 1 7653 */ 7654static inline uint8_t mesh_subevent_attention_timer_get_attention_time(const uint8_t * event){ 7655 return event[3]; 7656} 7657 7658/** |
7659 * @brief Get field status from event MESH_SUBEVENT_PROXY_CONNECTED 7660 * @param event packet 7661 * @return status 7662 * @note: btstack_type 1 7663 */ 7664static inline uint8_t mesh_subevent_proxy_connected_get_status(const uint8_t * event){ 7665 return event[3]; 7666} 7667/** | |
7668 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_CONNECTED 7669 * @param event packet 7670 * @return con_handle 7671 * @note: btstack_type H 7672 */ 7673static inline hci_con_handle_t mesh_subevent_proxy_connected_get_con_handle(const uint8_t * event){ | 7659 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_CONNECTED 7660 * @param event packet 7661 * @return con_handle 7662 * @note: btstack_type H 7663 */ 7664static inline hci_con_handle_t mesh_subevent_proxy_connected_get_con_handle(const uint8_t * event){ |
7674 return little_endian_read_16(event, 4); | 7665 return little_endian_read_16(event, 3); |
7675} 7676 7677/** 7678 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_PDU_SENT 7679 * @param event packet 7680 * @return con_handle 7681 * @note: btstack_type H 7682 */ --- 568 unchanged lines hidden --- | 7666} 7667 7668/** 7669 * @brief Get field con_handle from event MESH_SUBEVENT_PROXY_PDU_SENT 7670 * @param event packet 7671 * @return con_handle 7672 * @note: btstack_type H 7673 */ --- 568 unchanged lines hidden --- |