⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pmic_audio.h

📁 Microsoft WinCE 6.0 BSP FINAL release source code for use with the i.MX27ADS TO2 WCE600_FINAL_MX27_S
💻 H
📖 第 1 页 / 共 5 页
字号:
/*@}*/

/*!
 * @name Microphone Input Typedefs and Enumerations
 * Typedefs and enumerations that are used for selecting and setting up
 * one or more or microphone inputs for recording.
 */
/*@{*/

/*!
 * @enum PMIC_AUDIO_MIC_BIAS
 * @brief Select the microphone bias circuit to be enabled/disabled.
 *
 * This enumeration lists all of the available microphone bias circuits that
 * may be enabled or disabled.
 */
typedef enum
{
    NO_BIAS   = 0,        /*!< No microphone bias circuit selected.      */
    MIC_BIAS1 = 1,        /*!< Enable/disable microphone bias 1 circuit. */
    MIC_BIAS2 = 2,        /*!< Enable/disable microphone bias 2 circuit. */
} PMIC_AUDIO_MIC_BIAS;

/*!
 * @enum PMIC_AUDIO_INPUT_PORT
 * @brief Select an audio input port for recording.
 *
 * This enumeration lists all of the available audio input ports that may
 * be selected for a recording operation.
 */
typedef enum
{
    NO_MIC,               /*!< No microphone input selected.               */
    MIC1_LEFT,            /*!< Enable left/mono channel microphone input
                               <b>(MC13783-only)</b>.                      */
    MIC1_RIGHT_MIC_MONO,  /*!< Enable right channel microphone input.      */
    MIC2_AUX,             /*!< Enable auxiliary microphone input.          */
    TXIN_EXT,             /*!< Enable external mono input.                 */
    RXIN_STEREO           /*!< Enable external stero input
                               <b>(MC13783-only)</b>.                      */
} PMIC_AUDIO_INPUT_PORT;

/*!
 * @enum PMIC_AUDIO_INPUT_MIC_STATE
 * @brief Control whether the input microphone is on/off.
 *
 * This enumeration allows the currently selected input microphone amplifier
 * to be turned on/off.
 */
typedef enum
{
    MICROPHONE_ON,        /*!< Turn microphone input on for recording. */
    MICROPHONE_OFF        /*!< Turn microphone input off (mute).       */
} PMIC_AUDIO_INPUT_MIC_STATE;

/*!
 * @enum PMIC_AUDIO_INPUT_CONFIG
 * @brief Enable/disable the audio input options.
 *
 * This enumeration allows for enabling/disabling any of the audio input
 * section options.
 */
typedef enum
{
    MIC_AMP_AUTO_DISABLE = 1,     /*!< Enable/disable automatic disabling of
                                       microphone input amplifiers following
                                       headset insertion/removal
                                       <b>(SC55112)</b>.                     */
    MIC2_BIAS_DETECT = 2          /*!< Enable/disable detection of the Bias2
                                       circuit out of regulation condition
                                       <b>(MC13783-only)</b>                 */
} PMIC_AUDIO_INPUT_CONFIG;

/*!
 * @enum PMIC_AUDIO_MIC_AMP_MODE
 * @brief Select the operating mode for the microphone amplifiers.
 *
 * This enumeration is used to select the operating mode for the microphone
 * amplifier.
 */
typedef enum
{
    AMP_OFF,                      /*!< Disable input amplifier.   */
    VOLTAGE_TO_VOLTAGE,           /*!< Operate input amplifier in
                                       voltage-to-voltage mode
                                       <b>(MC13783-only)</b>.     */
    CURRENT_TO_VOLTAGE            /*!< Operate input amplifier in
                                       current-to-voltage mode    */
} PMIC_AUDIO_MIC_AMP_MODE;

/*!
 * @enum PMIC_AUDIO_MIC_GAIN
 * @brief Select the microphone amplifier gain level.
 *
 * This enumeration lists all of the available microphone amplifier gain
 * levels.
 */
