Type Alias esp32c3::i2s0::tx_conf1::W

source ·
pub type W = W<TX_CONF1_SPEC>;
Expand description

Register TX_CONF1 writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn tx_tdm_ws_width(&mut self) -> TX_TDM_WS_WIDTH_W<'_, TX_CONF1_SPEC>

Bits 0:6 - The width of tx_ws_out in TDM mode is (I2S_TX_TDM_WS_WIDTH[6:0] +1) * T_bck

source

pub fn tx_bck_div_num(&mut self) -> TX_BCK_DIV_NUM_W<'_, TX_CONF1_SPEC>

Bits 7:12 - Bit clock configuration bits in transmitter mode.

source

pub fn tx_bits_mod(&mut self) -> TX_BITS_MOD_W<'_, TX_CONF1_SPEC>

Bits 13:17 - Set the bits to configure the valid data bit length of I2S transmitter channel. 7: all the valid channel data is in 8-bit-mode. 15: all the valid channel data is in 16-bit-mode. 23: all the valid channel data is in 24-bit-mode. 31:all the valid channel data is in 32-bit-mode.

source

pub fn tx_half_sample_bits( &mut self ) -> TX_HALF_SAMPLE_BITS_W<'_, TX_CONF1_SPEC>

Bits 18:23 - I2S Tx half sample bits -1.

source

pub fn tx_tdm_chan_bits(&mut self) -> TX_TDM_CHAN_BITS_W<'_, TX_CONF1_SPEC>

Bits 24:28 - The Tx bit number for each channel minus 1in TDM mode.

source

pub fn tx_msb_shift(&mut self) -> TX_MSB_SHIFT_W<'_, TX_CONF1_SPEC>

Bit 29 - Set this bit to enable transmitter in Phillips standard mode

source

pub fn tx_bck_no_dly(&mut self) -> TX_BCK_NO_DLY_W<'_, TX_CONF1_SPEC>

Bit 30 - 1: BCK is not delayed to generate pos/neg edge in master mode. 0: BCK is delayed to generate pos/neg edge in master mode.