btstack_event.h (f00767dfec407fd8ed22a0e1aabc57df3c4fed36) btstack_event.h (72aba3fa657b12bc2488022a2cbdd630df75e1e7)
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

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

2831 * @param event packet
2832 * @return handle
2833 * @note: btstack_type H
2834 */
2835static inline hci_con_handle_t gatt_event_long_characteristic_descriptor_query_result_get_handle(const uint8_t * event){
2836 return little_endian_read_16(event, 2);
2837}
2838/**
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

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

2831 * @param event packet
2832 * @return handle
2833 * @note: btstack_type H
2834 */
2835static inline hci_con_handle_t gatt_event_long_characteristic_descriptor_query_result_get_handle(const uint8_t * event){
2836 return little_endian_read_16(event, 2);
2837}
2838/**
2839 * @brief Get field descriptor_handle from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2840 * @param event packet
2841 * @return descriptor_handle
2842 * @note: btstack_type 2
2843 */
2844static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_handle(const uint8_t * event){
2845 return little_endian_read_16(event, 4);
2846}
2847/**
2839 * @brief Get field descriptor_offset from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2840 * @param event packet
2841 * @return descriptor_offset
2842 * @note: btstack_type 2
2843 */
2844static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_offset(const uint8_t * event){
2848 * @brief Get field descriptor_offset from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2849 * @param event packet
2850 * @return descriptor_offset
2851 * @note: btstack_type 2
2852 */
2853static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_offset(const uint8_t * event){
2845 return little_endian_read_16(event, 4);
2854 return little_endian_read_16(event, 6);
2846}
2847/**
2848 * @brief Get field descriptor_length from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2849 * @param event packet
2850 * @return descriptor_length
2851 * @note: btstack_type L
2852 */
2853static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){
2855}
2856/**
2857 * @brief Get field descriptor_length from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2858 * @param event packet
2859 * @return descriptor_length
2860 * @note: btstack_type L
2861 */
2862static inline uint16_t gatt_event_long_characteristic_descriptor_query_result_get_descriptor_length(const uint8_t * event){
2854 return little_endian_read_16(event, 6);
2863 return little_endian_read_16(event, 8);
2855}
2856/**
2857 * @brief Get field descriptor from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2858 * @param event packet
2859 * @return descriptor
2860 * @note: btstack_type V
2861 */
2862static inline const uint8_t * gatt_event_long_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){
2864}
2865/**
2866 * @brief Get field descriptor from event GATT_EVENT_LONG_CHARACTERISTIC_DESCRIPTOR_QUERY_RESULT
2867 * @param event packet
2868 * @return descriptor
2869 * @note: btstack_type V
2870 */
2871static inline const uint8_t * gatt_event_long_characteristic_descriptor_query_result_get_descriptor(const uint8_t * event){
2863 return &event[8];
2872 return &event[10];
2864}
2865#endif
2866
2867#ifdef ENABLE_BLE
2868/**
2869 * @brief Get field handle from event GATT_EVENT_MTU
2870 * @param event packet
2871 * @return handle

--- 12429 unchanged lines hidden ---
2873}
2874#endif
2875
2876#ifdef ENABLE_BLE
2877/**
2878 * @brief Get field handle from event GATT_EVENT_MTU
2879 * @param event packet
2880 * @return handle

--- 12429 unchanged lines hidden ---