PSOC E8XXGP Device Support Library

| PSOC E8XXGP Device Support Library

Enumerations
Enumerated Types
PDL API Reference » TDM/I2S (Time Division Multiplexing/Inter-IC Sound)

## General Description

## Enumerations
enum | cy_en_tdm_ws_t { CY_TDM_SIZE_8 = 0U , CY_TDM_SIZE_10 = 1U , CY_TDM_SIZE_12 = 2U , CY_TDM_SIZE_14 = 3U , CY_TDM_SIZE_16 = 4U , CY_TDM_SIZE_18 = 5U , CY_TDM_SIZE_20 = 6U , CY_TDM_SIZE_24 = 7U , CY_TDM_SIZE_32 = 8U }
| cy_en_tdm_ws_t More...
enum | cy_en_tdm_format_t { CY_TDM_LEFT_DELAYED = 0 , CY_TDM_LEFT = 1 , CY_TDM_RIGHT_DELAYED = 2 , CY_TDM_RIGHT = 3 }
| cy_en_tdm_format_t More...
enum | cy_en_tdm_device_cfg_t { CY_TDM_DEVICE_SLAVE = 0U , CY_TDM_DEVICE_MASTER = 1U }
| cy_en_tdm_device_cfg_t More...
enum | cy_en_tdm_word_extend_cfg_t { CY_ZERO_EXTEND = 0U , CY_SIGN_EXTEND = 1U }
| cy_en_tdm_word_extend_cfg_t More...
enum | cy_en_tdm_clock_sel_t { CY_TDM_SEL_SRSS_CLK0 = 0U , CY_TDM_SEL_SRSS_CLK1 = 1U , CY_TDM_SEL_SRSS_CLK2 = 2U , CY_TDM_SEL_SRSS_CLK3 = 3U , CY_TDM_SEL_MCLK_IN = 4U }
| cy_en_tdm_clock_sel_t More...
enum | cy_en_tdm_sckpolarity_t { CY_TDM_CLK = 0U , CY_TDM_CLK_INVERTED = 1U }
| cy_en_tdm_sckpolarity_t More...
enum | cy_en_tdm_fsyncpolarity_t { CY_TDM_SIGN = 0U , CY_TDM_SIGN_INVERTED = 1U }
| cy_en_tdm_fsyncpolarity_t More...
enum | cy_en_tdm_fsyncformat_t { CY_TDM_BIT_PERIOD = 0U , CY_TDM_CH_PERIOD = 1U }
| cy_en_tdm_fsyncformat_t More...
enum | cy_en_tdm_status_t { CY_TDM_SUCCESS = 0x00UL , CY_TDM_BAD_PARAM = CY_TDM_ID | CY_PDL_STATUS_ERROR | 0x01UL }
| TDM status definitions. More...
enum | cy_en_tdm_source_status_t { CY_TDM_OK = 0x00UL , CY_TDM_BAD = 0x01UL }
| cy_en_tdm_source_status_t More...

## Enumeration Type Documentation

## ◆ cy_en_tdm_ws_t

enum cy_en_tdm_ws_t

cy_en_tdm_ws_t

Enumerator
CY_TDM_SIZE_8 | PCM word size:8bit.
CY_TDM_SIZE_10 | PCM word size:10bit.
CY_TDM_SIZE_12 | PCM word size:12bit.
CY_TDM_SIZE_14 | PCM word size:14bit.
CY_TDM_SIZE_16 | PCM word size:16bit.
CY_TDM_SIZE_18 | PCM word size:18bit.
CY_TDM_SIZE_20 | PCM word size:20bit.
CY_TDM_SIZE_24 | PCM word size:24bit.
CY_TDM_SIZE_32 | PCM word size:32bit.

## ◆ cy_en_tdm_format_t

enum cy_en_tdm_format_t

cy_en_tdm_format_t

Enumerator
CY_TDM_LEFT_DELAYED | Format is left aligned and delayed.
CY_TDM_LEFT | Format is left aligned.
CY_TDM_RIGHT_DELAYED | Format is right aligned and delayed.
CY_TDM_RIGHT | Format is right aligned.

## ◆ cy_en_tdm_device_cfg_t

enum cy_en_tdm_device_cfg_t

cy_en_tdm_device_cfg_t

Enumerator
CY_TDM_DEVICE_SLAVE | Device is configured as slave.
CY_TDM_DEVICE_MASTER | Device is configured as master.

## ◆ cy_en_tdm_word_extend_cfg_t

enum cy_en_tdm_word_extend_cfg_t

cy_en_tdm_word_extend_cfg_t

Enumerator
CY_ZERO_EXTEND | Zero extended.
CY_SIGN_EXTEND | sign extended.

## ◆ cy_en_tdm_clock_sel_t

enum cy_en_tdm_clock_sel_t

cy_en_tdm_clock_sel_t

Enumerator
CY_TDM_SEL_SRSS_CLK0 | Interface clock is selected as clk_if_srss[0].
CY_TDM_SEL_SRSS_CLK1 | Interface clock is selected as clk_if_srss[1].
CY_TDM_SEL_SRSS_CLK2 | Interface clock is selected as clk_if_srss[2].
CY_TDM_SEL_SRSS_CLK3 | Interface clock is selected as clk_if_srss[3].
CY_TDM_SEL_MCLK_IN | Interface clock is selected as tdm_tx/rx_mclk_in.

## ◆ cy_en_tdm_sckpolarity_t

enum cy_en_tdm_sckpolarity_t

cy_en_tdm_sckpolarity_t

Enumerator
CY_TDM_CLK | TDM Clock is used as is.
CY_TDM_CLK_INVERTED | TDM Clock is inverted.

## ◆ cy_en_tdm_fsyncpolarity_t

enum cy_en_tdm_fsyncpolarity_t

cy_en_tdm_fsyncpolarity_t

Enumerator
CY_TDM_SIGN | TDM Sign is used as is.
CY_TDM_SIGN_INVERTED | TDM Sign is inverted.

## ◆ cy_en_tdm_fsyncformat_t

enum cy_en_tdm_fsyncformat_t

cy_en_tdm_fsyncformat_t

Enumerator
CY_TDM_BIT_PERIOD | TDM Channel Synchronization is duration of a bit period.
CY_TDM_CH_PERIOD | TDM Channel Synchronization is duration of a channel period.

## ◆ cy_en_tdm_status_t

enum cy_en_tdm_status_t

TDM status definitions.

Enumerator
CY_TDM_SUCCESS | Successful.
CY_TDM_BAD_PARAM | One or more invalid parameters.

## ◆ cy_en_tdm_source_status_t

enum cy_en_tdm_source_status_t

cy_en_tdm_source_status_t

Enumerator
CY_TDM_OK | Successful.
CY_TDM_BAD | Not Good