Skip to main content

DedicatedGpio

Struct DedicatedGpio 

Source
pub struct DedicatedGpio<'lt> {
    pub channel0: DedicatedGpioChannel<'lt, 0>,
    pub channel1: DedicatedGpioChannel<'lt, 1>,
    pub channel2: DedicatedGpioChannel<'lt, 2>,
    pub channel3: DedicatedGpioChannel<'lt, 3>,
    pub channel4: DedicatedGpioChannel<'lt, 4>,
    pub channel5: DedicatedGpioChannel<'lt, 5>,
    pub channel6: DedicatedGpioChannel<'lt, 6>,
    pub channel7: DedicatedGpioChannel<'lt, 7>,
}
Expand description

Dedicated GPIO channels.

Fields§

§channel0: DedicatedGpioChannel<'lt, 0>

Channel 0

§channel1: DedicatedGpioChannel<'lt, 1>

Channel 1

§channel2: DedicatedGpioChannel<'lt, 2>

Channel 2

§channel3: DedicatedGpioChannel<'lt, 3>

Channel 3

§channel4: DedicatedGpioChannel<'lt, 4>

Channel 4

§channel5: DedicatedGpioChannel<'lt, 5>

Channel 5

§channel6: DedicatedGpioChannel<'lt, 6>

Channel 6

§channel7: DedicatedGpioChannel<'lt, 7>

Channel 7

Implementations§

Source§

impl<'lt> DedicatedGpio<'lt>

Source

pub fn new(_: GPIO_DEDICATED<'lt>) -> Self

Initializes the dedicated GPIO features and returns the channels.

Auto Trait Implementations§

§

impl<'lt> Freeze for DedicatedGpio<'lt>

§

impl<'lt> RefUnwindSafe for DedicatedGpio<'lt>

§

impl<'lt> Send for DedicatedGpio<'lt>

§

impl<'lt> Sync for DedicatedGpio<'lt>

§

impl<'lt> Unpin for DedicatedGpio<'lt>

§

impl<'lt> UnsafeUnpin for DedicatedGpio<'lt>

§

impl<'lt> !UnwindSafe for DedicatedGpio<'lt>

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

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
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.