Struct esp32c3::i2s0::rx_conf::W

source ·
pub struct W(_);
Expand description

Register RX_CONF writer

Implementations§

source§

impl W

source

pub fn rx_reset(&mut self) -> RX_RESET_W<'_, 0>

Bit 0 - Set this bit to reset receiver

source

pub fn rx_fifo_reset(&mut self) -> RX_FIFO_RESET_W<'_, 1>

Bit 1 - Set this bit to reset Rx AFIFO

source

pub fn rx_start(&mut self) -> RX_START_W<'_, 2>

Bit 2 - Set this bit to start receiving data

source

pub fn rx_slave_mod(&mut self) -> RX_SLAVE_MOD_W<'_, 3>

Bit 3 - Set this bit to enable slave receiver mode

source

pub fn rx_mono(&mut self) -> RX_MONO_W<'_, 5>

Bit 5 - Set this bit to enable receiver in mono mode

source

pub fn rx_big_endian(&mut self) -> RX_BIG_ENDIAN_W<'_, 7>

Bit 7 - I2S Rx byte endian, 1: low addr value to high addr. 0: low addr with low addr value.

source

pub fn rx_update(&mut self) -> RX_UPDATE_W<'_, 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.

source

pub fn rx_mono_fst_vld(&mut self) -> RX_MONO_FST_VLD_W<'_, 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.

source

pub fn rx_pcm_conf(&mut self) -> RX_PCM_CONF_W<'_, 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. &

source

pub fn rx_pcm_bypass(&mut self) -> RX_PCM_BYPASS_W<'_, 12>

Bit 12 - Set this bit to bypass Compress/Decompress module for received data.

source

pub fn rx_stop_mode(&mut self) -> RX_STOP_MODE_W<'_, 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.

source

pub fn rx_left_align(&mut self) -> RX_LEFT_ALIGN_W<'_, 15>

Bit 15 - 1: I2S RX left alignment mode. 0: I2S RX right alignment mode.

source

pub fn rx_24_fill_en(&mut self) -> RX_24_FILL_EN_W<'_, 16>

Bit 16 - 1: store 24 channel bits to 32 bits. 0:store 24 channel bits to 24 bits.

source

pub fn rx_ws_idle_pol(&mut self) -> RX_WS_IDLE_POL_W<'_, 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.

source

pub fn rx_bit_order(&mut self) -> RX_BIT_ORDER_W<'_, 18>

Bit 18 - I2S Rx bit endian. 1:small endian, the LSB is received first. 0:big endian, the MSB is received first.

source

pub fn rx_tdm_en(&mut self) -> RX_TDM_EN_W<'_, 19>

Bit 19 - 1: Enable I2S TDM Rx mode . 0: Disable.

source

pub fn rx_pdm_en(&mut self) -> RX_PDM_EN_W<'_, 20>

Bit 20 - 1: Enable I2S PDM Rx mode . 0: Disable.

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Methods from Deref<Target = W<RX_CONF_SPEC>>§

source

pub unsafe fn bits(&mut self, bits: REG::Ux) -> &mut Self

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<RX_CONF_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl From<W<RX_CONF_SPEC>> for W

source§

fn from(writer: W<RX_CONF_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.