btstack_event.h (7d81706fa74a61fff75d7256d66e4f9a74466633) | btstack_event.h (89974af9536673573950965d8fd4954cabae108e) |
---|---|
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 --- 9957 unchanged lines hidden (view full) --- 9966 * @return configuration 9967 * @note: btstack_type 1 9968 */ 9969static inline uint8_t gattservice_subevent_hid_service_reports_notification_get_configuration(const uint8_t * event){ 9970 return event[5]; 9971} 9972 9973/** | 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 --- 9957 unchanged lines hidden (view full) --- 9966 * @return configuration 9967 * @note: btstack_type 1 9968 */ 9969static inline uint8_t gattservice_subevent_hid_service_reports_notification_get_configuration(const uint8_t * event){ 9970 return event[5]; 9971} 9972 9973/** |
9974 * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 9975 * @param event packet 9976 * @return con_handle 9977 * @note: btstack_type H 9978 */ 9979static inline hci_con_handle_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_con_handle(const uint8_t * event){ 9980 return little_endian_read_16(event, 3); 9981} 9982/** 9983 * @brief Get field max_scan_interval from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 9984 * @param event packet 9985 * @return max_scan_interval 9986 * @note: btstack_type 2 9987 */ 9988static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_max_scan_interval(const uint8_t * event){ 9989 return little_endian_read_16(event, 5); 9990} 9991/** 9992 * @brief Get field min_scan_window from event GATTSERVICE_SUBEVENT_SCAN_PARAMETERS_SERVICE_SCAN_INTERVAL_UPDATE 9993 * @param event packet 9994 * @return min_scan_window 9995 * @note: btstack_type 2 9996 */ 9997static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interval_update_get_min_scan_window(const uint8_t * event){ 9998 return little_endian_read_16(event, 7); 9999} 10000 10001/** |
|
9974 * @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_OPENED 9975 * @param event packet 9976 * @return map_cid 9977 * @note: btstack_type 2 9978 */ 9979static inline uint16_t map_subevent_connection_opened_get_map_cid(const uint8_t * event){ 9980 return little_endian_read_16(event, 3); 9981} --- 1695 unchanged lines hidden --- | 10002 * @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_OPENED 10003 * @param event packet 10004 * @return map_cid 10005 * @note: btstack_type 2 10006 */ 10007static inline uint16_t map_subevent_connection_opened_get_map_cid(const uint8_t * event){ 10008 return little_endian_read_16(event, 3); 10009} --- 1695 unchanged lines hidden --- |