pub struct W(_);
Expand description
Register CFG1
writer
Implementations
sourceimpl W
impl W
sourcepub fn mbr(
&mut self
) -> FieldWriterRaw<'_, u32, CFG1_SPEC, u8, MBR_A, Safe, 3, 28>
pub fn mbr(
&mut self
) -> FieldWriterRaw<'_, u32, CFG1_SPEC, u8, MBR_A, Safe, 3, 28>
Bits 28:30 - Master baud rate
sourcepub fn crcen(&mut self) -> BitWriterRaw<'_, u32, CFG1_SPEC, CRCEN_A, BitM, 22>
pub fn crcen(&mut self) -> BitWriterRaw<'_, u32, CFG1_SPEC, CRCEN_A, BitM, 22>
Bit 22 - Hardware CRC computation enable
sourcepub fn crcsize(
&mut self
) -> FieldWriterRaw<'_, u32, CFG1_SPEC, u8, u8, Safe, 5, 16>
pub fn crcsize(
&mut self
) -> FieldWriterRaw<'_, u32, CFG1_SPEC, u8, u8, Safe, 5, 16>
Bits 16:20 - Length of CRC frame to be transacted and compared
sourcepub fn txdmaen(
&mut self
) -> BitWriterRaw<'_, u32, CFG1_SPEC, TXDMAEN_A, BitM, 15>
pub fn txdmaen(
&mut self
) -> BitWriterRaw<'_, u32, CFG1_SPEC, TXDMAEN_A, BitM, 15>
Bit 15 - Tx DMA stream enable
sourcepub fn rxdmaen(
&mut self
) -> BitWriterRaw<'_, u32, CFG1_SPEC, RXDMAEN_A, BitM, 14>
pub fn rxdmaen(
&mut self
) -> BitWriterRaw<'_, u32, CFG1_SPEC, RXDMAEN_A, BitM, 14>
Bit 14 - Rx DMA stream enable
sourcepub fn udrdet(
&mut self
) -> FieldWriterRaw<'_, u32, CFG1_SPEC, u8, UDRDET_A, Unsafe, 2, 11>
pub fn udrdet(
&mut self
) -> FieldWriterRaw<'_, u32, CFG1_SPEC, u8, UDRDET_A, Unsafe, 2, 11>
Bits 11:12 - Detection of underrun condition at slave transmitter
sourcepub fn udrcfg(
&mut self
) -> FieldWriterRaw<'_, u32, CFG1_SPEC, u8, UDRCFG_A, Unsafe, 2, 9>
pub fn udrcfg(
&mut self
) -> FieldWriterRaw<'_, u32, CFG1_SPEC, u8, UDRCFG_A, Unsafe, 2, 9>
Bits 9:10 - Behavior of slave transmitter at underrun condition
sourcepub fn fthlv(
&mut self
) -> FieldWriterRaw<'_, u32, CFG1_SPEC, u8, FTHLV_A, Safe, 4, 5>
pub fn fthlv(
&mut self
) -> FieldWriterRaw<'_, u32, CFG1_SPEC, u8, FTHLV_A, Safe, 4, 5>
Bits 5:8 - threshold level
Methods from Deref<Target = W<CFG1_SPEC>>
sourcepub 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.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more