pub struct W(_);
Expand description
Register SWFC_CONF
writer
Implementations§
§impl W
impl W
pub fn xon_threshold(
&mut self
) -> FieldWriterRaw<'_, u32, SWFC_CONF_SPEC, u8, u8, Unsafe, 8, 0>
pub fn xon_threshold(
&mut self
) -> FieldWriterRaw<'_, u32, SWFC_CONF_SPEC, u8, u8, Unsafe, 8, 0>
Bits 0:7 - when the data amount in receiver’s fifo is more than this register value. it will send a xoff char with uart_sw_flow_con_en set to 1.
pub fn xoff_threshold(
&mut self
) -> FieldWriterRaw<'_, u32, SWFC_CONF_SPEC, u8, u8, Unsafe, 8, 8>
pub fn xoff_threshold(
&mut self
) -> FieldWriterRaw<'_, u32, SWFC_CONF_SPEC, u8, u8, Unsafe, 8, 8>
Bits 8:15 - When the data amount in receiver’s fifo is less than this register value. it will send a xon char with uart_sw_flow_con_en set to 1.
pub fn xon_char(
&mut self
) -> FieldWriterRaw<'_, u32, SWFC_CONF_SPEC, u8, u8, Unsafe, 8, 16>
pub fn xon_char(
&mut self
) -> FieldWriterRaw<'_, u32, SWFC_CONF_SPEC, u8, u8, Unsafe, 8, 16>
Bits 16:23 - This register stores the xon flow control char.
pub fn xoff_char(
&mut self
) -> FieldWriterRaw<'_, u32, SWFC_CONF_SPEC, u8, u8, Unsafe, 8, 24>
pub fn xoff_char(
&mut self
) -> FieldWriterRaw<'_, u32, SWFC_CONF_SPEC, u8, u8, Unsafe, 8, 24>
Bits 24:31 - This register stores the xoff flow control char.
Methods from Deref<Target = W<SWFC_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<SWFC_CONF_SPEC>> for W
impl From<W<SWFC_CONF_SPEC>> for W
§fn from(writer: W<SWFC_CONF_SPEC>) -> W
fn from(writer: W<SWFC_CONF_SPEC>) -> W
Converts to this type from the input type.