typedef enum
{
    MIC_GAIN_MINUS_8DB,          /*!< Select -8dB microphone amplifier gain
                                      <b>(MC13783-only)</b>.                 */
    MIC_GAIN_MINUS_7DB,          /*!< Select -7dB microphone amplifier gain
                                      <b>(MC13783-only)</b>.                 */
    MIC_GAIN_MINUS_6DB,          /*!< Select -6dB microphone amplifier gain
                                      <b>(MC13783-only)</b>.                 */
    MIC_GAIN_MINUS_5DB,          /*!< Select -5dB microphone amplifier gain
                                      <b>(MC13783-only)</b>.                 */
    MIC_GAIN_MINUS_4DB,          /*!< Select -4dB microphone amplifier gain
                                      <b>(MC13783-only)</b>.                 */
    MIC_GAIN_MINUS_3DB,          /*!< Select -3dB microphone amplifier gain
                                      <b>(MC13783-only)</b>.                 */
    MIC_GAIN_MINUS_2DB,          /*!< Select -2dB microphone amplifier gain
                                      <b>(MC13783-only)</b>.                 */
    MIC_GAIN_MINUS_1DB,          /*!< Select -1dB microphone amplifier gain
                                      <b>(MC13783-only)</b>.                 */
    MIC_GAIN_0DB,                /*!< Select 0dB microphone amplifier gain.  */
    MIC_GAIN_PLUS_1DB,           /*!< Select 1dB microphone amplifier gain.  */
    MIC_GAIN_PLUS_2DB,           /*!< Select 2dB microphone amplifier gain.  */
    MIC_GAIN_PLUS_3DB,           /*!< Select 3dB microphone amplifier gain.  */
    MIC_GAIN_PLUS_4DB,           /*!< Select 4dB microphone amplifier gain.  */
    MIC_GAIN_PLUS_5DB,           /*!< Select 5dB microphone amplifier gain.  */
    MIC_GAIN_PLUS_6DB,           /*!< Select 6dB microphone amplifier gain.  */
    MIC_GAIN_PLUS_7DB,           /*!< Select 7dB microphone amplifier gain.  */
    MIC_GAIN_PLUS_8DB,           /*!< Select 8dB microphone amplifier gain.  */
    MIC_GAIN_PLUS_9DB,           /*!< Select 9dB microphone amplifier gain.  */
    MIC_GAIN_PLUS_10DB,          /*!< Select 10dB microphone amplifier gain. */
    MIC_GAIN_PLUS_11DB,          /*!< Select 11dB microphone amplifier gain. */
    MIC_GAIN_PLUS_12DB,          /*!< Select 12dB microphone amplifier gain. */
    MIC_GAIN_PLUS_13DB,          /*!< Select 13dB microphone amplifier gain. */
    MIC_GAIN_PLUS_14DB,          /*!< Select 14dB microphone amplifier gain. */
    MIC_GAIN_PLUS_15DB,          /*!< Select 15dB microphone amplifier gain. */
    MIC_GAIN_PLUS_16DB,          /*!< Select 16dB microphone amplifier gain. */
    MIC_GAIN_PLUS_17DB,          /*!< Select 17dB microphone amplifier gain. */
    MIC_GAIN_PLUS_18DB,          /*!< Select 18dB microphone amplifier gain. */
    MIC_GAIN_PLUS_19DB,          /*!< Select 19dB microphone amplifier gain. */
    MIC_GAIN_PLUS_20DB,          /*!< Select 20dB microphone amplifier gain. */
    MIC_GAIN_PLUS_21DB,          /*!< Select 21dB microphone amplifier gain. */
    MIC_GAIN_PLUS_22DB,          /*!< Select 22dB microphone amplifier gain. */
    MIC_GAIN_PLUS_23DB,          /*!< Select 23dB microphone amplifier gain. */
    MIC_GAIN_PLUS_24DB,          /*!< Select 24dB microphone amplifier gain
                                      <b>(SC55112)</b>.                      */
    MIC_GAIN_PLUS_25DB,          /*!< Select 25dB microphone amplifier gain
                                      <b>(SC55112)</b>.                      */
    MIC_GAIN_PLUS_26DB,          /*!< Select 26dB microphone amplifier gain
                                      <b>(SC55112)</b>.                      */
    MIC_GAIN_PLUS_27DB,          /*!< Select 27dB microphone amplifier gain
                                      <b>(SC55112)</b>.                      */
    MIC_GAIN_PLUS_28DB,          /*!< Select 28dB microphone amplifier gain
                                      <b>(SC55112)</b>.                      */
    MIC_GAIN_PLUS_29DB,          /*!< Select 29dB microphone amplifier gain
                                      <b>(SC55112)</b>.                      */
    MIC_GAIN_PLUS_30DB,          /*!< Select 30dB microphone amplifier gain
                                      <b>(SC55112)</b>.                      */
    MIC_GAIN_PLUS_31DB           /*!< Select 31dB microphone amplifier gain
                                      <b>(SC55112)</b>.                      */
} PMIC_AUDIO_MIC_GAIN;

