Enumerated Types

group group_pdm_pcm_enums

Enums

enum cy_en_pdm_pcm_word_len_t

cy_en_pdm_pcm_word_len_t: PDM Word Length.

Values:

enumerator CY_PDM_PCM_WLEN_16_BIT

Word length: 16 bit.

enumerator CY_PDM_PCM_WLEN_18_BIT

Word length: 18 bit.

enumerator CY_PDM_PCM_WLEN_20_BIT

Word length: 20 bit.

enumerator CY_PDM_PCM_WLEN_24_BIT

Word length: 24 bit.

enum cy_en_pdm_pcm_clk_div_t

cy_en_pdm_pcm_clk_div_t: PDM Clock Divider.

Values:

enumerator CY_PDM_PCM_CLK_DIV_BYPASS

Clock 1/1.

enumerator CY_PDM_PCM_CLK_DIV_1_2

Clock 1/2 (no 50% duty cycle).

enumerator CY_PDM_PCM_CLK_DIV_1_3

Clock 1/3 (no 50% duty cycle).

enumerator CY_PDM_PCM_CLK_DIV_1_4

Clock 1/4 (no 50% duty cycle).

enum cy_en_pdm_pcm_out_t

cy_en_pdm_pcm_out_t: PDM Output Mode.

Values:

enumerator CY_PDM_PCM_OUT_CHAN_LEFT

Channel mono left.

enumerator CY_PDM_PCM_OUT_CHAN_RIGHT

Channel mono right.

enumerator CY_PDM_PCM_OUT_STEREO

Channel stereo.

enum cy_en_pdm_pcm_chan_select_t

cy_en_pdm_pcm_chan_select_t: PDM Channel selector.

Values:

enumerator CY_PDM_PCM_CHAN_LEFT

Channel left.

enumerator CY_PDM_PCM_CHAN_RIGHT

Channel right.

enum cy_en_pdm_pcm_gain_t

cy_en_pdm_pcm_gain_t: PDM Gain.

Values:

enumerator CY_PDM_PCM_ATTN_12_DB

-12 dB (attenuation).

enumerator CY_PDM_PCM_ATTN_10_5_DB

-10.5 dB (attenuation).

enumerator CY_PDM_PCM_ATTN_9_DB

-9 dB (attenuation).

enumerator CY_PDM_PCM_ATTN_7_5_DB

-7.5 dB (attenuation).

enumerator CY_PDM_PCM_ATTN_6_DB

-6 dB (attenuation).

enumerator CY_PDM_PCM_ATTN_4_5_DB

-4.5 dB (attenuation).

enumerator CY_PDM_PCM_ATTN_3_DB

-3 dB (attenuation).

enumerator CY_PDM_PCM_ATTN_1_5_DB

-1.5 dB (attenuation).

enumerator CY_PDM_PCM_BYPASS

0 dB (bypass).

enumerator CY_PDM_PCM_GAIN_1_5_DB

+1.5 dB (amplification).

enumerator CY_PDM_PCM_GAIN_3_DB

+3 dB (amplification).

enumerator CY_PDM_PCM_GAIN_4_5_DB

+4.5 dB (amplification).

enumerator CY_PDM_PCM_GAIN_6_DB

+6 dB (amplification).

enumerator CY_PDM_PCM_GAIN_7_5_DB

+7.5 dB (amplification).

enumerator CY_PDM_PCM_GAIN_9_DB

+9 dB (amplification).

enumerator CY_PDM_PCM_GAIN_10_5_DB

+10.5 dB (amplification).

enum cy_en_pdm_pcm_s_cycles_t

cy_en_pdm_pcm_s_cycles_t: The time step for gain change during PGA or soft mute operation in number of 1/a sampling rate.

Values:

enumerator CY_PDM_PCM_SOFT_MUTE_CYCLES_64

64 steps.

enumerator CY_PDM_PCM_SOFT_MUTE_CYCLES_96

96 steps.

enumerator CY_PDM_PCM_SOFT_MUTE_CYCLES_128

128 steps.

enumerator CY_PDM_PCM_SOFT_MUTE_CYCLES_160

160 steps.

enumerator CY_PDM_PCM_SOFT_MUTE_CYCLES_192

192 steps.

enumerator CY_PDM_PCM_SOFT_MUTE_CYCLES_256

256 steps.

enumerator CY_PDM_PCM_SOFT_MUTE_CYCLES_384

384 steps.

enumerator CY_PDM_PCM_SOFT_MUTE_CYCLES_512

512 steps.

enum cy_en_pdm_pcm_status_t

cy_en_pdm_pcm_status_t: The PDM-PCM status codes.

Values:

enumerator CY_PDM_PCM_SUCCESS

Success status code.

enumerator CY_PDM_PCM_BAD_PARAM

Bad parameter status code.