Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock {
Show 41 fields pub sysmemremap: SYSMEMREMAP, pub presetctrl: PRESETCTRL, pub syspllctrl: SYSPLLCTRL, pub syspllstat: SYSPLLSTAT, pub usbpllctrl: USBPLLCTRL, pub usbpllstat: USBPLLSTAT, pub sysoscctrl: SYSOSCCTRL, pub wdtoscctrl: WDTOSCCTRL, pub sysrststat: SYSRSTSTAT, pub syspllclksel: SYSPLLCLKSEL, pub syspllclkuen: SYSPLLCLKUEN, pub usbpllclksel: USBPLLCLKSEL, pub usbpllclkuen: USBPLLCLKUEN, pub mainclksel: MAINCLKSEL, pub mainclkuen: MAINCLKUEN, pub sysahbclkdiv: SYSAHBCLKDIV, pub sysahbclkctrl: SYSAHBCLKCTRL, pub ssp0clkdiv: SSP0CLKDIV, pub uartclkdiv: UARTCLKDIV, pub ssp1clkdiv: SSP1CLKDIV, pub usbclksel: USBCLKSEL, pub usbclkuen: USBCLKUEN, pub usbclkdiv: USBCLKDIV, pub clkoutsel: CLKOUTSEL, pub clkoutuen: CLKOUTUEN, pub clkoutdiv: CLKOUTDIV, pub pioporcap0: PIOPORCAP0, pub pioporcap1: PIOPORCAP1, pub bodctrl: BODCTRL, pub systckcal: SYSTCKCAL, pub irqlatency: IRQLATENCY, pub nmisrc: NMISRC, pub pintsel: [PINTSEL; 8], pub usbclkctrl: USBCLKCTRL, pub usbclkst: USBCLKST, pub starterp0: STARTERP0, pub starterp1: STARTERP1, pub pdsleepcfg: PDSLEEPCFG, pub pdawakecfg: PDAWAKECFG, pub pdruncfg: PDRUNCFG, pub device_id: DEVICE_ID, /* private fields */
}
Expand description

Register block

Fields§

§sysmemremap: SYSMEMREMAP

0x00 - System memory remap

§presetctrl: PRESETCTRL

0x04 - Peripheral reset control

§syspllctrl: SYSPLLCTRL

0x08 - System PLL control

§syspllstat: SYSPLLSTAT

0x0c - System PLL status

§usbpllctrl: USBPLLCTRL

0x10 - USB PLL control

§usbpllstat: USBPLLSTAT

0x14 - USB PLL status

§sysoscctrl: SYSOSCCTRL

0x20 - System oscillator control

§wdtoscctrl: WDTOSCCTRL

0x24 - Watchdog oscillator control

§sysrststat: SYSRSTSTAT

0x30 - System reset status register

§syspllclksel: SYSPLLCLKSEL

0x40 - System PLL clock source select

§syspllclkuen: SYSPLLCLKUEN

0x44 - System PLL clock source update enable

§usbpllclksel: USBPLLCLKSEL

0x48 - USB PLL clock source select

§usbpllclkuen: USBPLLCLKUEN

0x4c - USB PLL clock source update enable

§mainclksel: MAINCLKSEL

0x70 - Main clock source select

§mainclkuen: MAINCLKUEN

0x74 - Main clock source update enable

§sysahbclkdiv: SYSAHBCLKDIV

0x78 - System clock divider

§sysahbclkctrl: SYSAHBCLKCTRL

0x80 - System clock control

§ssp0clkdiv: SSP0CLKDIV

0x94 - SSP0 clock divider

§uartclkdiv: UARTCLKDIV

0x98 - UART clock divider

§ssp1clkdiv: SSP1CLKDIV

0x9c - SSP1 clock divider

§usbclksel: USBCLKSEL

0xc0 - USB clock source select

§usbclkuen: USBCLKUEN

0xc4 - USB clock source update enable

§usbclkdiv: USBCLKDIV

0xc8 - USB clock source divider

§clkoutsel: CLKOUTSEL

0xe0 - CLKOUT clock source select

§clkoutuen: CLKOUTUEN

0xe4 - CLKOUT clock source update enable

§clkoutdiv: CLKOUTDIV

0xe8 - CLKOUT clock divider

§pioporcap0: PIOPORCAP0

0x100 - POR captured PIO status 0

§pioporcap1: PIOPORCAP1

0x104 - POR captured PIO status 1

§bodctrl: BODCTRL

0x150 - Brown-Out Detect

§systckcal: SYSTCKCAL

0x154 - System tick counter calibration

§irqlatency: IRQLATENCY

0x170 - IQR delay. Allows trade-off between interrupt latency and determinism.

§nmisrc: NMISRC

0x174 - NMI Source Control

§pintsel: [PINTSEL; 8]

0x178 - GPIO Pin Interrupt Select register 0

§usbclkctrl: USBCLKCTRL

0x198 - USB clock control

§usbclkst: USBCLKST

0x19c - USB clock status

§starterp0: STARTERP0

0x204 - Start logic 0 interrupt wake-up enable register 0

§starterp1: STARTERP1

0x214 - Start logic 1 interrupt wake-up enable register 1

§pdsleepcfg: PDSLEEPCFG

0x230 - Power-down states in deep-sleep mode

§pdawakecfg: PDAWAKECFG

0x234 - Power-down states for wake-up from deep-sleep

§pdruncfg: PDRUNCFG

0x238 - Power configuration register

§device_id: DEVICE_ID

0x3f4 - Device ID

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> Same for T

Source§

type Output = T

Should always be Self
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.