Struct imxrt_hal::Peripherals[][src]

pub struct Peripherals {
    pub adc: Unclocked,
    pub iomuxc: Pads,
    pub ccm: CCM,
    pub pit: UnclockedPIT,
    pub dcdc: DCDC,
    pub pwm1: Unclocked<U1>,
    pub pwm2: Unclocked<U2>,
    pub pwm3: Unclocked<U3>,
    pub pwm4: Unclocked<U4>,
    pub i2c: Unclocked,
    pub uart: Unclocked,
    pub spi: Unclocked,
    pub gpt1: Unclocked,
    pub gpt2: Unclocked,
    pub dma: Unclocked,
    pub srtc: Unclocked,
    pub trng: Unclocked,
}

Fields

adc: Unclockediomuxc: Padsccm: CCMpit: UnclockedPITdcdc: DCDCpwm1: Unclocked<U1>pwm2: Unclocked<U2>pwm3: Unclocked<U3>pwm4: Unclocked<U4>i2c: Unclockeduart: Unclockedspi: Unclockedgpt1: Unclockedgpt2: Unclockeddma: Unclockedsrtc: Unclockedtrng: Unclocked

Implementations

impl Peripherals[src]

pub unsafe fn steal() -> Self[src]

Steal all of the HAL’s peripherals

Safety

The peripherals may be mutably aliased elsewhere in the code. Consider using take() to safely acquire the HAL’s peripherals.

pub fn take() -> Option<Self>[src]

Take the HAL’s peripherals

If the peripherals were already taken, take() returns None. Consider calling take() near the start of your program.

Auto Trait Implementations

impl Send for Peripherals

impl !Sync for Peripherals

impl Unpin for Peripherals

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.