btstack_event.h (688428b6a1ad74bb34d391aba49a9f3cb79cc7e9) btstack_event.h (553a4a561f786fff6050306fb8f8ca8e28d447d4)
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

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

4713 * @return status
4714 * @note: btstack_type 1
4715 */
4716static inline uint8_t hfp_subevent_in_band_ring_tone_get_status(const uint8_t * event){
4717 return event[5];
4718}
4719
4720/**
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

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

4713 * @return status
4714 * @note: btstack_type 1
4715 */
4716static inline uint8_t hfp_subevent_in_band_ring_tone_get_status(const uint8_t * event){
4717 return event[5];
4718}
4719
4720/**
4721 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_STATUS
4721 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_ENABLED
4722 * @param event packet
4723 * @return acl_handle
4724 * @note: btstack_type H
4725 */
4722 * @param event packet
4723 * @return acl_handle
4724 * @note: btstack_type H
4725 */
4726static inline hci_con_handle_t hfp_subevent_voice_recognition_status_get_acl_handle(const uint8_t * event){
4726static inline hci_con_handle_t hfp_subevent_voice_recognition_enabled_get_acl_handle(const uint8_t * event){
4727 return little_endian_read_16(event, 3);
4728}
4729/**
4727 return little_endian_read_16(event, 3);
4728}
4729/**
4730 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_STATUS
4730 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_ENABLED
4731 * @param event packet
4732 * @return status
4733 * @note: btstack_type 1
4734 */
4731 * @param event packet
4732 * @return status
4733 * @note: btstack_type 1
4734 */
4735static inline uint8_t hfp_subevent_voice_recognition_status_get_status(const uint8_t * event){
4735static inline uint8_t hfp_subevent_voice_recognition_enabled_get_status(const uint8_t * event){
4736 return event[5];
4737}
4738/**
4736 return event[5];
4737}
4738/**
4739 * @brief Get field state from event HFP_SUBEVENT_VOICE_RECOGNITION_STATUS
4739 * @brief Get field enhanced from event HFP_SUBEVENT_VOICE_RECOGNITION_ENABLED
4740 * @param event packet
4740 * @param event packet
4741 * @return state
4741 * @return enhanced
4742 * @note: btstack_type 1
4743 */
4742 * @note: btstack_type 1
4743 */
4744static inline uint8_t hfp_subevent_voice_recognition_status_get_state(const uint8_t * event){
4744static inline uint8_t hfp_subevent_voice_recognition_enabled_get_enhanced(const uint8_t * event){
4745 return event[6];
4746}
4747
4748/**
4745 return event[6];
4746}
4747
4748/**
4749 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_DISABLED
4750 * @param event packet
4751 * @return acl_handle
4752 * @note: btstack_type H
4753 */
4754static inline hci_con_handle_t hfp_subevent_voice_recognition_disabled_get_acl_handle(const uint8_t * event){
4755 return little_endian_read_16(event, 3);
4756}
4757/**
4758 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_DISABLED
4759 * @param event packet
4760 * @return status
4761 * @note: btstack_type 1
4762 */
4763static inline uint8_t hfp_subevent_voice_recognition_disabled_get_status(const uint8_t * event){
4764 return event[5];
4765}
4766
4767/**
4749 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO
4750 * @param event packet
4751 * @return acl_handle
4752 * @note: btstack_type H
4753 */
4754static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_acl_handle(const uint8_t * event){
4755 return little_endian_read_16(event, 3);
4756}

--- 7320 unchanged lines hidden ---
4768 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_HF_READY_FOR_AUDIO
4769 * @param event packet
4770 * @return acl_handle
4771 * @note: btstack_type H
4772 */
4773static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_hf_ready_for_audio_get_acl_handle(const uint8_t * event){
4774 return little_endian_read_16(event, 3);
4775}

--- 7320 unchanged lines hidden ---