/*@}*/

/*!
 * @name Audio Output Section Typedefs and Enumerations
 * Typedefs and enumerations that are used for selecting and setting up
 * one or more or audio output ports for playback.
 */
/*@{*/

/*!
 * @enum PMIC_AUDIO_OUTPUT_PORT
 * @brief Select the audio output port.
 *
 * This enumeration lists all of the available audio output ports. One or
 * more may be selected as desired to handle the output audio stream from
 * either the Voice CODEC or the Stereo DAC.
 */
typedef enum
{
    MONO_SPEAKER          = 1,   /*!< Select mono output speaker.            */
    MONO_LOUDSPEAKER      = 2,   /*!< Select mono loudspeaker
                                      <b>(MC13783-only)</b>.                 */
    MONO_ALERT            = 4,   /*!< Select mono alert output
                                      <b>(SC55112)</b>.                      */
    MONO_EXTOUT           = 8,   /*!< Select mono external output
                                      <b>(SC55112)</b>.                      */
    MONO_CDCOUT           = 16,  /*!< Select dedicated Voice CODEC output
                                      <b>(MC13783-only)</b>.                 */
    STEREO_LEFT_LOW_POWER = 32,  /*!< Select stereo left channel low power
                                      output <b>(MC13783-only)</b>.          */
    STEREO_HEADSET_LEFT   = 64,  /*!< Select stereo headset left channel.    */
    STEREO_HEADSET_RIGHT  = 128, /*!< Select stereo headset right channel.   */
    STEREO_OUT_LEFT       = 256, /*!< Select stereo external left channel
                                      output <b>(MC13783-only)</b>.          */
    STEREO_OUT_RIGHT      = 512  /*!< Select stereo external right channel
                                      output <b>(MC13783-only)</b>.          */
} PMIC_AUDIO_OUTPUT_PORT;

/*!
 * @enum PMIC_AUDIO_OUTPUT_CONFIG
 * @brief Enable/disable the audio output section options.
 *
 * This enumeration is used to enable/disable any of the audio output section
 * options.
 */
typedef enum
{
    MONO_SPEAKER_INVERT_OUT_ONLY    = 1, /*!< Enable/disable the non-inverted
                                              mono speaker output
                                              <b>(SC55112)</b>.               */
    MONO_LOUDSPEAKER_COMMON_BIAS    = 2, /*!< Enable/disable the loudspeaker
                                              output amplifier common bias
                                              <b>(MC13783-only)</b>.          */
    HEADSET_DETECT_ENABLE           = 4, /*!< Enable/disable headset
                                              insertion/removal detection
                                              <b>(MC13783-only)</b>.          */
    STEREO_HEADSET_AMP_AUTO_DISABLE = 8  /*!< Enable/disable automatic
                                              disabling of the stereo headset
                                              output amplifiers following
                                              headset insertion/removal.      */
} PMIC_AUDIO_OUTPUT_CONFIG;

/*!
 * @enum PMIC_AUDIO_STEREO_IN_GAIN
 * @brief Select the amplifier gain for the external stereo inputs.
 *
 * This enumeration is used to select the amplifier gain level to be used for
 * the external stereo inputs.
 */
