Skip to main content

Peripherals

Struct Peripherals 

Source
pub struct Peripherals {
Show 147 fields pub ADC14_0: Peri<'static, ADC14_0>, pub AGT0: Peri<'static, AGT0>, pub AGT1: Peri<'static, AGT1>, pub CRC: Peri<'static, CRC>, pub DAC12_0: Peri<'static, DAC12_0>, pub DBG: Peri<'static, DBG>, pub DMA: Peri<'static, DMA>, pub DMAC0: Peri<'static, DMAC0>, pub DMAC1: Peri<'static, DMAC1>, pub DMAC2: Peri<'static, DMAC2>, pub DMAC3: Peri<'static, DMAC3>, pub DTC: Peri<'static, DTC>, pub DTC_CHAN0: Peri<'static, DTC_CHAN0>, pub DTC_CHAN1: Peri<'static, DTC_CHAN1>, pub DTC_CHAN10: Peri<'static, DTC_CHAN10>, pub DTC_CHAN11: Peri<'static, DTC_CHAN11>, pub DTC_CHAN12: Peri<'static, DTC_CHAN12>, pub DTC_CHAN13: Peri<'static, DTC_CHAN13>, pub DTC_CHAN14: Peri<'static, DTC_CHAN14>, pub DTC_CHAN15: Peri<'static, DTC_CHAN15>, pub DTC_CHAN16: Peri<'static, DTC_CHAN16>, pub DTC_CHAN17: Peri<'static, DTC_CHAN17>, pub DTC_CHAN18: Peri<'static, DTC_CHAN18>, pub DTC_CHAN19: Peri<'static, DTC_CHAN19>, pub DTC_CHAN2: Peri<'static, DTC_CHAN2>, pub DTC_CHAN20: Peri<'static, DTC_CHAN20>, pub DTC_CHAN21: Peri<'static, DTC_CHAN21>, pub DTC_CHAN22: Peri<'static, DTC_CHAN22>, pub DTC_CHAN23: Peri<'static, DTC_CHAN23>, pub DTC_CHAN24: Peri<'static, DTC_CHAN24>, pub DTC_CHAN25: Peri<'static, DTC_CHAN25>, pub DTC_CHAN26: Peri<'static, DTC_CHAN26>, pub DTC_CHAN27: Peri<'static, DTC_CHAN27>, pub DTC_CHAN28: Peri<'static, DTC_CHAN28>, pub DTC_CHAN29: Peri<'static, DTC_CHAN29>, pub DTC_CHAN3: Peri<'static, DTC_CHAN3>, pub DTC_CHAN30: Peri<'static, DTC_CHAN30>, pub DTC_CHAN31: Peri<'static, DTC_CHAN31>, pub DTC_CHAN4: Peri<'static, DTC_CHAN4>, pub DTC_CHAN5: Peri<'static, DTC_CHAN5>, pub DTC_CHAN6: Peri<'static, DTC_CHAN6>, pub DTC_CHAN7: Peri<'static, DTC_CHAN7>, pub DTC_CHAN8: Peri<'static, DTC_CHAN8>, pub DTC_CHAN9: Peri<'static, DTC_CHAN9>, pub ELC: Peri<'static, ELC>, pub FCACHE: Peri<'static, FCACHE>, pub GPIO_IRQ0: Peri<'static, GPIO_IRQ0>, pub GPIO_IRQ1: Peri<'static, GPIO_IRQ1>, pub GPIO_IRQ11: Peri<'static, GPIO_IRQ11>, pub GPIO_IRQ12: Peri<'static, GPIO_IRQ12>, pub GPIO_IRQ15: Peri<'static, GPIO_IRQ15>, pub GPIO_IRQ2: Peri<'static, GPIO_IRQ2>, pub GPIO_IRQ3: Peri<'static, GPIO_IRQ3>, pub GPIO_IRQ4: Peri<'static, GPIO_IRQ4>, pub GPIO_IRQ5: Peri<'static, GPIO_IRQ5>, pub GPIO_IRQ6: Peri<'static, GPIO_IRQ6>, pub GPIO_IRQ7: Peri<'static, GPIO_IRQ7>, pub GPIO_IRQ9: Peri<'static, GPIO_IRQ9>, pub GPT16_2: Peri<'static, GPT16_2>, pub GPT16_3: Peri<'static, GPT16_3>, pub GPT16_4: Peri<'static, GPT16_4>, pub GPT16_5: Peri<'static, GPT16_5>, pub GPT16_6: Peri<'static, GPT16_6>, pub GPT16_7: Peri<'static, GPT16_7>, pub GPT32_0: Peri<'static, GPT32_0>, pub GPT32_1: Peri<'static, GPT32_1>, pub ICU: Peri<'static, ICU>, pub IIC0: Peri<'static, IIC0>, pub IIC1: Peri<'static, IIC1>, pub INFO: Peri<'static, INFO>, pub IWDT: Peri<'static, IWDT>, pub MSTP: Peri<'static, MSTP>, pub NMI: Peri<'static, NMI>, pub OSM: Peri<'static, OSM>, pub P000: Peri<'static, P000>, pub P001: Peri<'static, P001>, pub P002: Peri<'static, P002>, pub P003: Peri<'static, P003>, pub P004: Peri<'static, P004>, pub P010: Peri<'static, P010>, pub P011: Peri<'static, P011>, pub P012: Peri<'static, P012>, pub P013: Peri<'static, P013>, pub P014: Peri<'static, P014>, pub P015: Peri<'static, P015>, pub P100: Peri<'static, P100>, pub P101: Peri<'static, P101>, pub P102: Peri<'static, P102>, pub P103: Peri<'static, P103>, pub P104: Peri<'static, P104>, pub P105: Peri<'static, P105>, pub P106: Peri<'static, P106>, pub P107: Peri<'static, P107>, pub P108: Peri<'static, P108>, pub P109: Peri<'static, P109>, pub P110: Peri<'static, P110>, pub P111: Peri<'static, P111>, pub P112: Peri<'static, P112>, pub P113: Peri<'static, P113>, pub P200: Peri<'static, P200>, pub P201: Peri<'static, P201>, pub P204: Peri<'static, P204>, pub P205: Peri<'static, P205>, pub P206: Peri<'static, P206>, pub P212: Peri<'static, P212>, pub P213: Peri<'static, P213>, pub P214: Peri<'static, P214>, pub P215: Peri<'static, P215>, pub P300: Peri<'static, P300>, pub P301: Peri<'static, P301>, pub P302: Peri<'static, P302>, pub P303: Peri<'static, P303>, pub P304: Peri<'static, P304>, pub P400: Peri<'static, P400>, pub P401: Peri<'static, P401>, pub P402: Peri<'static, P402>, pub P407: Peri<'static, P407>, pub P408: Peri<'static, P408>, pub P409: Peri<'static, P409>, pub P410: Peri<'static, P410>, pub P411: Peri<'static, P411>, pub P500: Peri<'static, P500>, pub P501: Peri<'static, P501>, pub P502: Peri<'static, P502>, pub P914: Peri<'static, P914>, pub P915: Peri<'static, P915>, pub PFS: Peri<'static, PFS>, pub PORT0: Peri<'static, PORT0>, pub PORT1: Peri<'static, PORT1>, pub PORT2: Peri<'static, PORT2>, pub PORT3: Peri<'static, PORT3>, pub PORT4: Peri<'static, PORT4>, pub PORT5: Peri<'static, PORT5>, pub PORT6: Peri<'static, PORT6>, pub PORT7: Peri<'static, PORT7>, pub PORT8: Peri<'static, PORT8>, pub PORT9: Peri<'static, PORT9>, pub SCI0: Peri<'static, SCI0>, pub SCI1: Peri<'static, SCI1>, pub SCI2: Peri<'static, SCI2>, pub SCI9: Peri<'static, SCI9>, pub SPI0: Peri<'static, SPI0>, pub SPI1: Peri<'static, SPI1>, pub SYSTEM: Peri<'static, SYSTEM>, pub TSN: Peri<'static, TSN>, pub USBFS: Peri<'static, USBFS>, pub WDT: Peri<'static, WDT>,
}
Expand description

