PININT

Struct PININT 

Source
pub struct PININT<State> {
    pub interrupts: Interrupts<State>,
    /* private fields */
}
Expand description

Entry point to the PININT API

Fields§

§interrupts: Interrupts<State>

Provides access to the pin interrupts

Implementations§

Source§

impl PININT<Disabled>

Source

pub fn enable(self, syscon: &mut Handle) -> PININT<Enabled>

Enable the PININT peripheral

Source§

impl<State> PININT<State>

Source

pub fn free(self) -> PINT

Return the raw peripheral

This method serves as an escape hatch from the HAL API. It returns the raw peripheral, allowing you to do whatever you want with it, without limitations imposed by the API.

If you are using this method because a feature you need is missing from the HAL API, please open an issue or, if an issue for your feature request already exists, comment on the existing issue, so we can prioritize it accordingly.

Auto Trait Implementations§

§

impl<State> Freeze for PININT<State>

§

impl<State> RefUnwindSafe for PININT<State>
where State: RefUnwindSafe,

§

impl<State> Send for PININT<State>
where State: Send,

§

impl<State> !Sync for PININT<State>

§

impl<State> Unpin for PININT<State>
where State: Unpin,

§

impl<State> UnwindSafe for PININT<State>
where State: 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, 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.