pub struct Eic<I = NoneT> { /* private fields */ }
Expand description
External Interrupt Controller.
Use split
to split the struct into individual channels,
which can then be used to create ExtInt
s, by calling
Channel::with_pin
.
Implementations§
Source§impl Eic
impl Eic
Sourcepub fn new(mclk: &mut Mclk, _clock: &EicClock, eic: Eic) -> Self
pub fn new(mclk: &mut Mclk, _clock: &EicClock, eic: Eic) -> Self
Create and initialize a new Eic
, and wire it up to the
ultra-low-power 32kHz clock source.
Sourcepub fn switch_to_osc32k(&mut self, _rtc: &RtcOsc<OscUlp32kId>)
pub fn switch_to_osc32k(&mut self, _rtc: &RtcOsc<OscUlp32kId>)
Switch the EIC to use the OSC32K clock as a source. This enables it to run in deep-sleep
In this mode, the maximum event frequency is limited to 16Khz
Sourcepub fn switch_to_gclk<S: GclkId>(&mut self, _gclk: &Pclk<Eic, S>)
pub fn switch_to_gclk<S: GclkId>(&mut self, _gclk: &Pclk<Eic, S>)
Switch the EIC to use a GCLK source as its clock source.
In this mode, the peripheral cannot run in deep-sleep,
but its maximum event frequency is F_GCLK/2
Sourcepub fn into_future(self)
pub fn into_future(self)
This method is not present with the selected feature set, defined for documentation only
Auto Trait Implementations§
impl<I> Freeze for Eic<I>
impl<I> RefUnwindSafe for Eic<I>where
I: RefUnwindSafe,
impl<I> Send for Eic<I>where
I: Send,
impl<I = NoneT> !Sync for Eic<I>
impl<I> Unpin for Eic<I>where
I: Unpin,
impl<I> UnwindSafe for Eic<I>where
I: UnwindSafe,
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