Struct esp32c2_hal::pac::uart0::conf1::W
pub struct W(_);
Expand description
Register CONF1
writer
Implementations§
§impl W
impl W
pub fn rxfifo_full_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, CONF1_SPEC, u16, u16, Unsafe, 9, 0>
pub fn rxfifo_full_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, CONF1_SPEC, u16, u16, Unsafe, 9, 0>
Bits 0:8 - It will produce rxfifo_full_int interrupt when receiver receives more data than this register value.
pub fn txfifo_empty_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, CONF1_SPEC, u16, u16, Unsafe, 9, 9>
pub fn txfifo_empty_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, CONF1_SPEC, u16, u16, Unsafe, 9, 9>
Bits 9:17 - It will produce txfifo_empty_int interrupt when the data amount in Tx-FIFO is less than this register value.
pub fn dis_rx_dat_ovf(
&mut self
) -> BitWriterRaw<'_, u32, CONF1_SPEC, bool, BitM, 18>
pub fn dis_rx_dat_ovf(
&mut self
) -> BitWriterRaw<'_, u32, CONF1_SPEC, bool, BitM, 18>
Bit 18 - Disable UART Rx data overflow detect.
pub fn rx_tout_flow_dis(
&mut self
) -> BitWriterRaw<'_, u32, CONF1_SPEC, bool, BitM, 19>
pub fn rx_tout_flow_dis(
&mut self
) -> BitWriterRaw<'_, u32, CONF1_SPEC, bool, BitM, 19>
Bit 19 - Set this bit to stop accumulating idle_cnt when hardware flow control works.
pub fn rx_flow_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF1_SPEC, bool, BitM, 20>
pub fn rx_flow_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF1_SPEC, bool, BitM, 20>
Bit 20 - This is the flow enable bit for UART receiver.
pub fn rx_tout_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF1_SPEC, bool, BitM, 21>
pub fn rx_tout_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF1_SPEC, bool, BitM, 21>
Bit 21 - This is the enble bit for uart receiver’s timeout function.
Methods from Deref<Target = W<CONF1_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<CONF1_SPEC>> for W
impl From<W<CONF1_SPEC>> for W
§fn from(writer: W<CONF1_SPEC>) -> W
fn from(writer: W<CONF1_SPEC>) -> W
Converts to this type from the input type.