Skip to main content

Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 104 fields pub PORT0: Port0, pub PORT1: Port1, pub PORT2: Port1, pub PORT3: Port1, pub PORT4: Port1, pub PORT5: Port0, pub PORT6: Port0, pub PORT7: Port0, pub PORT8: Port0, pub PORT9: Port0, pub PORTA: Port0, pub PORTB: Port0, pub PFS: Pfs, pub PMISC: Pmisc, pub SPI0: Spi0, pub SPI1: Spi0, pub GPT_OPS: GptOps, pub GPT32EH0: Gpt32Eh0, pub GPT32EH1: Gpt32Eh0, pub GPT32EH2: Gpt32Eh0, pub GPT32EH3: Gpt32Eh0, pub GPT32E4: Gpt32Eh0, pub GPT32E5: Gpt32Eh0, pub GPT32E6: Gpt32Eh0, pub GPT32E7: Gpt32Eh0, pub USBHS: Usbhs, pub SCI0: Sci0, pub SCI1: Sci0, pub SCI2: Sci0, pub SCI3: Sci0, pub SCI4: Sci0, pub SCI5: Sci0, pub SCI6: Sci0, pub SCI7: Sci0, pub SCI8: Sci0, pub SCI9: Sci0, pub IIC0: Iic0, pub IIC1: Iic1, pub IIC2: Iic1, pub SYSTEM: System, pub EDMAC0: Edmac0, pub ETHERC0: Etherc0, pub SDHI0: Sdhi0, pub SDHI1: Sdhi0, pub CRC: Crc, pub CTSU: Ctsu, pub MMPU: Mmpu, pub SMPU: Smpu, pub SPMON: Spmon, pub ADC120: Adc120, pub ADC121: Adc121, pub MSTP: Mstp, pub GPT328: Gpt328, pub GPT329: Gpt328, pub GPT3210: Gpt328, pub GPT3211: Gpt328, pub GPT3212: Gpt328, pub GPT3213: Gpt328, pub RTC: Rtc, pub SSIE0: Ssie0, pub SSIE1: Ssie0, pub USBFS: Usbfs, pub SRCRAM: Srcram, pub SRC: Src, pub ICU: Icu, pub SRAM: Sram, pub GPT_ODC: GptOdc, pub AGT0: Agt0, pub AGT1: Agt0, pub FCACHE: Fcache, pub BUS: Bus, pub DAC12: Dac12, pub AMI: Ami, pub POEG: Poeg, pub IRDA: Irda, pub CAN0: Can0, pub CAN1: Can0, pub PDC: Pdc, pub QSPI: Qspi, pub MMF: Mmf, pub DMAC0: Dmac0, pub DMAC1: Dmac0, pub DMAC2: Dmac0, pub DMAC3: Dmac0, pub DMAC4: Dmac0, pub DMAC5: Dmac0, pub DMAC6: Dmac0, pub DMAC7: Dmac0, pub DMA: Dma, pub DTC: Dtc, pub DBG: Dbg, pub TSN: Tsn, pub ACMPHS0: Acmphs0, pub ACMPHS1: Acmphs1, pub ACMPHS2: Acmphs1, pub ACMPHS3: Acmphs1, pub ACMPHS4: Acmphs1, pub ACMPHS5: Acmphs1, pub ELC: Elc, pub WDT: Wdt, pub IWDT: Iwdt, pub KINT: Kint, pub DOC: Doc, pub CAC: Cac,
}
Expand description

Required for compatibility with RTIC and other frameworks

Fields§

§PORT0: Port0§PORT1: Port1§PORT2: Port1§PORT3: Port1§PORT4: Port1§PORT5: Port0§PORT6: Port0§PORT7: Port0§PORT8: Port0§PORT9: Port0§PORTA: Port0§PORTB: Port0§PFS: Pfs§PMISC: Pmisc§SPI0: Spi0§SPI1: Spi0§GPT_OPS: GptOps§GPT32EH0: Gpt32Eh0§GPT32EH1: Gpt32Eh0§GPT32EH2: Gpt32Eh0§GPT32EH3: Gpt32Eh0§GPT32E4: Gpt32Eh0§GPT32E5: Gpt32Eh0§GPT32E6: Gpt32Eh0§GPT32E7: Gpt32Eh0§USBHS: Usbhs§SCI0: Sci0§SCI1: Sci0§SCI2: Sci0§SCI3: Sci0§SCI4: Sci0§SCI5: Sci0§SCI6: Sci0§SCI7: Sci0§SCI8: Sci0§SCI9: Sci0§IIC0: Iic0§IIC1: Iic1§IIC2: Iic1§SYSTEM: System§EDMAC0: Edmac0§ETHERC0: Etherc0§SDHI0: Sdhi0§SDHI1: Sdhi0§CRC: Crc§CTSU: Ctsu§MMPU: Mmpu§SMPU: Smpu§SPMON: Spmon§ADC120: Adc120§ADC121: Adc121§MSTP: Mstp§GPT328: Gpt328§GPT329: Gpt328§GPT3210: Gpt328§GPT3211: Gpt328§GPT3212: Gpt328§GPT3213: Gpt328§RTC: Rtc§SSIE0: Ssie0§SSIE1: Ssie0§USBFS: Usbfs§SRCRAM: Srcram§SRC: Src§ICU: Icu§SRAM: Sram§GPT_ODC: GptOdc§AGT0: Agt0§AGT1: Agt0§FCACHE: Fcache§BUS: Bus§DAC12: Dac12§AMI: Ami§POEG: Poeg§IRDA: Irda§CAN0: Can0§CAN1: Can0§PDC: Pdc§QSPI: Qspi§MMF: Mmf§DMAC0: Dmac0§DMAC1: Dmac0§DMAC2: Dmac0§DMAC3: Dmac0§DMAC4: Dmac0§DMAC5: Dmac0§DMAC6: Dmac0§DMAC7: Dmac0§DMA: Dma§DTC: Dtc§DBG: Dbg§TSN: Tsn§ACMPHS0: Acmphs0§ACMPHS1: Acmphs1§ACMPHS2: Acmphs1§ACMPHS3: Acmphs1§ACMPHS4: Acmphs1§ACMPHS5: Acmphs1§ELC: Elc§WDT: Wdt§IWDT: Iwdt§KINT: Kint§DOC: Doc§CAC: Cac

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.