Struct Sam4lDefaultPeripherals

Source
pub struct Sam4lDefaultPeripherals {
Show 24 fields pub acifc: Acifc<'static>, pub adc: Adc<'static>, pub aes: Aes<'static>, pub ast: Ast<'static>, pub crccu: Crccu<'static>, pub dac: Dac, pub dma_channels: [DMAChannel; 16], pub eic: Eic<'static>, pub flash_controller: FLASHCALW, pub gloc: Gloc, pub pa: Port<'static>, pub pb: Port<'static>, pub pc: Port<'static>, pub i2c0: I2CHw<'static>, pub i2c1: I2CHw<'static>, pub i2c2: I2CHw<'static>, pub i2c3: I2CHw<'static>, pub spi: SpiHw<'static>, pub trng: Trng<'static>, pub usart0: USART<'static>, pub usart1: USART<'static>, pub usart2: USART<'static>, pub usart3: USART<'static>, pub usbc: Usbc<'static>,
}
Expand description

This struct, when initialized, instantiates all peripheral drivers for the apollo3.

If a board wishes to use only a subset of these peripherals, this should not be used or imported, and a modified version should be constructed manually in main.rs.

Fields§

§acifc: Acifc<'static>§adc: Adc<'static>§aes: Aes<'static>§ast: Ast<'static>§crccu: Crccu<'static>§dac: Dac§dma_channels: [DMAChannel; 16]§eic: Eic<'static>§flash_controller: FLASHCALW§gloc: Gloc§pa: Port<'static>§pb: Port<'static>§pc: Port<'static>§i2c0: I2CHw<'static>§i2c1: I2CHw<'static>§i2c2: I2CHw<'static>§i2c3: I2CHw<'static>§spi: SpiHw<'static>§trng: Trng<'static>§usart0: USART<'static>§usart1: USART<'static>§usart2: USART<'static>§usart3: USART<'static>§usbc: Usbc<'static>

Implementations§

Source§

impl Sam4lDefaultPeripherals

Source

pub fn new(pm: &'static PowerManager) -> Self

Source

pub fn setup_circular_deps(&'static self)

Trait Implementations§

Source§

impl InterruptService for Sam4lDefaultPeripherals

Source§

unsafe fn service_interrupt(&self, interrupt: u32) -> bool

Service an interrupt, if supported by this chip. If this interrupt number is not supported, return false.

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.