[−][src]Struct imxrt_hal::Peripherals
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: UnclockedImplementations
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
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,