Type Alias esp32c6::pcr::i2s_tx_clkm_div_conf::W

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

Register I2S_TX_CLKM_DIV_CONF writer

Aliased Type§

struct W { /* private fields */ }

Implementations§

source§

impl W

source

pub fn i2s_tx_clkm_div_z( &mut self ) -> I2S_TX_CLKM_DIV_Z_W<'_, I2S_TX_CLKM_DIV_CONF_SPEC>

Bits 0:8 - For b <= a/2, the value of I2S_TX_CLKM_DIV_Z is b. For b > a/2, the value of I2S_TX_CLKM_DIV_Z is (a-b).

source

pub fn i2s_tx_clkm_div_y( &mut self ) -> I2S_TX_CLKM_DIV_Y_W<'_, I2S_TX_CLKM_DIV_CONF_SPEC>

Bits 9:17 - For b <= a/2, the value of I2S_TX_CLKM_DIV_Y is (a%b) . For b > a/2, the value of I2S_TX_CLKM_DIV_Y is (a%(a-b)).

source

pub fn i2s_tx_clkm_div_x( &mut self ) -> I2S_TX_CLKM_DIV_X_W<'_, I2S_TX_CLKM_DIV_CONF_SPEC>

Bits 18:26 - For b <= a/2, the value of I2S_TX_CLKM_DIV_X is (a/b) - 1. For b > a/2, the value of I2S_TX_CLKM_DIV_X is (a/(a-b)) - 1.

source

pub fn i2s_tx_clkm_div_yn1( &mut self ) -> I2S_TX_CLKM_DIV_YN1_W<'_, I2S_TX_CLKM_DIV_CONF_SPEC>

Bit 27 - For b <= a/2, the value of I2S_TX_CLKM_DIV_YN1 is 0 . For b > a/2, the value of I2S_TX_CLKM_DIV_YN1 is 1.

source

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

Writes raw bits to the register.

Safety

Passing incorrect value can cause undefined behaviour. See reference manual