Struct containing all the peripheral singletons.

To obtain the peripherals, you must initialize the HAL, by calling crate::init.

Fields§

§ADC14_0: Peri<'static, ADC14_0>

ADC14_0 peripheral

§AGT0: Peri<'static, AGT0>

AGT0 peripheral

§AGT1: Peri<'static, AGT1>

AGT1 peripheral

§CRC: Peri<'static, CRC>

CRC peripheral

§DAC12_0: Peri<'static, DAC12_0>

DAC12_0 peripheral

§DBG: Peri<'static, DBG>

DBG peripheral

§DMA: Peri<'static, DMA>

DMA peripheral

§DMAC0: Peri<'static, DMAC0>

DMAC0 peripheral

§DMAC1: Peri<'static, DMAC1>

DMAC1 peripheral

§DMAC2: Peri<'static, DMAC2>

DMAC2 peripheral

§DMAC3: Peri<'static, DMAC3>

DMAC3 peripheral

§DTC: Peri<'static, DTC>

DTC peripheral

§DTC_CHAN0: Peri<'static, DTC_CHAN0>

DTC_CHAN0 peripheral

§DTC_CHAN1: Peri<'static, DTC_CHAN1>

DTC_CHAN1 peripheral

§DTC_CHAN10: Peri<'static, DTC_CHAN10>

