pub struct W(_);
Expand description
Register CONF1
writer
Implementations§
§impl W
impl W
pub fn rxfifo_full_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, CONF1_SPEC, u8, u8, Unsafe, 7, 0>
pub fn rxfifo_full_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, CONF1_SPEC, u8, u8, Unsafe, 7, 0>
Bits 0:6 - When receiver receives more data than its threshold value.receiver will produce rxfifo_full_int_raw interrupt.the threshold value is (rx_flow_thrhd_h3 rxfifo_full_thrhd).
pub fn txfifo_empty_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, CONF1_SPEC, u8, u8, Unsafe, 7, 8>
pub fn txfifo_empty_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, CONF1_SPEC, u8, u8, Unsafe, 7, 8>
Bits 8:14 - when the data amount in transmitter fifo is less than its threshold value. it will produce txfifo_empty_int_raw interrupt. the threshold value is (tx_mem_empty_thrhd txfifo_empty_thrhd)
pub fn rx_flow_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, CONF1_SPEC, u8, u8, Unsafe, 7, 16>
pub fn rx_flow_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, CONF1_SPEC, u8, u8, Unsafe, 7, 16>
Bits 16:22 - when receiver receives more data than its threshold value. receiver produce signal to tell the transmitter stop transferring data. the threshold value is (rx_flow_thrhd_h3 rx_flow_thrhd).
pub fn rx_flow_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF1_SPEC, bool, BitM, 23>
pub fn rx_flow_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF1_SPEC, bool, BitM, 23>
Bit 23 - This is the flow enable bit for uart receiver. 1:choose software flow control with configuring sw_rts signal
pub fn rx_tout_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, CONF1_SPEC, u8, u8, Unsafe, 7, 24>
pub fn rx_tout_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, CONF1_SPEC, u8, u8, Unsafe, 7, 24>
Bits 24:30 - This register is used to configure the timeout value for uart receiver receiving a byte.
pub fn rx_tout_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF1_SPEC, bool, BitM, 31>
pub fn rx_tout_en(
&mut self
) -> BitWriterRaw<'_, u32, CONF1_SPEC, bool, BitM, 31>
Bit 31 - 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.