Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 68 fields pub SYSCOUNTER_CNTRL: SYSCOUNTER_CNTRL, pub SYSCOUNTER_READ: SYSCOUNTER_READ, pub SYSCOUNTER_READ_SECURE: SYSCOUNTER_READ_SECURE, pub SYSINFO: SYSINFO, pub SYSINFO_SECURE: SYSINFO_SECURE, pub SYSCONTROL: SYSCONTROL, pub SAU: SAU, pub TIMER0: TIMER0, pub TIMER1: TIMER1, pub TIMER2: TIMER2, pub TIMER3: TIMER3, pub SLOWCLK: SLOWCLK, pub TIMER0_SECURE: TIMER0_SECURE, pub TIMER1_SECURE: TIMER1_SECURE, pub TIMER2_SECURE: TIMER2_SECURE, pub TIMER3_SECURE: TIMER3_SECURE, pub SLOWCLK_SECURE: SLOWCLK_SECURE, pub GPIO0: GPIO0, pub GPIO1: GPIO1, pub GPIO2: GPIO2, pub GPIO3: GPIO3, pub GPIO0_SECURE: GPIO0_SECURE, pub GPIO1_SECURE: GPIO1_SECURE, pub GPIO2_SECURE: GPIO2_SECURE, pub GPIO3_SECURE: GPIO3_SECURE, pub DMA0: DMA0, pub DMA1: DMA1, pub DMA2: DMA2, pub DMA3: DMA3, pub DMA0_SECURE: DMA0_SECURE, pub DMA1_SECURE: DMA1_SECURE, pub DMA2_SECURE: DMA2_SECURE, pub DMA3_SECURE: DMA3_SECURE, pub UART0: UART0, pub UART1: UART1, pub UART2: UART2, pub UART3: UART3, pub UART4: UART4, pub UART5: UART5, pub UART0_SECURE: UART0_SECURE, pub UART1_SECURE: UART1_SECURE, pub UART2_SECURE: UART2_SECURE, pub UART3_SECURE: UART3_SECURE, pub UART4_SECURE: UART4_SECURE, pub UART5_SECURE: UART5_SECURE, pub I2C0: I2C0, pub I2C1: I2C1, pub I2C0_SECURE: I2C0_SECURE, pub I2C1_SECURE: I2C1_SECURE, pub SSP0: SSP0, pub SSP1: SSP1, pub SSP2: SSP2, pub SSP0_SECURE: SSP0_SECURE, pub SSP1_SECURE: SSP1_SECURE, pub SSP2_SECURE: SSP2_SECURE, pub WATCHDOG: WATCHDOG, pub WATCHDOG_SECURE: WATCHDOG_SECURE, pub SLOWCLKWATCHDOG: SLOWCLKWATCHDOG, pub FPGAIO: FPGAIO, pub FPGAIO_SECURE: FPGAIO_SECURE, pub SCC: SCC, pub SCC_SECURE: SCC_SECURE, pub SACRB: SACRB, pub NSACRB: NSACRB, pub ISRAM0MPC: ISRAM0MPC, pub ISRAM1MPC: ISRAM1MPC, pub ETHERNET: ETHERNET, pub AUDIO_I2S: AUDIO_I2S,
}
Expand description

All the peripherals.

Fields§

§SYSCOUNTER_CNTRL: SYSCOUNTER_CNTRL

SYSCOUNTER_CNTRL

§SYSCOUNTER_READ: SYSCOUNTER_READ

SYSCOUNTER_READ

§SYSCOUNTER_READ_SECURE: SYSCOUNTER_READ_SECURE

SYSCOUNTER_READ_SECURE

§SYSINFO: SYSINFO

SYSINFO

§SYSINFO_SECURE: SYSINFO_SECURE

SYSINFO_SECURE

§SYSCONTROL: SYSCONTROL

SYSCONTROL

§SAU: SAU

SAU

§TIMER0: TIMER0

TIMER0

§TIMER1: TIMER1

