Rtc

Struct Rtc 

Source
pub struct Rtc { /* private fields */ }
Expand description

Часы реального времени

Implementations§

Source§

impl Rtc

Source

pub const PTR: *const RegisterBlock = {0x60400 as *const rtc::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

Source

pub fn rrtc_time(&self) -> &RrtcTime

0x00 - Регистр установки времени. Используется BCD-кодировка

Source

pub fn rrtc_date(&self) -> &RrtcDate

0x04 - Регистр установки даты. Используется BCD-кодировка

Source

pub fn rrtc_talrm(&self) -> &RrtcTalrm

0x08 - регистр хранит время, при совпадении которого со значением регистра RRTC_TIME, будет сгенерировано соответствующее прерывание

Source

pub fn rrtc_dalrm(&self) -> &RrtcDalrm

0x0c - регистр хранит время, при совпадении которого со значением регистра RRTC_TIME, будет сгенерировано соответствующее прерывание.

Source

pub fn rrtc_ctrl(&self) -> &RrtcCtrl

0x10 - регистр управления модулем

Source

pub fn rrtc_reg0(&self) -> &RrtcReg0

0x20 - Регистры общего назначения REG0

Source

pub fn rrtc_reg1(&self) -> &RrtcReg1

0x24 - Регистры общего назначения REG1

Source

pub fn rrtc_reg2(&self) -> &RrtcReg2

0x28 - Регистры общего назначения REG2

Source

pub fn rrtc_reg3(&self) -> &RrtcReg3

0x2c - Регистры общего назначения REG3

Source

pub fn rrtc_reg4(&self) -> &RrtcReg4

0x30 - Регистры общего назначения REG4

Source

pub fn rrtc_reg5(&self) -> &RrtcReg5

0x34 - Регистры общего назначения REG5

Source

pub fn rrtc_reg6(&self) -> &RrtcReg6

0x38 - Регистры общего назначения REG6

Source

pub fn rrtc_reg7(&self) -> &RrtcReg7

0x3c - Регистры общего назначения REG7

Source

pub fn rrtc_reg8(&self) -> &RrtcReg8

0x40 - Регистры общего назначения REG8

Source

pub fn rrtc_reg9(&self) -> &RrtcReg9

0x44 - Регистры общего назначения REG9

Source

pub fn rrtc_reg10(&self) -> &RrtcReg10

0x48 - Регистры общего назначения REG10

Source

pub fn rrtc_reg11(&self) -> &RrtcReg11

0x4c - Регистры общего назначения REG11

Source

pub fn rrtc_reg12(&self) -> &RrtcReg12

0x50 - Регистры общего назначения REG12

Source

pub fn rrtc_reg13(&self) -> &RrtcReg13

0x54 - Регистры общего назначения REG13

Source

pub fn rrtc_reg14(&self) -> &RrtcReg14

0x58 - Регистры общего назначения REG14

Source

pub fn rrtc_reg15(&self) -> &RrtcReg15

0x5c - Регистры общего назначения REG14

Trait Implementations§

Source§

impl Debug for Rtc

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for Rtc

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for Rtc

Auto Trait Implementations§

§

impl Freeze for Rtc

§

impl RefUnwindSafe for Rtc

§

impl !Sync for Rtc

§

impl Unpin for Rtc

§

impl UnwindSafe for Rtc

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.