DTC_CHAN10 peripheral

§DTC_CHAN11: Peri<'static, DTC_CHAN11>

DTC_CHAN11 peripheral

§DTC_CHAN12: Peri<'static, DTC_CHAN12>

DTC_CHAN12 peripheral

§DTC_CHAN13: Peri<'static, DTC_CHAN13>

DTC_CHAN13 peripheral

§DTC_CHAN14: Peri<'static, DTC_CHAN14>

DTC_CHAN14 peripheral

§DTC_CHAN15: Peri<'static, DTC_CHAN15>

DTC_CHAN15 peripheral

§DTC_CHAN16: Peri<'static, DTC_CHAN16>

DTC_CHAN16 peripheral

§DTC_CHAN17: Peri<'static, DTC_CHAN17>

DTC_CHAN17 peripheral

§DTC_CHAN18: Peri<'static, DTC_CHAN18>

DTC_CHAN18 peripheral

§DTC_CHAN19: Peri<'static, DTC_CHAN19>

DTC_CHAN19 peripheral

§DTC_CHAN2: Peri<'static, DTC_CHAN2>

DTC_CHAN2 peripheral

§DTC_CHAN20: Peri<'static, DTC_CHAN20>

DTC_CHAN20 peripheral

§DTC_CHAN21: Peri<'static, DTC_CHAN21>

DTC_CHAN21 peripheral

§DTC_CHAN22: Peri<'static, DTC_CHAN22>

DTC_CHAN22 peripheral

§DTC_CHAN23: Peri<'static, DTC_CHAN23>

DTC_CHAN23 peripheral

§DTC_CHAN24: Peri<'static, DTC_CHAN24>

DTC_CHAN24 peripheral

§DTC_CHAN25: Peri<'static, DTC_CHAN25>

DTC_CHAN25 peripheral

§DTC_CHAN26: Peri<'static, DTC_CHAN26>

DTC_CHAN26 peripheral

§DTC_CHAN27: Peri<'static, DTC_CHAN27>

DTC_CHAN27 peripheral

§DTC_CHAN28: Peri<'static, DTC_CHAN28>

DTC_CHAN28 peripheral

§DTC_CHAN29: Peri<'static, DTC_CHAN29>

DTC_CHAN29 peripheral

§DTC_CHAN3: Peri<'static, DTC_CHAN3>

DTC_CHAN3 peripheral

§DTC_CHAN30: Peri<'static, DTC_CHAN30>

DTC_CHAN30 peripheral

§DTC_CHAN31: Peri<'static, DTC_CHAN31>

DTC_CHAN31 peripheral

§DTC_CHAN4: Peri<'static, DTC_CHAN4>

