Type Alias esp32c3::i2s0::tx_pcm2pdm_conf::W

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

Register TX_PCM2PDM_CONF writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn tx_pdm_hp_bypass( &mut self ) -> TX_PDM_HP_BYPASS_W<'_, TX_PCM2PDM_CONF_SPEC>

Bit 0 - I2S TX PDM bypass hp filter or not. The option has been removed.

source

pub fn tx_pdm_sinc_osr2( &mut self ) -> TX_PDM_SINC_OSR2_W<'_, TX_PCM2PDM_CONF_SPEC>

Bits 1:4 - I2S TX PDM OSR2 value

source

pub fn tx_pdm_prescale(&mut self) -> TX_PDM_PRESCALE_W<'_, TX_PCM2PDM_CONF_SPEC>

Bits 5:12 - I2S TX PDM prescale for sigmadelta

source

pub fn tx_pdm_hp_in_shift( &mut self ) -> TX_PDM_HP_IN_SHIFT_W<'_, TX_PCM2PDM_CONF_SPEC>

Bits 13:14 - I2S TX PDM sigmadelta scale shift number: 0:/2 , 1:x1 , 2:x2 , 3: x4

source

pub fn tx_pdm_lp_in_shift( &mut self ) -> TX_PDM_LP_IN_SHIFT_W<'_, TX_PCM2PDM_CONF_SPEC>

Bits 15:16 - I2S TX PDM sigmadelta scale shift number: 0:/2 , 1:x1 , 2:x2 , 3: x4

source

pub fn tx_pdm_sinc_in_shift( &mut self ) -> TX_PDM_SINC_IN_SHIFT_W<'_, TX_PCM2PDM_CONF_SPEC>

Bits 17:18 - I2S TX PDM sigmadelta scale shift number: 0:/2 , 1:x1 , 2:x2 , 3: x4

source

pub fn tx_pdm_sigmadelta_in_shift( &mut self ) -> TX_PDM_SIGMADELTA_IN_SHIFT_W<'_, TX_PCM2PDM_CONF_SPEC>

Bits 19:20 - I2S TX PDM sigmadelta scale shift number: 0:/2 , 1:x1 , 2:x2 , 3: x4

source

pub fn tx_pdm_sigmadelta_dither2( &mut self ) -> TX_PDM_SIGMADELTA_DITHER2_W<'_, TX_PCM2PDM_CONF_SPEC>

Bit 21 - I2S TX PDM sigmadelta dither2 value

source

pub fn tx_pdm_sigmadelta_dither( &mut self ) -> TX_PDM_SIGMADELTA_DITHER_W<'_, TX_PCM2PDM_CONF_SPEC>

Bit 22 - I2S TX PDM sigmadelta dither value

source

pub fn tx_pdm_dac_2out_en( &mut self ) -> TX_PDM_DAC_2OUT_EN_W<'_, TX_PCM2PDM_CONF_SPEC>

Bit 23 - I2S TX PDM dac mode enable

source

pub fn tx_pdm_dac_mode_en( &mut self ) -> TX_PDM_DAC_MODE_EN_W<'_, TX_PCM2PDM_CONF_SPEC>

Bit 24 - I2S TX PDM dac 2channel enable

source

pub fn pcm2pdm_conv_en(&mut self) -> PCM2PDM_CONV_EN_W<'_, TX_PCM2PDM_CONF_SPEC>

Bit 25 - I2S TX PDM Converter enable