btstack_event.h (e83f1be7ee16b37f0de648dbefc71439a2c442f0) | btstack_event.h (a9e632e9130abf3d16ab069ece35e9853dcc0762) |
---|---|
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_ENABLED | 4721 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED |
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_enabled_get_acl_handle(const uint8_t * event){ | 4726static inline hci_con_handle_t hfp_subevent_voice_recognition_activated_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_ENABLED | 4730 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED |
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_enabled_get_status(const uint8_t * event){ | 4735static inline uint8_t hfp_subevent_voice_recognition_activated_get_status(const uint8_t * event){ |
4736 return event[5]; 4737} 4738/** | 4736 return event[5]; 4737} 4738/** |
4739 * @brief Get field enhanced from event HFP_SUBEVENT_VOICE_RECOGNITION_ENABLED | 4739 * @brief Get field enhanced from event HFP_SUBEVENT_VOICE_RECOGNITION_ACTIVATED |
4740 * @param event packet 4741 * @return enhanced 4742 * @note: btstack_type 1 4743 */ | 4740 * @param event packet 4741 * @return enhanced 4742 * @note: btstack_type 1 4743 */ |
4744static inline uint8_t hfp_subevent_voice_recognition_enabled_get_enhanced(const uint8_t * event){ | 4744static inline uint8_t hfp_subevent_voice_recognition_activated_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 | 4749 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED |
4750 * @param event packet 4751 * @return acl_handle 4752 * @note: btstack_type H 4753 */ | 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){ | 4754static inline hci_con_handle_t hfp_subevent_voice_recognition_deactivated_get_acl_handle(const uint8_t * event){ |
4755 return little_endian_read_16(event, 3); 4756} 4757/** | 4755 return little_endian_read_16(event, 3); 4756} 4757/** |
4758 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_DISABLED | 4758 * @brief Get field status from event HFP_SUBEVENT_VOICE_RECOGNITION_DEACTIVATED |
4759 * @param event packet 4760 * @return status 4761 * @note: btstack_type 1 4762 */ | 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){ | 4763static inline uint8_t hfp_subevent_voice_recognition_deactivated_get_status(const uint8_t * event){ |
4764 return event[5]; 4765} 4766 4767/** 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 --- 7324 unchanged lines hidden --- | 4764 return event[5]; 4765} 4766 4767/** 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 --- 7324 unchanged lines hidden --- |