Enum stm32f412g::gpio::PinId
source · #[repr(u8)]pub enum PinId {
Show 114 variants
PA00 = 0,
PA01 = 1,
PA02 = 2,
PA03 = 3,
PA04 = 4,
PA05 = 5,
PA06 = 6,
PA07 = 7,
PA08 = 8,
PA09 = 9,
PA10 = 10,
PA11 = 11,
PA12 = 12,
PA13 = 13,
PA14 = 14,
PA15 = 15,
PB00 = 16,
PB01 = 17,
PB02 = 18,
PB03 = 19,
PB04 = 20,
PB05 = 21,
PB06 = 22,
PB07 = 23,
PB08 = 24,
PB09 = 25,
PB10 = 26,
PB11 = 27,
PB12 = 28,
PB13 = 29,
PB14 = 30,
PB15 = 31,
PC00 = 32,
PC01 = 33,
PC02 = 34,
PC03 = 35,
PC04 = 36,
PC05 = 37,
PC06 = 38,
PC07 = 39,
PC08 = 40,
PC09 = 41,
PC10 = 42,
PC11 = 43,
PC12 = 44,
PC13 = 45,
PC14 = 46,
PC15 = 47,
PD00 = 48,
PD01 = 49,
PD02 = 50,
PD03 = 51,
PD04 = 52,
PD05 = 53,
PD06 = 54,
PD07 = 55,
PD08 = 56,
PD09 = 57,
PD10 = 58,
PD11 = 59,
PD12 = 60,
PD13 = 61,
PD14 = 62,
PD15 = 63,
PE00 = 64,
PE01 = 65,
PE02 = 66,
PE03 = 67,
PE04 = 68,
PE05 = 69,
PE06 = 70,
PE07 = 71,
PE08 = 72,
PE09 = 73,
PE10 = 74,
PE11 = 75,
PE12 = 76,
PE13 = 77,
PE14 = 78,
PE15 = 79,
PF00 = 80,
PF01 = 81,
PF02 = 82,
PF03 = 83,
PF04 = 84,
PF05 = 85,
PF06 = 86,
PF07 = 87,
PF08 = 88,
PF09 = 89,
PF10 = 90,
PF11 = 91,
PF12 = 92,
PF13 = 93,
PF14 = 94,
PF15 = 95,
PG00 = 96,
PG01 = 97,
PG02 = 98,
PG03 = 99,
PG04 = 100,
PG05 = 101,
PG06 = 102,
PG07 = 103,
PG08 = 104,
PG09 = 105,
PG10 = 106,
PG11 = 107,
PG12 = 108,
PG13 = 109,
PG14 = 110,
PG15 = 111,
PH00 = 112,
PH01 = 113,
}
Expand description
Name of the GPIO pin on the STM32F446RE.
The “Pinout and pin description” section 1 of the STM32F446RE datasheet shows the mapping between the names and the hardware pins on different chip packages.
The first three bits represent the port and last four bits represent the pin.
Section 4, Pinout and pin description, pages 41-45 ↩
Variants§
PA00 = 0
PA01 = 1
PA02 = 2
PA03 = 3
PA04 = 4
PA05 = 5
PA06 = 6
PA07 = 7
PA08 = 8
PA09 = 9
PA10 = 10
PA11 = 11
PA12 = 12
PA13 = 13
PA14 = 14
PA15 = 15
PB00 = 16
PB01 = 17
PB02 = 18
PB03 = 19
PB04 = 20
PB05 = 21
PB06 = 22
PB07 = 23
PB08 = 24
PB09 = 25
PB10 = 26
PB11 = 27
PB12 = 28
PB13 = 29
PB14 = 30
PB15 = 31
PC00 = 32
PC01 = 33
PC02 = 34
PC03 = 35
PC04 = 36
PC05 = 37
PC06 = 38
PC07 = 39
PC08 = 40
PC09 = 41
PC10 = 42
PC11 = 43
PC12 = 44
PC13 = 45
PC14 = 46
PC15 = 47
PD00 = 48
PD01 = 49
PD02 = 50
PD03 = 51
PD04 = 52
PD05 = 53
PD06 = 54
PD07 = 55
PD08 = 56
PD09 = 57
PD10 = 58
PD11 = 59
PD12 = 60
PD13 = 61
PD14 = 62
PD15 = 63
PE00 = 64
PE01 = 65
PE02 = 66
PE03 = 67
PE04 = 68
PE05 = 69
PE06 = 70
PE07 = 71
PE08 = 72
PE09 = 73
PE10 = 74
PE11 = 75
PE12 = 76
PE13 = 77
PE14 = 78
PE15 = 79
PF00 = 80
PF01 = 81
PF02 = 82
PF03 = 83
PF04 = 84
PF05 = 85
PF06 = 86
PF07 = 87
PF08 = 88
PF09 = 89
PF10 = 90
PF11 = 91
PF12 = 92
PF13 = 93
PF14 = 94
PF15 = 95
PG00 = 96
PG01 = 97
PG02 = 98
PG03 = 99
PG04 = 100
PG05 = 101
PG06 = 102
PG07 = 103
PG08 = 104
PG09 = 105
PG10 = 106
PG11 = 107
PG12 = 108
PG13 = 109
PG14 = 110
PG15 = 111
PH00 = 112
PH01 = 113
Implementations§
source§impl PinId
impl PinId
pub fn get_pin_number(&self) -> u8
pub fn get_port_number(&self) -> u8
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PinId
impl RefUnwindSafe for PinId
impl Send for PinId
impl Sync for PinId
impl Unpin for PinId
impl UnwindSafe for PinId
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)