Struct esp32s3_hal::pac::i2s1::rx_conf::W
pub struct W(_);
Expand description
Register RX_CONF
writer
Implementations§
§impl W
impl W
pub fn rx_reset(&mut self) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 0>
pub fn rx_reset(&mut self) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 0>
Bit 0 - Set this bit to reset receiver
pub fn rx_fifo_reset(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 1>
pub fn rx_fifo_reset(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 1>
Bit 1 - Set this bit to reset Rx AFIFO
pub fn rx_start(&mut self) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 2>
pub fn rx_start(&mut self) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 2>
Bit 2 - Set this bit to start receiving data
pub fn rx_slave_mod(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 3>
pub fn rx_slave_mod(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 3>
Bit 3 - Set this bit to enable slave receiver mode
pub fn rx_mono(&mut self) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 5>
pub fn rx_mono(&mut self) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 5>
Bit 5 - Set this bit to enable receiver in mono mode
pub fn rx_big_endian(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 7>
pub fn rx_big_endian(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 7>
Bit 7 - I2S Rx byte endian, 1: low addr value to high addr. 0: low addr with low addr value.
pub fn rx_update(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 8>
pub fn rx_update(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 8>
Bit 8 - Set 1 to update I2S RX registers from APB clock domain to I2S RX clock domain. This bit will be cleared by hardware after update register done.
pub fn rx_mono_fst_vld(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 9>
pub fn rx_mono_fst_vld(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 9>
Bit 9 - 1: The first channel data value is valid in I2S RX mono mode. 0: The second channel data value is valid in I2S RX mono mode.
pub fn rx_pcm_conf(
&mut self
) -> FieldWriterRaw<'_, u32, RX_CONF_SPEC, u8, u8, Unsafe, 2, 10>
pub fn rx_pcm_conf(
&mut self
) -> FieldWriterRaw<'_, u32, RX_CONF_SPEC, u8, u8, Unsafe, 2, 10>
Bits 10:11 - I2S RX compress/decompress configuration bit. & 0 (atol): A-Law decompress, 1 (ltoa) : A-Law compress, 2 (utol) : u-Law decompress, 3 (ltou) : u-Law compress. &
pub fn rx_pcm_bypass(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 12>
pub fn rx_pcm_bypass(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 12>
Bit 12 - Set this bit to bypass Compress/Decompress module for received data.
pub fn rx_stop_mode(
&mut self
) -> FieldWriterRaw<'_, u32, RX_CONF_SPEC, u8, u8, Unsafe, 2, 13>
pub fn rx_stop_mode(
&mut self
) -> FieldWriterRaw<'_, u32, RX_CONF_SPEC, u8, u8, Unsafe, 2, 13>
Bits 13:14 - 0 : I2S Rx only stop when reg_rx_start is cleared. 1: Stop when reg_rx_start is 0 or in_suc_eof is 1. 2: Stop I2S RX when reg_rx_start is 0 or RX FIFO is full.
pub fn rx_left_align(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 15>
pub fn rx_left_align(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 15>
Bit 15 - 1: I2S RX left alignment mode. 0: I2S RX right alignment mode.
pub fn rx_24_fill_en(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 16>
pub fn rx_24_fill_en(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 16>
Bit 16 - 1: store 24 channel bits to 32 bits. 0:store 24 channel bits to 24 bits.
pub fn rx_ws_idle_pol(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 17>
pub fn rx_ws_idle_pol(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 17>
Bit 17 - 0: WS should be 0 when receiving left channel data, and WS is 1in right channel. 1: WS should be 1 when receiving left channel data, and WS is 0in right channel.
pub fn rx_bit_order(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 18>
pub fn rx_bit_order(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 18>
Bit 18 - I2S Rx bit endian. 1:small endian, the LSB is received first. 0:big endian, the MSB is received first.
pub fn rx_tdm_en(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 19>
pub fn rx_tdm_en(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 19>
Bit 19 - 1: Enable I2S TDM Rx mode . 0: Disable.
pub fn rx_pdm_en(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 20>
pub fn rx_pdm_en(
&mut self
) -> BitWriterRaw<'_, u32, RX_CONF_SPEC, bool, BitM, 20>
Bit 20 - 1: Enable I2S PDM Rx mode . 0: Disable.
Methods from Deref<Target = W<RX_CONF_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.