btstack_event.h (ac9136ccd47a6db59898b61b22080d6a73091652) btstack_event.h (024ad916e6eadd64fd93c7b51e9693d48960fca0)
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

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

4657 * @param event packet
4658 * @return status
4659 * @note: btstack_type 1
4660 */
4661static inline uint8_t hfp_subevent_in_band_ring_tone_get_status(const uint8_t * event){
4662 return event[5];
4663}
4664
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

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

4657 * @param event packet
4658 * @return status
4659 * @note: btstack_type 1
4660 */
4661static inline uint8_t hfp_subevent_in_band_ring_tone_get_status(const uint8_t * event){
4662 return event[5];
4663}
4664
4665/**
4666 * @brief Get field acl_handle from event HFP_SUBEVENT_VOICE_RECOGNITION_STATUS
4667 * @param event packet
4668 * @return acl_handle
4669 * @note: btstack_type H
4670 */
4671static inline hci_con_handle_t hfp_subevent_voice_recognition_status_get_acl_handle(const uint8_t * event){
4672 return little_endian_read_16(event, 3);
4673}
4674/**
4675 * @brief Get field activated from event HFP_SUBEVENT_VOICE_RECOGNITION_STATUS
4676 * @param event packet
4677 * @return activated
4678 * @note: btstack_type 1
4679 */
4680static inline uint8_t hfp_subevent_voice_recognition_status_get_activated(const uint8_t * event){
4681 return event[5];
4682}
4683
4684/**
4685 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_STATUS
4686 * @param event packet
4687 * @return acl_handle
4688 * @note: btstack_type H
4689 */
4690static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_status_get_acl_handle(const uint8_t * event){
4691 return little_endian_read_16(event, 3);
4692}
4693/**
4694 * @brief Get field state from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_STATUS
4695 * @param event packet
4696 * @return state
4697 * @note: btstack_type 1
4698 */
4699static inline uint8_t hfp_subevent_enhanced_voice_recognition_status_get_state(const uint8_t * event){
4700 return event[5];
4701}
4702
4703/**
4704 * @brief Get field acl_handle from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_TEXT
4705 * @param event packet
4706 * @return acl_handle
4707 * @note: btstack_type H
4708 */
4709static inline hci_con_handle_t hfp_subevent_enhanced_voice_recognition_text_get_acl_handle(const uint8_t * event){
4710 return little_endian_read_16(event, 3);
4711}
4712/**
4713 * @brief Get field text_id from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_TEXT
4714 * @param event packet
4715 * @return text_id
4716 * @note: btstack_type 2
4717 */
4718static inline uint16_t hfp_subevent_enhanced_voice_recognition_text_get_text_id(const uint8_t * event){
4719 return little_endian_read_16(event, 5);
4720}
4721/**
4722 * @brief Get field text_type from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_TEXT
4723 * @param event packet
4724 * @return text_type
4725 * @note: btstack_type 1
4726 */
4727static inline uint8_t hfp_subevent_enhanced_voice_recognition_text_get_text_type(const uint8_t * event){
4728 return event[7];
4729}
4730/**
4731 * @brief Get field text_length from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_TEXT
4732 * @param event packet
4733 * @return text_length
4734 * @note: btstack_type L
4735 */
4736static inline uint16_t hfp_subevent_enhanced_voice_recognition_text_get_text_length(const uint8_t * event){
4737 return little_endian_read_16(event, 8);
4738}
4739/**
4740 * @brief Get field text from event HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_TEXT
4741 * @param event packet
4742 * @return text
4743 * @note: btstack_type V
4744 */
4745static inline const uint8_t * hfp_subevent_enhanced_voice_recognition_text_get_text(const uint8_t * event){
4746 return &event[10];
4747}
4748
4665#ifdef ENABLE_BLE
4666/**
4667 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED
4668 * @param event packet
4669 * @return handle
4670 * @note: btstack_type H
4671 */
4672static inline hci_con_handle_t ancs_subevent_client_connected_get_handle(const uint8_t * event){

--- 7115 unchanged lines hidden ---
4749#ifdef ENABLE_BLE
4750/**
4751 * @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED
4752 * @param event packet
4753 * @return handle
4754 * @note: btstack_type H
4755 */
4756static inline hci_con_handle_t ancs_subevent_client_connected_get_handle(const uint8_t * event){

--- 7115 unchanged lines hidden ---