hfp.h (5ebff8020d95919f5a4fa00a07ae0d456deae24b) hfp.h (51a2ebde0031fdd3ad6bb64362108b25da7cb703)
1/*
2 * Copyright (C) 2014 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

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

217 HFP_CMD_TRANSMIT_DTMF_CODES,
218 HFP_CMD_SET_MICROPHONE_GAIN,
219 HFP_CMD_SET_SPEAKER_GAIN,
220 HFP_CMD_GET_SUBSCRIBER_NUMBER_INFORMATION,
221 HFP_CMD_LIST_CURRENT_CALLS,
222 HFP_CMD_RESPONSE_AND_HOLD_QUERY,
223 HFP_CMD_RESPONSE_AND_HOLD_COMMAND,
224 HFP_CMD_RESPONSE_AND_HOLD_STATUS,
1/*
2 * Copyright (C) 2014 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

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

217 HFP_CMD_TRANSMIT_DTMF_CODES,
218 HFP_CMD_SET_MICROPHONE_GAIN,
219 HFP_CMD_SET_SPEAKER_GAIN,
220 HFP_CMD_GET_SUBSCRIBER_NUMBER_INFORMATION,
221 HFP_CMD_LIST_CURRENT_CALLS,
222 HFP_CMD_RESPONSE_AND_HOLD_QUERY,
223 HFP_CMD_RESPONSE_AND_HOLD_COMMAND,
224 HFP_CMD_RESPONSE_AND_HOLD_STATUS,
225 HFP_CMD_HF_INDICATOR_STATUS
225 HFP_CMD_HF_INDICATOR_STATUS,
226 HFP_CMD_CUSTOM_MESSAGE
226} hfp_command_t;
227
228
229typedef enum {
230 HFP_CME_ERROR_AG_FAILURE = 0,
231 HFP_CME_ERROR_NO_CONNECTION_TO_PHONE,
232 HFP_CME_ERROR_2,
233 HFP_CME_ERROR_OPERATION_NOT_ALLOWED,

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

626
627 uint8_t speaker_gain;
628 uint8_t send_speaker_gain;
629
630 uint8_t send_phone_number_for_voice_tag;
631 uint8_t send_ag_status_indicators;
632 uint8_t send_ag_indicators_segment;
633 uint8_t send_response_and_hold_status; // 0 - don't send. BRTH:0 == 1, ..
227} hfp_command_t;
228
229
230typedef enum {
231 HFP_CME_ERROR_AG_FAILURE = 0,
232 HFP_CME_ERROR_NO_CONNECTION_TO_PHONE,
233 HFP_CME_ERROR_2,
234 HFP_CME_ERROR_OPERATION_NOT_ALLOWED,

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

627
628 uint8_t speaker_gain;
629 uint8_t send_speaker_gain;
630
631 uint8_t send_phone_number_for_voice_tag;
632 uint8_t send_ag_status_indicators;
633 uint8_t send_ag_indicators_segment;
634 uint8_t send_response_and_hold_status; // 0 - don't send. BRTH:0 == 1, ..
634
635
636 // HF: AT Command, AG: Unsolicited Result Code
637 const char * send_custom_message;
638
635 bool emit_vra_enabled_after_audio_established;
636 // AG only
637 uint8_t change_in_band_ring_tone_setting;
638 uint8_t ag_ring;
639 uint8_t ag_send_clip;
640 uint8_t ag_echo_and_noise_reduction;
641 // used by AG: HFP parser stores here the activation value issued by HF
642 uint8_t ag_activate_voice_recognition_value;

--- 214 unchanged lines hidden ---
639 bool emit_vra_enabled_after_audio_established;
640 // AG only
641 uint8_t change_in_band_ring_tone_setting;
642 uint8_t ag_ring;
643 uint8_t ag_send_clip;
644 uint8_t ag_echo_and_noise_reduction;
645 // used by AG: HFP parser stores here the activation value issued by HF
646 uint8_t ag_activate_voice_recognition_value;

--- 214 unchanged lines hidden ---