Struct Eic

Source
pub struct Eic<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> Eic<'a>

Source

pub const fn new() -> Eic<'a>

Source

pub fn set_client(&self, client: &'a dyn Client, line: &Line)

Registers a client associated with a line.

Source

pub fn handle_interrupt(&self, line: &Line)

Executes client function when an interrupt is triggered.

Source

pub fn line_is_enabled(&self, line: &Line) -> bool

Returns true is a line is enabled. This doesn’t mean the interrupt is being propagated through. Developers can use this function for testing.

Source

pub fn line_interrupt_is_enabled(&self, line: &Line) -> bool

Returns true if interrupt is being propagated from EIC to the interrupt controller of the external interrupt on a specific line, false otherwise. Developers can use this function for testing.

Source

pub fn line_interrupt_pending(&self, line: &Line) -> bool

Returns true if a line’s interrupt is pending, false otherwise. Developers can use this function for testing.

Source

pub fn line_enable_filter_is_enabled(&self, line: &Line) -> bool

Returns true if a line is in filter mode, false otherwise.

Source

pub fn line_asyn_is_enabled(&self, line: &Line) -> bool

Returns true if a line is in asynchronous mode, false otherwise

Trait Implementations§

Source§

impl ExternalInterruptController for Eic<'_>

Source§

type Line = Line

The chip-dependent type of an EIC line. Number of lines available depends on the chip.
Source§

fn line_enable(&self, line: &Self::Line, interrupt_mode: InterruptMode)

Enables external interrupt on the given ‘line’ In asynchronous mode, all edge interrupts will be interpreted as level interrupts and the filter is disabled.
Source§

fn line_disable(&self, line: &Self::Line)

Disables external interrupt on the given ‘line’
Source§

impl PeripheralManagement<Clock> for Eic<'_>

Source§

type RegisterType = EicRegisters

Source§

fn get_registers(&self) -> &EicRegisters

How to get a reference to the physical hardware registers (the MMIO struct).
Source§

fn get_clock(&self) -> &Clock

Which clock feeds this peripheral. Read more
Source§

fn before_peripheral_access(&self, clock: &Clock, _: &EicRegisters)

Called before peripheral access. Read more
Source§

fn after_peripheral_access(&self, clock: &Clock, registers: &EicRegisters)

Called after peripheral access. Read more

Auto Trait Implementations§

§

impl<'a> !Freeze for Eic<'a>

§

impl<'a> !RefUnwindSafe for Eic<'a>

§

impl<'a> !Send for Eic<'a>

§

impl<'a> !Sync for Eic<'a>

§

impl<'a> Unpin for Eic<'a>

§

impl<'a> !UnwindSafe for Eic<'a>

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.