Struct esp32_hal::pac::i2s0::sample_rate_conf::W
pub struct W(_);
Expand description
Register SAMPLE_RATE_CONF
writer
Implementations§
§impl W
impl W
pub fn tx_bck_div_num(
&mut self
) -> FieldWriterRaw<'_, u32, SAMPLE_RATE_CONF_SPEC, u8, u8, Unsafe, 6, 0>
pub fn tx_bck_div_num(
&mut self
) -> FieldWriterRaw<'_, u32, SAMPLE_RATE_CONF_SPEC, u8, u8, Unsafe, 6, 0>
Bits 0:5
pub fn rx_bck_div_num(
&mut self
) -> FieldWriterRaw<'_, u32, SAMPLE_RATE_CONF_SPEC, u8, u8, Unsafe, 6, 6>
pub fn rx_bck_div_num(
&mut self
) -> FieldWriterRaw<'_, u32, SAMPLE_RATE_CONF_SPEC, u8, u8, Unsafe, 6, 6>
Bits 6:11
pub fn tx_bits_mod(
&mut self
) -> FieldWriterRaw<'_, u32, SAMPLE_RATE_CONF_SPEC, u8, u8, Unsafe, 6, 12>
pub fn tx_bits_mod(
&mut self
) -> FieldWriterRaw<'_, u32, SAMPLE_RATE_CONF_SPEC, u8, u8, Unsafe, 6, 12>
Bits 12:17
pub fn rx_bits_mod(
&mut self
) -> FieldWriterRaw<'_, u32, SAMPLE_RATE_CONF_SPEC, u8, u8, Unsafe, 6, 18>
pub fn rx_bits_mod(
&mut self
) -> FieldWriterRaw<'_, u32, SAMPLE_RATE_CONF_SPEC, u8, u8, Unsafe, 6, 18>
Bits 18:23
Methods from Deref<Target = W<SAMPLE_RATE_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.
Trait Implementations§
§impl From<W<SAMPLE_RATE_CONF_SPEC>> for W
impl From<W<SAMPLE_RATE_CONF_SPEC>> for W
§fn from(writer: W<SAMPLE_RATE_CONF_SPEC>) -> W
fn from(writer: W<SAMPLE_RATE_CONF_SPEC>) -> W
Converts to this type from the input type.