Struct esp32c2_hal::pac::uart0::mem_conf::W
pub struct W(_);
Expand description
Register MEM_CONF
writer
Implementations§
§impl W
impl W
pub fn rx_size(
&mut self
) -> FieldWriterRaw<'_, u32, MEM_CONF_SPEC, u8, u8, Unsafe, 3, 1>
pub fn rx_size(
&mut self
) -> FieldWriterRaw<'_, u32, MEM_CONF_SPEC, u8, u8, Unsafe, 3, 1>
Bits 1:3 - This register is used to configure the amount of mem allocated for receive-FIFO. The default number is 128 bytes.
pub fn tx_size(
&mut self
) -> FieldWriterRaw<'_, u32, MEM_CONF_SPEC, u8, u8, Unsafe, 3, 4>
pub fn tx_size(
&mut self
) -> FieldWriterRaw<'_, u32, MEM_CONF_SPEC, u8, u8, Unsafe, 3, 4>
Bits 4:6 - This register is used to configure the amount of mem allocated for transmit-FIFO. The default number is 128 bytes.
pub fn rx_flow_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, MEM_CONF_SPEC, u16, u16, Unsafe, 9, 7>
pub fn rx_flow_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, MEM_CONF_SPEC, u16, u16, Unsafe, 9, 7>
Bits 7:15 - This register is used to configure the maximum amount of data that can be received when hardware flow control works.
pub fn rx_tout_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, MEM_CONF_SPEC, u16, u16, Unsafe, 10, 16>
pub fn rx_tout_thrhd(
&mut self
) -> FieldWriterRaw<'_, u32, MEM_CONF_SPEC, u16, u16, Unsafe, 10, 16>
Bits 16:25 - This register is used to configure the threshold time that receiver takes to receive one byte. The rxfifo_tout_int interrupt will be trigger when the receiver takes more time to receive one byte with rx_tout_en set to 1.
pub fn mem_force_pd(
&mut self
) -> BitWriterRaw<'_, u32, MEM_CONF_SPEC, bool, BitM, 26>
pub fn mem_force_pd(
&mut self
) -> BitWriterRaw<'_, u32, MEM_CONF_SPEC, bool, BitM, 26>
Bit 26 - Set this bit to force power down UART memory.
pub fn mem_force_pu(
&mut self
) -> BitWriterRaw<'_, u32, MEM_CONF_SPEC, bool, BitM, 27>
pub fn mem_force_pu(
&mut self
) -> BitWriterRaw<'_, u32, MEM_CONF_SPEC, bool, BitM, 27>
Bit 27 - Set this bit to force power up UART memory.
Methods from Deref<Target = W<MEM_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.