Struct EarlGreyDefaultPeripherals

Source
pub struct EarlGreyDefaultPeripherals<'a, CFG: EarlGreyConfig, PINMUX: EarlGreyPinmuxConfig> {
    pub aes: Aes<'a>,
    pub hmac: Hmac<'a>,
    pub usb: Usb<'a>,
    pub uart0: Uart<'a>,
    pub otbn: Otbn<'a>,
    pub gpio_port: Port<'a>,
    pub i2c0: I2c<'a>,
    pub spi_host0: SpiHost<'a>,
    pub spi_host1: SpiHost<'a>,
    pub flash_ctrl: FlashCtrl<'a>,
    pub rng: CsRng<'a>,
    pub watchdog: AonTimer,
    /* private fields */
}

Fields§

§aes: Aes<'a>§hmac: Hmac<'a>§usb: Usb<'a>§uart0: Uart<'a>§otbn: Otbn<'a>§gpio_port: Port<'a>§i2c0: I2c<'a>§spi_host0: SpiHost<'a>§spi_host1: SpiHost<'a>§flash_ctrl: FlashCtrl<'a>§rng: CsRng<'a>§watchdog: AonTimer

Implementations§

Source§

impl<CFG: EarlGreyConfig, PINMUX: EarlGreyPinmuxConfig> EarlGreyDefaultPeripherals<'_, CFG, PINMUX>

Source

pub fn new() -> Self

Source

pub fn init(&'static self)

Trait Implementations§

Source§

impl<CFG: EarlGreyConfig, PINMUX: EarlGreyPinmuxConfig> InterruptService for EarlGreyDefaultPeripherals<'_, CFG, PINMUX>

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§

§

impl<'a, CFG, PINMUX> !Freeze for EarlGreyDefaultPeripherals<'a, CFG, PINMUX>

§

impl<'a, CFG, PINMUX> !RefUnwindSafe for EarlGreyDefaultPeripherals<'a, CFG, PINMUX>

§

impl<'a, CFG, PINMUX> !Send for EarlGreyDefaultPeripherals<'a, CFG, PINMUX>

§

impl<'a, CFG, PINMUX> !Sync for EarlGreyDefaultPeripherals<'a, CFG, PINMUX>

§

impl<'a, CFG, PINMUX> Unpin for EarlGreyDefaultPeripherals<'a, CFG, PINMUX>
where CFG: Unpin, PINMUX: Unpin,

§

impl<'a, CFG, PINMUX> !UnwindSafe for EarlGreyDefaultPeripherals<'a, CFG, PINMUX>

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.