pub struct W(/* private fields */);Expand description
Register CR2 writer
Implementations§
Source§impl W
impl W
Sourcepub fn pecbyte(
&mut self,
) -> BitWriterRaw<'_, u32, CR2_SPEC, PECBYTE_A, BitM, 26>
pub fn pecbyte( &mut self, ) -> BitWriterRaw<'_, u32, CR2_SPEC, PECBYTE_A, BitM, 26>
Bit 26 - Packet error checking byte
Sourcepub fn autoend(
&mut self,
) -> BitWriterRaw<'_, u32, CR2_SPEC, AUTOEND_A, BitM, 25>
pub fn autoend( &mut self, ) -> BitWriterRaw<'_, u32, CR2_SPEC, AUTOEND_A, BitM, 25>
Bit 25 - Automatic end mode (master mode)
Sourcepub fn reload(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, RELOAD_A, BitM, 24>
pub fn reload(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, RELOAD_A, BitM, 24>
Bit 24 - NBYTES reload mode
Sourcepub fn nbytes(
&mut self,
) -> FieldWriterRaw<'_, u32, CR2_SPEC, u8, u8, Safe, 8, 16>
pub fn nbytes( &mut self, ) -> FieldWriterRaw<'_, u32, CR2_SPEC, u8, u8, Safe, 8, 16>
Bits 16:23 - Number of bytes
Sourcepub fn nack(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, NACK_A, BitM, 15>
pub fn nack(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, NACK_A, BitM, 15>
Bit 15 - NACK generation (slave mode)
Sourcepub fn stop(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, STOP_A, BitM, 14>
pub fn stop(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, STOP_A, BitM, 14>
Bit 14 - Stop generation (master mode)
Sourcepub fn start(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, START_A, BitM, 13>
pub fn start(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, START_A, BitM, 13>
Bit 13 - Start generation
Sourcepub fn head10r(
&mut self,
) -> BitWriterRaw<'_, u32, CR2_SPEC, HEAD10R_A, BitM, 12>
pub fn head10r( &mut self, ) -> BitWriterRaw<'_, u32, CR2_SPEC, HEAD10R_A, BitM, 12>
Bit 12 - 10-bit address header only read direction (master receiver mode)
Sourcepub fn add10(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, ADD10_A, BitM, 11>
pub fn add10(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, ADD10_A, BitM, 11>
Bit 11 - 10-bit addressing mode (master mode)
Sourcepub fn rd_wrn(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, RD_WRN_A, BitM, 10>
pub fn rd_wrn(&mut self) -> BitWriterRaw<'_, u32, CR2_SPEC, RD_WRN_A, BitM, 10>
Bit 10 - Transfer direction (master mode)
Methods from Deref<Target = W<CR2_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§
impl Freeze for W
impl RefUnwindSafe for W
impl Send for W
impl Sync for W
impl Unpin for W
impl UnwindSafe for W
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more