k210_soc::fpioa

Enum io

Source
pub enum io {
Show 48 variants JTAG_TCK = 0, JTAG_TDI = 1, JTAG_TMS = 2, JTAG_TDO = 3, ISP_RX = 4, ISP_TX = 5, WIFI_TX = 6, WIFI_RX = 7, WIFI_EN = 8, BPSK_P = 9, BPSK_N = 10, IO11 = 11, LED_B = 12, LED_G = 13, LED_R = 14, KEY1 = 15, BOOT_KEY0 = 16, KEY2 = 17, MIC_BCK = 18, MIC_WS = 19, MIC_DAT3 = 20, MIC_DAT2 = 21, MIC_DAT1 = 22, MIC_DAT0 = 23, MIC_LED_DAT = 24, MIC_LED_CLK = 25, SPI0_MISO = 26, SPI0_SCLK = 27, SPI0_MOSI = 28, SPI0_CS0 = 29, I2C1_SCL = 30, I2C1_SDA = 31, IO32 = 32, I2S_WS = 33, I2S_DA = 34, I2S_BCK = 35, LCD_CS = 36, LCD_RST = 37, LCD_DC = 38, LCD_WR = 39, DVP_SDA = 40, DVP_SCL = 41, DVP_RST = 42, DVP_VSYNC = 43, DVP_PWDN = 44, DVP_HSYNC = 45, DVP_XCLK = 46, DVP_PCLK = 47,
}
Expand description

I/O pins for FPIOA

Variants§

§

JTAG_TCK = 0

JTAG TCK

§

JTAG_TDI = 1

JTAG TDI

§

JTAG_TMS = 2

JTAG TMS

§

JTAG_TDO = 3

JTAG TDO

§

ISP_RX = 4

Host RX (from STM32F103C8)

§

ISP_TX = 5

Host TX (to STM32F103C8)

§

WIFI_TX = 6

WIFI serial TX (from perspective of ESP8285, so our RX)

§

WIFI_RX = 7

WIFI serial RX (from perspective of ESP8285, so our TX)

§

WIFI_EN = 8

WIFI enable (to ESP8285)

§

BPSK_P = 9

Unused

§

BPSK_N = 10

Unused

§

IO11 = 11

General purpose I/O pin

§

LED_B = 12

Blue led (output)

§

LED_G = 13

Green led (output)

§

LED_R = 14

Red led (output)

§

KEY1 = 15

Key direction 1 press (input)

§

BOOT_KEY0 = 16

Key center press (input)

§

KEY2 = 17

Key direction 2 press (input)

§

MIC_BCK = 18

Microphone I2S BCK

§

MIC_WS = 19

Microphone I2S WS

§

MIC_DAT3 = 20

Microphone I2S DAT3

§

MIC_DAT2 = 21

Microphone I2S DAT2

§

MIC_DAT1 = 22

Microphone I2S DAT1

§

MIC_DAT0 = 23

Microphone I2S DAT0

§

MIC_LED_DAT = 24

Microphone LED DAT

§

MIC_LED_CLK = 25

Microphone LED CLK

§

SPI0_MISO = 26

SDCARD SPI MISO

§

SPI0_SCLK = 27

SDCARD SPI SCLK

§

SPI0_MOSI = 28

SDCARD SPI MOSI

§

SPI0_CS0 = 29

SDCARD SPI CS

§

I2C1_SCL = 30

I2C bus 1 SCLK (NS2009, MSA300)

§

I2C1_SDA = 31

I2C bus 2 SDA (NS2009, MSA300)

§

IO32 = 32

General purpose I/O pin

§

I2S_WS = 33

DAC I2S WS

§

I2S_DA = 34

DAC I2S DA

§

I2S_BCK = 35

DAC I2S BCK

§

LCD_CS = 36

LCD chip select (output)

§

LCD_RST = 37

LCD reset (output)

§

LCD_DC = 38

LCD Data/Command

§

LCD_WR = 39

LCD SPI SCLK

§

DVP_SDA = 40

Camera DVP SDA

§

DVP_SCL = 41

Camera DVP SCL

§

DVP_RST = 42

Camera DVP RST

§

DVP_VSYNC = 43

Camera DVP VSYNC

§

DVP_PWDN = 44

Camera DVP PWDN

§

DVP_HSYNC = 45

Camera DVP HSYNC

§

DVP_XCLK = 46

Camera DVP XCLK

§

DVP_PCLK = 47

Camera DVP PCLK

Trait Implementations§

Source§

impl Clone for io

Source§

fn clone(&self) -> io

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl From<io> for usize

Source§

fn from(io: io) -> Self

Converts to this type from the input type.
Source§

impl Copy for io

Auto Trait Implementations§

§

impl Freeze for io

§

impl RefUnwindSafe for io

§

impl Send for io

§

impl Sync for io

§

impl Unpin for io

§

impl UnwindSafe for io

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, dst: *mut u8)

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