Skip to main content

Pin

Enum Pin 

#[repr(u32)]
pub enum Pin {
Show 48 variants P0_00 = 0, P0_01 = 1, P0_02 = 2, P0_03 = 3, P0_04 = 4, P0_05 = 5, P0_06 = 6, P0_07 = 7, P0_08 = 8, P0_09 = 9, P0_10 = 10, P0_11 = 11, P0_12 = 12, P0_13 = 13, P0_14 = 14, P0_15 = 15, P0_16 = 16, P0_17 = 17, P0_18 = 18, P0_19 = 19, P0_20 = 20, P0_21 = 21, P0_22 = 22, P0_23 = 23, P0_24 = 24, P0_25 = 25, P0_26 = 26, P0_27 = 27, P0_28 = 28, P0_29 = 29, P0_30 = 30, P0_31 = 31, P1_00 = 32, P1_01 = 33, P1_02 = 34, P1_03 = 35, P1_04 = 36, P1_05 = 37, P1_06 = 38, P1_07 = 39, P1_08 = 40, P1_09 = 41, P1_10 = 42, P1_11 = 43, P1_12 = 44, P1_13 = 45, P1_14 = 46, P1_15 = 47,
}

Variants§

§

P0_00 = 0

§

P0_01 = 1

§

P0_02 = 2

§

P0_03 = 3

§

P0_04 = 4

§

P0_05 = 5

§

P0_06 = 6

§

P0_07 = 7

§

P0_08 = 8

§

P0_09 = 9

§

P0_10 = 10

§

P0_11 = 11

§

P0_12 = 12

§

P0_13 = 13

§

P0_14 = 14

§

P0_15 = 15

§

P0_16 = 16

§

P0_17 = 17

§

P0_18 = 18

§

P0_19 = 19

§

P0_20 = 20

§

P0_21 = 21

§

P0_22 = 22

§

P0_23 = 23

§

P0_24 = 24

§

P0_25 = 25

§

P0_26 = 26

§

P0_27 = 27

§

P0_28 = 28

§

P0_29 = 29

§

P0_30 = 30

§

P0_31 = 31

§

P1_00 = 32

§

P1_01 = 33

§

P1_02 = 34

§

P1_03 = 35

§

P1_04 = 36

§

P1_05 = 37

§

P1_06 = 38

§

P1_07 = 39

§

P1_08 = 40

§

P1_09 = 41

§

P1_10 = 42

§

P1_11 = 43

§

P1_12 = 44

§

P1_13 = 45

§

P1_14 = 46

§

P1_15 = 47

Trait Implementations§

§

impl Clone for Pin

§

fn clone(&self) -> Pin

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Copy for Pin

§

impl Debug for Pin

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl From<Pinmux> for Pin

§

fn from(val: Pinmux) -> Pin

Converts to this type from the input type.
§

impl FromPrimitive for Pin

§

fn from_i64(n: i64) -> Option<Pin>

Convert an i64 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
§

fn from_u64(n: u64) -> Option<Pin>

Convert an u64 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
§

fn from_isize(n: isize) -> Option<Self>

Convert an isize to return an optional value of this type. If the value cannot be represented by this value, then None is returned.
§

fn from_i8(n: i8) -> Option<Self>

Convert an i8 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
§

fn from_i16(n: i16) -> Option<Self>

Convert an i16 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
§

fn from_i32(n: i32) -> Option<Self>

Convert an i32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
§

fn from_usize(n: usize) -> Option<Self>

Convert a usize to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
§

fn from_u8(n: u8) -> Option<Self>

Convert an u8 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
§

fn from_u16(n: u16) -> Option<Self>

Convert an u16 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
§

fn from_u32(n: u32) -> Option<Self>

Convert an u32 to return an optional value of this type. If the type cannot be represented by this value, then None is returned.
§

impl<'a, const N: usize> Index<Pin> for Port<'a, N>

§

type Output = GPIOPin<'a>

The returned type after indexing.
§

fn index(&self, index: Pin) -> &GPIOPin<'a>

Performs the indexing (container[index]) operation. Read more
§

impl<'a, const N: usize> IndexMut<Pin> for Port<'a, N>

§

fn index_mut(&mut self, index: Pin) -> &mut GPIOPin<'a>

Performs the mutable indexing (container[index]) operation. Read more
§

impl PartialEq for Pin

§

fn eq(&self, other: &Pin) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl StructuralPartialEq for Pin

Auto Trait Implementations§

§

impl Freeze for Pin

§

impl RefUnwindSafe for Pin

§

impl Send for Pin

§

impl Sync for Pin

§

impl Unpin for Pin

§

impl UnsafeUnpin for Pin

§

impl UnwindSafe for Pin

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 = !

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

fn try_from(value: U) -> Result<T, !>

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.