Struct esp32c2_hal::pac::uart0::flow_conf::W
pub struct W(_);
Expand description
Register FLOW_CONF
writer
Implementations§
§impl W
impl W
pub fn sw_flow_con_en(
&mut self
) -> BitWriterRaw<'_, u32, FLOW_CONF_SPEC, bool, BitM, 0>
pub fn sw_flow_con_en(
&mut self
) -> BitWriterRaw<'_, u32, FLOW_CONF_SPEC, bool, BitM, 0>
Bit 0 - Set this bit to enable software flow control. It is used with register sw_xon or sw_xoff.
pub fn xonoff_del(
&mut self
) -> BitWriterRaw<'_, u32, FLOW_CONF_SPEC, bool, BitM, 1>
pub fn xonoff_del(
&mut self
) -> BitWriterRaw<'_, u32, FLOW_CONF_SPEC, bool, BitM, 1>
Bit 1 - Set this bit to remove flow control char from the received data.
pub fn force_xon(
&mut self
) -> BitWriterRaw<'_, u32, FLOW_CONF_SPEC, bool, BitM, 2>
pub fn force_xon(
&mut self
) -> BitWriterRaw<'_, u32, FLOW_CONF_SPEC, bool, BitM, 2>
Bit 2 - Set this bit to enable the transmitter to go on sending data.
pub fn force_xoff(
&mut self
) -> BitWriterRaw<'_, u32, FLOW_CONF_SPEC, bool, BitM, 3>
pub fn force_xoff(
&mut self
) -> BitWriterRaw<'_, u32, FLOW_CONF_SPEC, bool, BitM, 3>
Bit 3 - Set this bit to stop the transmitter from sending data.
pub fn send_xon(
&mut self
) -> BitWriterRaw<'_, u32, FLOW_CONF_SPEC, bool, BitM, 4>
pub fn send_xon(
&mut self
) -> BitWriterRaw<'_, u32, FLOW_CONF_SPEC, bool, BitM, 4>
Bit 4 - Set this bit to send Xon char. It is cleared by hardware automatically.
pub fn send_xoff(
&mut self
) -> BitWriterRaw<'_, u32, FLOW_CONF_SPEC, bool, BitM, 5>
pub fn send_xoff(
&mut self
) -> BitWriterRaw<'_, u32, FLOW_CONF_SPEC, bool, BitM, 5>
Bit 5 - Set this bit to send Xoff char. It is cleared by hardware automatically.
Methods from Deref<Target = W<FLOW_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<FLOW_CONF_SPEC>> for W
impl From<W<FLOW_CONF_SPEC>> for W
§fn from(writer: W<FLOW_CONF_SPEC>) -> W
fn from(writer: W<FLOW_CONF_SPEC>) -> W
Converts to this type from the input type.