Struct stm32wlxx_hal::pac::i2c1::cr2::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register CR2
writer
Implementations§
§impl W
impl W
pub 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
pub 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)
pub 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
pub 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
pub 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)
pub 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)
pub 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
pub 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)
pub 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)
pub 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>>§
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.
Trait Implementations§
Auto Trait Implementations§
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