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
impl Sam4lDefaultPeripherals
pub fn new(pm: &'static PowerManager) -> Self
pub fn setup_circular_deps(&'static self)
Trait Implementations§
Source§impl InterruptService for Sam4lDefaultPeripherals
impl InterruptService for Sam4lDefaultPeripherals
Source§unsafe fn service_interrupt(&self, interrupt: u32) -> bool
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§
impl !Freeze for Sam4lDefaultPeripherals
impl !RefUnwindSafe for Sam4lDefaultPeripherals
impl !Send for Sam4lDefaultPeripherals
impl !Sync for Sam4lDefaultPeripherals
impl Unpin for Sam4lDefaultPeripherals
impl !UnwindSafe for Sam4lDefaultPeripherals
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more