TIMER1

§TIMER2: TIMER2

TIMER2

§TIMER3: TIMER3

TIMER3

§SLOWCLK: SLOWCLK

SLOWCLK

§TIMER0_SECURE: TIMER0_SECURE

TIMER0_SECURE

§TIMER1_SECURE: TIMER1_SECURE

TIMER1_SECURE

§TIMER2_SECURE: TIMER2_SECURE

TIMER2_SECURE

§TIMER3_SECURE: TIMER3_SECURE

TIMER3_SECURE

§SLOWCLK_SECURE: SLOWCLK_SECURE

SLOWCLK_SECURE

§GPIO0: GPIO0

GPIO0

§GPIO1: GPIO1

GPIO1

§GPIO2: GPIO2

GPIO2

§GPIO3: GPIO3

GPIO3

§GPIO0_SECURE: GPIO0_SECURE

GPIO0_SECURE

§GPIO1_SECURE: GPIO1_SECURE

GPIO1_SECURE

§GPIO2_SECURE: GPIO2_SECURE

GPIO2_SECURE

§GPIO3_SECURE: GPIO3_SECURE

GPIO3_SECURE

§DMA0: DMA0

DMA0

§DMA1: DMA1

DMA1

§DMA2: DMA2

DMA2

§DMA3: DMA3

DMA3

§DMA0_SECURE: DMA0_SECURE

DMA0_SECURE

§DMA1_SECURE: DMA1_SECURE

DMA1_SECURE

§DMA2_SECURE: DMA2_SECURE

DMA2_SECURE

§DMA3_SECURE: DMA3_SECURE

DMA3_SECURE

§UART0: UART0

UART0

§UART1: UART1

UART1

§UART2: UART2

UART2

§UART3: UART3

UART3

§UART4: UART4

UART4

§UART5: UART5

UART5

§UART0_SECURE: UART0_SECURE

UART0_SECURE

§UART1_SECURE: UART1_SECURE

UART1_SECURE

§UART2_SECURE: UART2_SECURE

UART2_SECURE

§UART3_SECURE: UART3_SECURE

UART3_SECURE

§UART4_SECURE: UART4_SECURE

UART4_SECURE

§UART5_SECURE: UART5_SECURE

UART5_SECURE

§I2C0: I2C0

I2C0

§I2C1: I2C1

I2C1

§I2C0_SECURE: I2C0_SECURE

I2C0_SECURE

§I2C1_SECURE: I2C1_SECURE

I2C1_SECURE

§SSP0: SSP0

SSP0

§SSP1: SSP1

SSP1

§SSP2: SSP2

SSP2

§SSP0_SECURE: SSP0_SECURE

SSP0_SECURE

§SSP1_SECURE: SSP1_SECURE

SSP1_SECURE

§SSP2_SECURE: SSP2_SECURE

SSP2_SECURE

§WATCHDOG: WATCHDOG

WATCHDOG

§WATCHDOG_SECURE: WATCHDOG_SECURE

WATCHDOG_SECURE

§SLOWCLKWATCHDOG: SLOWCLKWATCHDOG

SLOWCLKWATCHDOG

§FPGAIO: FPGAIO

FPGAIO

§FPGAIO_SECURE: FPGAIO_SECURE

FPGAIO_SECURE

§SCC: SCC

SCC

§SCC_SECURE: SCC_SECURE

SCC_SECURE

§SACRB: SACRB

SACRB

§NSACRB: NSACRB

NSACRB

§ISRAM0MPC: ISRAM0MPC

ISRAM0MPC

§ISRAM1MPC: ISRAM1MPC

ISRAM1MPC

§ETHERNET: ETHERNET

ETHERNET

§AUDIO_I2S: AUDIO_I2S

AUDIO_I2S

Implementations§

Source§

impl Peripherals

Source

pub unsafe fn steal() -> Self

Unchecked version of Peripherals::take.

§Safety

Each of the returned peripherals must be used at most once.

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.