Struct esp32c2_hal::pac::i2c0::fifo_conf::W
pub struct W(_);
Expand description
Register FIFO_CONF
writer
Implementations
impl W
impl W
pub fn rxfifo_wm_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, FIFO_CONF_SPEC, u8, u8, Unsafe, 4, 0>
pub fn rxfifo_wm_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, FIFO_CONF_SPEC, u8, u8, Unsafe, 4, 0>
Bits 0:3 - The water mark threshold of rx FIFO in nonfifo access mode. When reg_reg_fifo_prt_en is 1 and rx FIFO counter is bigger than reg_rxfifo_wm_thrhd[3:0], reg_rxfifo_wm_int_raw bit will be valid.
pub fn txfifo_wm_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, FIFO_CONF_SPEC, u8, u8, Unsafe, 4, 5>
pub fn txfifo_wm_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, FIFO_CONF_SPEC, u8, u8, Unsafe, 4, 5>
Bits 5:8 - The water mark threshold of tx FIFO in nonfifo access mode. When reg_reg_fifo_prt_en is 1 and tx FIFO counter is smaller than reg_txfifo_wm_thrhd[3:0], reg_txfifo_wm_int_raw bit will be valid.
pub fn nonfifo_en(
&mut self
) -> BitWriterRaw<'_, u32, FIFO_CONF_SPEC, bool, BitM, 10>
pub fn nonfifo_en(
&mut self
) -> BitWriterRaw<'_, u32, FIFO_CONF_SPEC, bool, BitM, 10>
Bit 10 - Set this bit to enable APB nonfifo access.
pub fn rx_fifo_rst(
&mut self
) -> BitWriterRaw<'_, u32, FIFO_CONF_SPEC, bool, BitM, 12>
pub fn rx_fifo_rst(
&mut self
) -> BitWriterRaw<'_, u32, FIFO_CONF_SPEC, bool, BitM, 12>
Bit 12 - Set this bit to reset rx-fifo.
pub fn tx_fifo_rst(
&mut self
) -> BitWriterRaw<'_, u32, FIFO_CONF_SPEC, bool, BitM, 13>
pub fn tx_fifo_rst(
&mut self
) -> BitWriterRaw<'_, u32, FIFO_CONF_SPEC, bool, BitM, 13>
Bit 13 - Set this bit to reset tx-fifo.
pub fn fifo_prt_en(
&mut self
) -> BitWriterRaw<'_, u32, FIFO_CONF_SPEC, bool, BitM, 14>
pub fn fifo_prt_en(
&mut self
) -> BitWriterRaw<'_, u32, FIFO_CONF_SPEC, bool, BitM, 14>
Bit 14 - The control enable bit of FIFO pointer in non-fifo access mode. This bit controls the valid bits and the interrupts of tx/rx_fifo overflow, underflow, full and empty.
Methods from Deref<Target = W<FIFO_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.