typedef enum
{
    STEREO_IN_GAIN_0DB,         /*!< Select 0dB external stereo signal
                                     input gain.                        */
    STEREO_IN_GAIN_PLUS_18DB    /*!< Select 18dB external stereo signal
                                     input gain <b>(MC13783-only)</b>.  */
} PMIC_AUDIO_STEREO_IN_GAIN;

/*!
 * @enum PMIC_AUDIO_OUTPUT_PGA_GAIN
 * @brief Select the output PGA amplifier gain level.
 *
 * This enumeration is used to select the output PGA amplifier gain level.
 */
typedef enum
{
    OUTPGA_GAIN_MINUS_33DB,     /*!< Select -33dB output PGA gain
                                     <b>(MC13783-only)</b>.        */
    OUTPGA_GAIN_MINUS_30DB,     /*!< Select -30dB output PGA gain
                                     <b>(MC13783-only)</b>.        */
    OUTPGA_GAIN_MINUS_27DB,     /*!< Select -27dB output PGA gain
                                     <b>(MC13783-only)</b>.        */
    OUTPGA_GAIN_MINUS_24DB,     /*!< Select -24dB output PGA gain. */
    OUTPGA_GAIN_MINUS_21DB,     /*!< Select -21dB output PGA gain. */
    OUTPGA_GAIN_MINUS_18DB,     /*!< Select -18dB output PGA gain. */
    OUTPGA_GAIN_MINUS_15DB,     /*!< Select -15dB output PGA gain. */
    OUTPGA_GAIN_MINUS_12DB,     /*!< Select -12dB output PGA gain. */
    OUTPGA_GAIN_MINUS_9DB,      /*!< Select -9dB output PGA gain.  */
    OUTPGA_GAIN_MINUS_6DB,      /*!< Select -6dB output PGA gain.  */
    OUTPGA_GAIN_MINUS_3DB,      /*!< Select -3dB output PGA gain.  */
    OUTPGA_GAIN_0DB,            /*!< Select 0dB output PGA gain.   */
    OUTPGA_GAIN_PLUS_3DB,       /*!< Select 3dB output PGA gain.   */
    OUTPGA_GAIN_PLUS_6DB,       /*!< Select 6dB output PGA gain.   */
    OUTPGA_GAIN_PLUS_9DB,       /*!< Select 9dB output PGA gain.
                                     <b>(SC55112)</b>.             */
    OUTPGA_GAIN_PLUS_12DB,      /*!< Select 12dB output PGA gain
                                     <b>(SC55112)</b>.             */
    OUTPGA_GAIN_PLUS_15DB,      /*!< Select 15dB output PGA gain
                                     <b>(SC55112)</b>.             */
    OUTPGA_GAIN_PLUS_18DB,      /*!< Select 18dB output PGA gain
                                     <b>(SC55112)</b>.             */
    OUTPGA_GAIN_PLUS_21DB       /*!< Select 21dB output PGA gain
                                     <b>(SC55112)</b>.             */
} PMIC_AUDIO_OUTPUT_PGA_GAIN;

/*!
 * @enum PMIC_AUDIO_OUTPUT_BALANCE_GAIN
 * @brief Select the left/right channel balance gain level.
 *
 * This enumeration is used to select the balance gain level that is to be
 * separately applied to the left and right audio channels.
 */
typedef enum
{
    BAL_GAIN_MINUS_21DB,        /*!< Select -21dB channel balance
                                     gain <b>(MC13783-only)</b>.      */
    BAL_GAIN_MINUS_18DB,        /*!< Select -18dB channel balance
                                     gain <b>(MC13783-only)</b>.      */
    BAL_GAIN_MINUS_15DB,        /*!< Select -15dB channel balance
                                     gain <b>(MC13783-only)</b>.      */
    BAL_GAIN_MINUS_12DB,        /*!< Select -12dB channel balance
                                     gain <b>(MC13783-only)</b>.      */
    BAL_GAIN_MINUS_9DB,         /*!< Select -9dB channel balance
                                     gain <b>(MC13783-only)</b>.      */
    BAL_GAIN_MINUS_6DB,         /*!< Select -6dB channel balance
                                     gain <b>(MC13783-only)</b>.      */
    BAL_GAIN_MINUS_3DB,         /*!< Select -3dB channel balance

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -