btstack_event.h (9af58dd9c8da6bd09aaab797dc58cab8ce0a31f9) btstack_event.h (598d4936f0733c027ac68bc9a6130a7a76a81190)
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

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

6151 * @param event packet
6152 * @return type
6153 * @note: btstack_type 1
6154 */
6155static inline uint8_t hfp_subevent_call_waiting_notification_get_type(const uint8_t * event){
6156 return event[5];
6157}
6158/**
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

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

6151 * @param event packet
6152 * @return type
6153 * @note: btstack_type 1
6154 */
6155static inline uint8_t hfp_subevent_call_waiting_notification_get_type(const uint8_t * event){
6156 return event[5];
6157}
6158/**
6159 * @brief Get field number_length from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
6160 * @param event packet
6161 * @return number_length
6162 * @note: btstack_type J
6163 */
6164static inline uint8_t hfp_subevent_call_waiting_notification_get_number_length(const uint8_t * event){
6165 return event[6];
6166}
6167/**
6159 * @brief Get field number from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
6160 * @param event packet
6161 * @return number
6168 * @brief Get field number from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
6169 * @param event packet
6170 * @return number
6162 * @note: btstack_type T
6171 * @note: btstack_type V
6163 */
6172 */
6164static inline const char * hfp_subevent_call_waiting_notification_get_number(const uint8_t * event){
6165 return (const char *) &event[6];
6173static inline const uint8_t * hfp_subevent_call_waiting_notification_get_number(const uint8_t * event){
6174 return &event[7];
6166}
6175}
6176/**
6177 * @brief Get field alpha_length from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
6178 * @param event packet
6179 * @return alpha_length
6180 * @note: btstack_type J
6181 */
6182static inline uint8_t hfp_subevent_call_waiting_notification_get_alpha_length(const uint8_t * event){
6183 return event[7u + event[6]];
6184}
6185/**
6186 * @brief Get field alpha from event HFP_SUBEVENT_CALL_WAITING_NOTIFICATION
6187 * @param event packet
6188 * @return alpha
6189 * @note: btstack_type V
6190 */
6191static inline const uint8_t * hfp_subevent_call_waiting_notification_get_alpha(const uint8_t * event){
6192 return &event[7u + event[6] + 1u];
6193}
6167
6168/**
6169 * @brief Get field acl_handle from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
6170 * @param event packet
6171 * @return acl_handle
6172 * @note: btstack_type H
6173 */
6174static inline hci_con_handle_t hfp_subevent_calling_line_identification_notification_get_acl_handle(const uint8_t * event){

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

6179 * @param event packet
6180 * @return type
6181 * @note: btstack_type 1
6182 */
6183static inline uint8_t hfp_subevent_calling_line_identification_notification_get_type(const uint8_t * event){
6184 return event[5];
6185}
6186/**
6194
6195/**
6196 * @brief Get field acl_handle from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
6197 * @param event packet
6198 * @return acl_handle
6199 * @note: btstack_type H
6200 */
6201static inline hci_con_handle_t hfp_subevent_calling_line_identification_notification_get_acl_handle(const uint8_t * event){

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

6206 * @param event packet
6207 * @return type
6208 * @note: btstack_type 1
6209 */
6210static inline uint8_t hfp_subevent_calling_line_identification_notification_get_type(const uint8_t * event){
6211 return event[5];
6212}
6213/**
6214 * @brief Get field number_length from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
6215 * @param event packet
6216 * @return number_length
6217 * @note: btstack_type J
6218 */
6219static inline uint8_t hfp_subevent_calling_line_identification_notification_get_number_length(const uint8_t * event){
6220 return event[6];
6221}
6222/**
6187 * @brief Get field number from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
6188 * @param event packet
6189 * @return number
6223 * @brief Get field number from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
6224 * @param event packet
6225 * @return number
6190 * @note: btstack_type T
6226 * @note: btstack_type V
6191 */
6227 */
6192static inline const char * hfp_subevent_calling_line_identification_notification_get_number(const uint8_t * event){
6193 return (const char *) &event[6];
6228static inline const uint8_t * hfp_subevent_calling_line_identification_notification_get_number(const uint8_t * event){
6229 return &event[7];
6194}
6230}
6231/**
6232 * @brief Get field alpha_length from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
6233 * @param event packet
6234 * @return alpha_length
6235 * @note: btstack_type J
6236 */
6237static inline uint8_t hfp_subevent_calling_line_identification_notification_get_alpha_length(const uint8_t * event){
6238 return event[7u + event[6]];
6239}
6240/**
6241 * @brief Get field alpha from event HFP_SUBEVENT_CALLING_LINE_IDENTIFICATION_NOTIFICATION
6242 * @param event packet
6243 * @return alpha
6244 * @note: btstack_type V
6245 */
6246static inline const uint8_t * hfp_subevent_calling_line_identification_notification_get_alpha(const uint8_t * event){
6247 return &event[7u + event[6] + 1u];
6248}
6195
6196/**
6197 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
6198 * @param event packet
6199 * @return acl_handle
6200 * @note: btstack_type H
6201 */
6202static inline hci_con_handle_t hfp_subevent_enhanced_call_status_get_acl_handle(const uint8_t * event){

--- 7945 unchanged lines hidden ---
6249
6250/**
6251 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_CALL_STATUS
6252 * @param event packet
6253 * @return acl_handle
6254 * @note: btstack_type H
6255 */
6256static inline hci_con_handle_t hfp_subevent_enhanced_call_status_get_acl_handle(const uint8_t * event){

--- 7945 unchanged lines hidden ---