DTC_CHAN4 peripheral

§DTC_CHAN5: Peri<'static, DTC_CHAN5>

DTC_CHAN5 peripheral

§DTC_CHAN6: Peri<'static, DTC_CHAN6>

DTC_CHAN6 peripheral

§DTC_CHAN7: Peri<'static, DTC_CHAN7>

DTC_CHAN7 peripheral

§DTC_CHAN8: Peri<'static, DTC_CHAN8>

DTC_CHAN8 peripheral

§DTC_CHAN9: Peri<'static, DTC_CHAN9>

DTC_CHAN9 peripheral

§ELC: Peri<'static, ELC>

ELC peripheral

§FCACHE: Peri<'static, FCACHE>

FCACHE peripheral

§GPIO_IRQ0: Peri<'static, GPIO_IRQ0>

GPIO_IRQ0 peripheral

§GPIO_IRQ1: Peri<'static, GPIO_IRQ1>

GPIO_IRQ1 peripheral

§GPIO_IRQ11: Peri<'static, GPIO_IRQ11>

GPIO_IRQ11 peripheral

§GPIO_IRQ12: Peri<'static, GPIO_IRQ12>

GPIO_IRQ12 peripheral

§GPIO_IRQ15: Peri<'static, GPIO_IRQ15>

GPIO_IRQ15 peripheral

§GPIO_IRQ2: Peri<'static, GPIO_IRQ2>

GPIO_IRQ2 peripheral

§GPIO_IRQ3: Peri<'static, GPIO_IRQ3>

GPIO_IRQ3 peripheral

§GPIO_IRQ4: Peri<'static, GPIO_IRQ4>

GPIO_IRQ4 peripheral

§GPIO_IRQ5: Peri<'static, GPIO_IRQ5>

GPIO_IRQ5 peripheral

§GPIO_IRQ6: Peri<'static, GPIO_IRQ6>

GPIO_IRQ6 peripheral

§GPIO_IRQ7: Peri<'static, GPIO_IRQ7>

GPIO_IRQ7 peripheral

§GPIO_IRQ9: Peri<'static, GPIO_IRQ9>

GPIO_IRQ9 peripheral

§GPT16_2: Peri<'static, GPT16_2>

GPT16_2 peripheral

§GPT16_3: Peri<'static, GPT16_3>

GPT16_3 peripheral

§GPT16_4: Peri<'static, GPT16_4>

GPT16_4 peripheral

§GPT16_5: Peri<'static, GPT16_5>

GPT16_5 peripheral

§GPT16_6: Peri<'static, GPT16_6>

GPT16_6 peripheral

§GPT16_7: Peri<'static, GPT16_7>

GPT16_7 peripheral

§GPT32_0: Peri<'static, GPT32_0>

GPT32_0 peripheral

§GPT32_1: Peri<'static, GPT32_1>

GPT32_1 peripheral

§ICU: Peri<'static, ICU>

ICU peripheral

§IIC0: Peri<'static, IIC0>

IIC0 peripheral

§IIC1: Peri<'static, IIC1>

IIC1 peripheral

§INFO: Peri<'static, INFO>

INFO peripheral

§IWDT: Peri<'static, IWDT>

IWDT peripheral

§MSTP: Peri<'static, MSTP>

MSTP peripheral

§NMI: Peri<'static, NMI>

NMI peripheral

§OSM: Peri<'static, OSM>

OSM peripheral

§P000: Peri<'static, P000>

P000 peripheral

§P001: Peri<'static, P001>

P001 peripheral

§P002: Peri<'static, P002>

P002 peripheral

§P003: Peri<'static, P003>

P003 peripheral

§P004: Peri<'static, P004>

P004 peripheral

§P010: Peri<'static, P010>

P010 peripheral

§P011: Peri<'static, P011>

P011 peripheral

§P012: Peri<'static, P012>

P012 peripheral

§P013: Peri<'static, P013>

P013 peripheral

§P014: Peri<'static, P014>

P014 peripheral

§P015: Peri<'static, P015>

P015 peripheral

§P100: Peri<'static, P100>

