Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 21 fields pub NVIC: Nvic, pub SCB: Scb, pub SYSTICK: SysTick, pub ADC580_BIF_NL01: Adc580BifNl01, pub ANAMISC580_NL01: Anamisc580Nl01, pub BLE580_GR01: Ble580Gr01, pub CHIP_VERSION: ChipVersion, pub CRG580_DCDC_NL01: Crg580DcdcNl01, pub CRG580_NL01: Crg580Nl01, pub GPIO580_PORTS_NL01: Gpio580PortsNl01, pub I2C580_NL00: I2C580Nl00, pub KBRD580_NL01: Kbrd580Nl01, pub OTPC580_GR01: Otpc580Gr01, pub QUADEC580_GR01: Quadec580Gr01, pub RISCUTIL580_GPREG_NL01: Riscutil580GpregNl01, pub RISCUTIL580_WDOG_NL00: Riscutil580WdogNl00, pub SPI443_NL00: Spi443Nl00, pub TMR580_NL01: Tmr580Nl01, pub UART1: Uart1, pub UART2: Uart2, pub WKUP580_NL01: Wkup580Nl01,
}
Expand description

Required for compatibility with RTIC and other frameworks

Fields§

§NVIC: Nvic§SCB: Scb§SYSTICK: SysTick§ADC580_BIF_NL01: Adc580BifNl01§ANAMISC580_NL01: Anamisc580Nl01§BLE580_GR01: Ble580Gr01§CHIP_VERSION: ChipVersion§CRG580_DCDC_NL01: Crg580DcdcNl01§CRG580_NL01: Crg580Nl01§GPIO580_PORTS_NL01: Gpio580PortsNl01§I2C580_NL00: I2C580Nl00§KBRD580_NL01: Kbrd580Nl01§OTPC580_GR01: Otpc580Gr01§QUADEC580_GR01: Quadec580Gr01§RISCUTIL580_GPREG_NL01: Riscutil580GpregNl01§RISCUTIL580_WDOG_NL00: Riscutil580WdogNl00§SPI443_NL00: Spi443Nl00§TMR580_NL01: Tmr580Nl01§UART1: Uart1§UART2: Uart2§WKUP580_NL01: Wkup580Nl01

Implementations§

Source§

impl Peripherals

Source

pub fn take() -> Option<Self>

Returns Peripheral struct multiple times Required for compatibility with RTIC and other frameworks

Source

pub fn steal() -> Self

Returns Peripheral struct multiple times Required for compatibility with RTIC and other frameworks

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.