btstack_event.h (c27049fbd9f5a7cb6c98e31c73b1369ab1c50d19) btstack_event.h (ec6c27204750b74f8069b6dc0ce79f81489d53af)
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

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

6017 * @brief Get field negotiated_codec from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
6018 * @param event packet
6019 * @return negotiated_codec
6020 * @note: btstack_type 1
6021 */
6022static inline uint8_t hfp_subevent_audio_connection_established_get_negotiated_codec(const uint8_t * event){
6023 return event[14];
6024}
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

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

6017 * @brief Get field negotiated_codec from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
6018 * @param event packet
6019 * @return negotiated_codec
6020 * @note: btstack_type 1
6021 */
6022static inline uint8_t hfp_subevent_audio_connection_established_get_negotiated_codec(const uint8_t * event){
6023 return event[14];
6024}
6025/**
6026 * @brief Get field sco_packet_types from event HFP_SUBEVENT_AUDIO_CONNECTION_ESTABLISHED
6027 * @param event packet
6028 * @return sco_packet_types
6029 * @note: btstack_type 2
6030 */
6031static inline uint16_t hfp_subevent_audio_connection_established_get_sco_packet_types(const uint8_t * event){
6032 return little_endian_read_16(event, 15);
6033}
6025
6026/**
6027 * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED
6028 * @param event packet
6029 * @return acl_handle
6030 * @note: btstack_type H
6031 */
6032static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_acl_handle(const uint8_t * event){

--- 10462 unchanged lines hidden ---
6034
6035/**
6036 * @brief Get field acl_handle from event HFP_SUBEVENT_AUDIO_CONNECTION_RELEASED
6037 * @param event packet
6038 * @return acl_handle
6039 * @note: btstack_type H
6040 */
6041static inline hci_con_handle_t hfp_subevent_audio_connection_released_get_acl_handle(const uint8_t * event){

--- 10462 unchanged lines hidden ---