Struct stm32wlxx_hal::pac::i2c1::timeoutr::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register TIMEOUTR
writer
Implementations§
§impl W
impl W
pub fn timeouta(
&mut self
) -> FieldWriterRaw<'_, u32, TIMEOUTR_SPEC, u16, u16, Safe, 12, 0>
pub fn timeouta( &mut self ) -> FieldWriterRaw<'_, u32, TIMEOUTR_SPEC, u16, u16, Safe, 12, 0>
Bits 0:11 - Bus timeout A
pub fn tidle(
&mut self
) -> BitWriterRaw<'_, u32, TIMEOUTR_SPEC, TIDLE_A, BitM, 12>
pub fn tidle( &mut self ) -> BitWriterRaw<'_, u32, TIMEOUTR_SPEC, TIDLE_A, BitM, 12>
Bit 12 - Idle clock timeout detection
pub fn timouten(
&mut self
) -> BitWriterRaw<'_, u32, TIMEOUTR_SPEC, TIMOUTEN_A, BitM, 15>
pub fn timouten( &mut self ) -> BitWriterRaw<'_, u32, TIMEOUTR_SPEC, TIMOUTEN_A, BitM, 15>
Bit 15 - Clock timeout enable
pub fn timeoutb(
&mut self
) -> FieldWriterRaw<'_, u32, TIMEOUTR_SPEC, u16, u16, Safe, 12, 16>
pub fn timeoutb( &mut self ) -> FieldWriterRaw<'_, u32, TIMEOUTR_SPEC, u16, u16, Safe, 12, 16>
Bits 16:27 - Bus timeout B
pub fn texten(
&mut self
) -> BitWriterRaw<'_, u32, TIMEOUTR_SPEC, TEXTEN_A, BitM, 31>
pub fn texten( &mut self ) -> BitWriterRaw<'_, u32, TIMEOUTR_SPEC, TEXTEN_A, BitM, 31>
Bit 31 - Extended clock timeout enable
Methods from Deref<Target = W<TIMEOUTR_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§
§impl From<W<TIMEOUTR_SPEC>> for W
impl From<W<TIMEOUTR_SPEC>> for W
§fn from(writer: W<TIMEOUTR_SPEC>) -> W
fn from(writer: W<TIMEOUTR_SPEC>) -> W
Converts to this type from the input type.
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