Peripherals

Struct Peripherals 

pub struct Peripherals {
Show 53 fields pub cse_pram: CsePram, pub aips: Aips, pub mscm: Mscm, pub dma: Dma, pub erm: Erm, pub eim: Eim, pub ftfc: Ftfc, pub dmamux: Dmamux, pub can0: Can0, pub can1: Can1, pub ftm0: Ftm0, pub ftm1: Ftm1, pub ftm2: Ftm2, pub ftm3: Ftm3, pub adc0: Adc0, pub adc1: Adc1, pub lpspi0: Lpspi0, pub lpspi1: Lpspi1, pub pdb0: Pdb0, pub pdb1: Pdb1, pub crc: Crc, pub lpit0: Lpit0, pub rtc: Rtc, pub lptmr0: Lptmr0, pub sim: Sim, pub porta: Porta, pub portb: Portb, pub portc: Portc, pub portd: Portd, pub porte: Porte, pub wdog: Wdog, pub flexio: Flexio, pub ewm: Ewm, pub trgmux: Trgmux, pub scg: Scg, pub pcc: Pcc, pub lpi2c0: Lpi2c0, pub lpuart0: Lpuart0, pub lpuart1: Lpuart1, pub cmp0: Cmp0, pub pmc: Pmc, pub smc: Smc, pub rcm: Rcm, pub pta: Pta, pub ptb: Ptb, pub ptc: Ptc, pub ptd: Ptd, pub pte: Pte, pub s32_scb: S32Scb, pub s32_sys_tick: S32SysTick, pub s32_nvic: S32Nvic, pub mcm: Mcm, pub lmem: Lmem,
}
Expand description

All the peripherals.

Fields§

§cse_pram: CsePram

CSE_PRAM

§aips: Aips

AIPS

§mscm: Mscm

MSCM

§dma: Dma

DMA

§erm: Erm

ERM

§eim: Eim

EIM

§ftfc: Ftfc

FTFC

§dmamux: Dmamux

DMAMUX

§can0: Can0

CAN0

§can1: Can1

CAN1

§ftm0: Ftm0

FTM0

§ftm1: Ftm1

FTM1

§ftm2: Ftm2

FTM2

§ftm3: Ftm3

FTM3

§adc0: Adc0

ADC0

§adc1: Adc1

ADC1

§lpspi0: Lpspi0

LPSPI0

§lpspi1: Lpspi1

LPSPI1

§pdb0: Pdb0

PDB0

§pdb1: Pdb1

PDB1

§crc: Crc

CRC

§lpit0: Lpit0

LPIT0

§rtc: Rtc

RTC

§lptmr0: Lptmr0

LPTMR0

§sim: Sim

SIM

§porta: Porta

PORTA

§portb: Portb

PORTB

§portc: Portc

PORTC

§portd: Portd

PORTD

§porte: Porte

PORTE

§wdog: Wdog

WDOG

§flexio: Flexio

FLEXIO

§ewm: Ewm

EWM

§trgmux: Trgmux

TRGMUX

§scg: Scg

SCG

§pcc: Pcc

PCC

§lpi2c0: Lpi2c0

LPI2C0

§lpuart0: Lpuart0

LPUART0

§lpuart1: Lpuart1

LPUART1

§cmp0: Cmp0

CMP0

§pmc: Pmc

PMC

§smc: Smc

SMC

§rcm: Rcm

RCM

§pta: Pta

PTA

§ptb: Ptb

PTB

§ptc: Ptc

PTC

§ptd: Ptd

PTD

§pte: Pte

PTE

§s32_scb: S32Scb

S32_SCB

§s32_sys_tick: S32SysTick

S32_SysTick

§s32_nvic: S32Nvic

S32_NVIC

§mcm: Mcm

MCM

§lmem: Lmem

LMEM

Implementations§

§

impl Peripherals

pub fn take() -> Option<Self>

Available on crate feature critical-section only.

Returns all the peripherals once.

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.