atsamd_hal::eic

Struct Channel

Source
pub struct Channel<Id: ChId, F = NoneT> { /* private fields */ }
Expand description

EIC channel.

Use this struct to create an ExtInt by calling with_pin.

Implementations§

Source§

impl<Id: ChId, F> Channel<Id, F>

Source

pub fn with_pin<P: EicPin<ChId = Id>>(self, pin: P) -> ExtInt<P, Id, F>

Assign a pin to this Channel, and turn it into an ExtInt, which is capable of sensing state changes on the pin.

Auto Trait Implementations§

§

impl<Id, F> Freeze for Channel<Id, F>

§

impl<Id, F> RefUnwindSafe for Channel<Id, F>

§

impl<Id, F> Send for Channel<Id, F>
where Id: Send, F: Send,

§

impl<Id, F = NoneT> !Sync for Channel<Id, F>

§

impl<Id, F> Unpin for Channel<Id, F>
where Id: Unpin, F: Unpin,

§

impl<Id, F> UnwindSafe for Channel<Id, F>
where Id: UnwindSafe, F: UnwindSafe,

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> Same for T

Source§

type Output = T

Should always be Self
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.