Struct stm32wlxx_hal::pac::rtc::dr::W
pub struct W(/* private fields */);
Available on crate feature
stm32wl5x_cm4
only.Expand description
Register DR
writer
Implementations§
§impl W
impl W
pub fn yt(&mut self) -> FieldWriterRaw<'_, u32, DR_SPEC, u8, u8, Safe, 4, 20>
pub fn yt(&mut self) -> FieldWriterRaw<'_, u32, DR_SPEC, u8, u8, Safe, 4, 20>
Bits 20:23 - Year tens in BCD format
pub fn yu(&mut self) -> FieldWriterRaw<'_, u32, DR_SPEC, u8, u8, Safe, 4, 16>
pub fn yu(&mut self) -> FieldWriterRaw<'_, u32, DR_SPEC, u8, u8, Safe, 4, 16>
Bits 16:19 - Year units in BCD format
pub fn wdu(&mut self) -> FieldWriterRaw<'_, u32, DR_SPEC, u8, u8, Unsafe, 3, 13>
pub fn wdu(&mut self) -> FieldWriterRaw<'_, u32, DR_SPEC, u8, u8, Unsafe, 3, 13>
Bits 13:15 - Week day units
pub fn mt(&mut self) -> BitWriterRaw<'_, u32, DR_SPEC, bool, BitM, 12>
pub fn mt(&mut self) -> BitWriterRaw<'_, u32, DR_SPEC, bool, BitM, 12>
Bit 12 - Month tens in BCD format
pub fn mu(&mut self) -> FieldWriterRaw<'_, u32, DR_SPEC, u8, u8, Safe, 4, 8>
pub fn mu(&mut self) -> FieldWriterRaw<'_, u32, DR_SPEC, u8, u8, Safe, 4, 8>
Bits 8:11 - Month units in BCD format
pub fn dt(&mut self) -> FieldWriterRaw<'_, u32, DR_SPEC, u8, u8, Safe, 2, 4>
pub fn dt(&mut self) -> FieldWriterRaw<'_, u32, DR_SPEC, u8, u8, Safe, 2, 4>
Bits 4:5 - Date tens in BCD format
Methods from Deref<Target = W<DR_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