P100 peripheral

§P101: Peri<'static, P101>

P101 peripheral

§P102: Peri<'static, P102>

P102 peripheral

§P103: Peri<'static, P103>

P103 peripheral

§P104: Peri<'static, P104>

P104 peripheral

§P105: Peri<'static, P105>

P105 peripheral

§P106: Peri<'static, P106>

P106 peripheral

§P107: Peri<'static, P107>

P107 peripheral

§P108: Peri<'static, P108>

P108 peripheral

§P109: Peri<'static, P109>

P109 peripheral

§P110: Peri<'static, P110>

P110 peripheral

§P111: Peri<'static, P111>

P111 peripheral

§P112: Peri<'static, P112>

P112 peripheral

§P113: Peri<'static, P113>

P113 peripheral

§P200: Peri<'static, P200>

P200 peripheral

§P201: Peri<'static, P201>

P201 peripheral

§P204: Peri<'static, P204>

P204 peripheral

§P205: Peri<'static, P205>

P205 peripheral

§P206: Peri<'static, P206>

P206 peripheral

§P212: Peri<'static, P212>

P212 peripheral

§P213: Peri<'static, P213>

P213 peripheral

§P214: Peri<'static, P214>

P214 peripheral

§P215: Peri<'static, P215>

P215 peripheral

§P300: Peri<'static, P300>

P300 peripheral

§P301: Peri<'static, P301>

P301 peripheral

§P302: Peri<'static, P302>

P302 peripheral

§P303: Peri<'static, P303>

P303 peripheral

§P304: Peri<'static, P304>

P304 peripheral

§P400: Peri<'static, P400>

P400 peripheral

§P401: Peri<'static, P401>

P401 peripheral

§P402: Peri<'static, P402>

P402 peripheral

§P407: Peri<'static, P407>

P407 peripheral

§P408: Peri<'static, P408>

P408 peripheral

§P409: Peri<'static, P409>

P409 peripheral

§P410: Peri<'static, P410>

P410 peripheral

§P411: Peri<'static, P411>

P411 peripheral

§P500: Peri<'static, P500>

P500 peripheral

§P501: Peri<'static, P501>

P501 peripheral

§P502: Peri<'static, P502>

P502 peripheral

§P914: Peri<'static, P914>

P914 peripheral

§P915: Peri<'static, P915>

P915 peripheral

§PFS: Peri<'static, PFS>

PFS peripheral

§PORT0: Peri<'static, PORT0>

PORT0 peripheral

§PORT1: Peri<'static, PORT1>

PORT1 peripheral

§PORT2: Peri<'static, PORT2>

PORT2 peripheral

§PORT3: Peri<'static, PORT3>

PORT3 peripheral

§PORT4: Peri<'static, PORT4>

PORT4 peripheral

§PORT5: Peri<'static, PORT5>

PORT5 peripheral

§PORT6: Peri<'static, PORT6>

PORT6 peripheral

§PORT7: Peri<'static, PORT7>

PORT7 peripheral

§PORT8: Peri<'static, PORT8>

PORT8 peripheral

§PORT9: Peri<'static, PORT9>

PORT9 peripheral

§SCI0: Peri<'static, SCI0>

SCI0 peripheral

§SCI1: Peri<'static, SCI1>

SCI1 peripheral

§SCI2: Peri<'static, SCI2>

SCI2 peripheral

§SCI9: Peri<'static, SCI9>

SCI9 peripheral

§SPI0: Peri<'static, SPI0>

SPI0 peripheral

§SPI1: Peri<'static, SPI1>

SPI1 peripheral

§SYSTEM: Peri<'static, SYSTEM>

SYSTEM peripheral

§TSN: Peri<'static, TSN>

TSN peripheral

§USBFS: Peri<'static, USBFS>

USBFS peripheral

§WDT: Peri<'static, WDT>

WDT peripheral

Implementations§

Source§

impl Peripherals

Source

pub unsafe fn steal() -> Self

Unsafely create an instance of this peripheral out of thin air.

§Safety

You must ensure that you’re only using one instance of this type at a time.

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 = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

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.