RegisterBlock

Struct RegisterBlock 

#[repr(C)]
pub struct RegisterBlock {
Show 22 fields _reserved0: [u8; 4], chipctl: Chipctl, _reserved1: [u8; 4], ftmopt0: Ftmopt0, lpoclks: Lpoclks, _reserved3: [u8; 4], adcopt: Adcopt, ftmopt1: Ftmopt1, misctrl0: Misctrl0, sdid: Sdid, _reserved7: [u8; 24], platcgc: Platcgc, _reserved8: [u8; 8], fcfg1: Fcfg1, _reserved9: [u8; 4], uidh: Uidh, uidmh: Uidmh, uidml: Uidml, uidl: Uidl, _reserved13: [u8; 4], clkdiv4: Clkdiv4, misctrl1: Misctrl1,
}
Expand description

Register block

Fields§

§_reserved0: [u8; 4]§chipctl: Chipctl§_reserved1: [u8; 4]§ftmopt0: Ftmopt0§lpoclks: Lpoclks§_reserved3: [u8; 4]§adcopt: Adcopt§ftmopt1: Ftmopt1§misctrl0: Misctrl0§sdid: Sdid§_reserved7: [u8; 24]§platcgc: Platcgc§_reserved8: [u8; 8]§fcfg1: Fcfg1§_reserved9: [u8; 4]§uidh: Uidh§uidmh: Uidmh§uidml: Uidml§uidl: Uidl§_reserved13: [u8; 4]§clkdiv4: Clkdiv4§misctrl1: Misctrl1

Implementations§

§

impl RegisterBlock

pub const fn chipctl(&self) -> &Chipctl

0x04 - Chip Control register

pub const fn ftmopt0(&self) -> &Ftmopt0

0x0c - FTM Option Register 0

pub const fn lpoclks(&self) -> &Lpoclks

0x10 - LPO Clock Select Register

pub const fn adcopt(&self) -> &Adcopt

0x18 - ADC Options Register

pub const fn ftmopt1(&self) -> &Ftmopt1

0x1c - FTM Option Register 1

pub const fn misctrl0(&self) -> &Misctrl0

0x20 - Miscellaneous control register 0

pub const fn sdid(&self) -> &Sdid

0x24 - System Device Identification Register

pub const fn platcgc(&self) -> &Platcgc

0x40 - Platform Clock Gating Control Register

pub const fn fcfg1(&self) -> &Fcfg1

0x4c - Flash Configuration Register 1

pub const fn uidh(&self) -> &Uidh

0x54 - Unique Identification Register High

pub const fn uidmh(&self) -> &Uidmh

0x58 - Unique Identification Register Mid-High

pub const fn uidml(&self) -> &Uidml

0x5c - Unique Identification Register Mid Low

pub const fn uidl(&self) -> &Uidl

0x60 - Unique Identification Register Low

pub const fn clkdiv4(&self) -> &Clkdiv4

0x68 - System Clock Divider Register 4

pub const fn misctrl1(&self) -> &Misctrl1

0x6c - Miscellaneous Control register 1

Auto Trait Implementations§

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<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.