# function in k210_soc::fpioa - Rust
API documentation for the Rust `function` enum in crate `k210_soc`.
Keywords: rust, rustlang, rust-lang, function

# Enum k210_soc::fpioa::function

source · [−]

    pub enum function {
    Show 256 variants    JTAG_TCLK,
        JTAG_TDI,
        JTAG_TMS,
        JTAG_TDO,
        SPI0_D0,
        SPI0_D1,
        SPI0_D2,
        SPI0_D3,
        SPI0_D4,
        SPI0_D5,
        SPI0_D6,
        SPI0_D7,
        SPI0_SS0,
        SPI0_SS1,
        SPI0_SS2,
        SPI0_SS3,
        SPI0_ARB,
        SPI0_SCLK,
        UARTHS_RX,
        UARTHS_TX,
        RESV6,
        RESV7,
        CLK_SPI1,
        CLK_I2C1,
        GPIOHS0,
        GPIOHS1,
        GPIOHS2,
        GPIOHS3,
        GPIOHS4,
        GPIOHS5,
        GPIOHS6,
        GPIOHS7,
        GPIOHS8,
        GPIOHS9,
        GPIOHS10,
        GPIOHS11,
        GPIOHS12,
        GPIOHS13,
        GPIOHS14,
        GPIOHS15,
        GPIOHS16,
        GPIOHS17,
        GPIOHS18,
        GPIOHS19,
        GPIOHS20,
        GPIOHS21,
        GPIOHS22,
        GPIOHS23,
        GPIOHS24,
        GPIOHS25,
        GPIOHS26,
        GPIOHS27,
        GPIOHS28,
        GPIOHS29,
        GPIOHS30,
        GPIOHS31,
        GPIO0,
        GPIO1,
        GPIO2,
        GPIO3,
        GPIO4,
        GPIO5,
        GPIO6,
        GPIO7,
        UART1_RX,
        UART1_TX,
        UART2_RX,
        UART2_TX,
        UART3_RX,
        UART3_TX,
        SPI1_D0,
        SPI1_D1,
        SPI1_D2,
        SPI1_D3,
        SPI1_D4,
        SPI1_D5,
        SPI1_D6,
        SPI1_D7,
        SPI1_SS0,
        SPI1_SS1,
        SPI1_SS2,
        SPI1_SS3,
        SPI1_ARB,
        SPI1_SCLK,
        SPI_SLAVE_D0,
        SPI_SLAVE_SS,
        SPI_SLAVE_SCLK,
        I2S0_MCLK,
        I2S0_SCLK,
        I2S0_WS,
        I2S0_IN_D0,
        I2S0_IN_D1,
        I2S0_IN_D2,
        I2S0_IN_D3,
        I2S0_OUT_D0,
        I2S0_OUT_D1,
        I2S0_OUT_D2,
        I2S0_OUT_D3,
        I2S1_MCLK,
        I2S1_SCLK,
        I2S1_WS,
        I2S1_IN_D0,
        I2S1_IN_D1,
        I2S1_IN_D2,
        I2S1_IN_D3,
        I2S1_OUT_D0,
        I2S1_OUT_D1,
        I2S1_OUT_D2,
        I2S1_OUT_D3,
        I2S2_MCLK,
        I2S2_SCLK,
        I2S2_WS,
        I2S2_IN_D0,
        I2S2_IN_D1,
        I2S2_IN_D2,
        I2S2_IN_D3,
        I2S2_OUT_D0,
        I2S2_OUT_D1,
        I2S2_OUT_D2,
        I2S2_OUT_D3,
        RESV0,
        RESV1,
        RESV2,
        RESV3,
        RESV4,
        RESV5,
        I2C0_SCLK,
        I2C0_SDA,
        I2C1_SCLK,
        I2C1_SDA,
        I2C2_SCLK,
        I2C2_SDA,
        CMOS_XCLK,
        CMOS_RST,
        CMOS_PWDN,
        CMOS_VSYNC,
        CMOS_HREF,
        CMOS_PCLK,
        CMOS_D0,
        CMOS_D1,
        CMOS_D2,
        CMOS_D3,
        CMOS_D4,
        CMOS_D5,
        CMOS_D6,
        CMOS_D7,
        SCCB_SCLK,
        SCCB_SDA,
        UART1_CTS,
        UART1_DSR,
        UART1_DCD,
        UART1_RI,
        UART1_SIR_IN,
        UART1_DTR,
        UART1_RTS,
        UART1_OUT2,
        UART1_OUT1,
        UART1_SIR_OUT,
        UART1_BAUD,
        UART1_RE,
        UART1_DE,
        UART1_RS485_EN,
        UART2_CTS,
        UART2_DSR,
        UART2_DCD,
        UART2_RI,
        UART2_SIR_IN,
        UART2_DTR,
        UART2_RTS,
        UART2_OUT2,
        UART2_OUT1,
        UART2_SIR_OUT,
        UART2_BAUD,
        UART2_RE,
        UART2_DE,
        UART2_RS485_EN,
        UART3_CTS,
        UART3_DSR,
        UART3_DCD,
        UART3_RI,
        UART3_SIR_IN,
        UART3_DTR,
        UART3_RTS,
        UART3_OUT2,
        UART3_OUT1,
        UART3_SIR_OUT,
        UART3_BAUD,
        UART3_RE,
        UART3_DE,
        UART3_RS485_EN,
        TIMER0_TOGGLE1,
        TIMER0_TOGGLE2,
        TIMER0_TOGGLE3,
        TIMER0_TOGGLE4,
        TIMER1_TOGGLE1,
        TIMER1_TOGGLE2,
        TIMER1_TOGGLE3,
        TIMER1_TOGGLE4,
        TIMER2_TOGGLE1,
        TIMER2_TOGGLE2,
        TIMER2_TOGGLE3,
        TIMER2_TOGGLE4,
        CLK_SPI2,
        CLK_I2C2,
        INTERNAL0,
        INTERNAL1,
        INTERNAL2,
        INTERNAL3,
        INTERNAL4,
        INTERNAL5,
        INTERNAL6,
        INTERNAL7,
        INTERNAL8,
        INTERNAL9,
        INTERNAL10,
        INTERNAL11,
        INTERNAL12,
        INTERNAL13,
        INTERNAL14,
        INTERNAL15,
        INTERNAL16,
        INTERNAL17,
        CONSTANT,
        INTERNAL18,
        DEBUG0,
        DEBUG1,
        DEBUG2,
        DEBUG3,
        DEBUG4,
        DEBUG5,
        DEBUG6,
        DEBUG7,
        DEBUG8,
        DEBUG9,
        DEBUG10,
        DEBUG11,
        DEBUG12,
        DEBUG13,
        DEBUG14,
        DEBUG15,
        DEBUG16,
        DEBUG17,
        DEBUG18,
        DEBUG19,
        DEBUG20,
        DEBUG21,
        DEBUG22,
        DEBUG23,
        DEBUG24,
        DEBUG25,
        DEBUG26,
        DEBUG27,
        DEBUG28,
        DEBUG29,
        DEBUG30,
        DEBUG31,
    }

## Variants

### `JTAG_TCLK`

### `JTAG_TDI`

### `JTAG_TMS`

### `JTAG_TDO`

### `SPI0_D0`

### `SPI0_D1`

### `SPI0_D2`

### `SPI0_D3`

### `SPI0_D4`

### `SPI0_D5`

### `SPI0_D6`

### `SPI0_D7`

### `SPI0_SS0`

### `SPI0_SS1`

### `SPI0_SS2`

### `SPI0_SS3`

### `SPI0_ARB`

### `SPI0_SCLK`

### `UARTHS_RX`

### `UARTHS_TX`

### `RESV6`

### `RESV7`

### `CLK_SPI1`

### `CLK_I2C1`

### `GPIOHS0`

### `GPIOHS1`

### `GPIOHS2`

### `GPIOHS3`

### `GPIOHS4`

### `GPIOHS5`

### `GPIOHS6`

### `GPIOHS7`

### `GPIOHS8`

### `GPIOHS9`

### `GPIOHS10`

### `GPIOHS11`

### `GPIOHS12`

### `GPIOHS13`

### `GPIOHS14`

### `GPIOHS15`

### `GPIOHS16`

### `GPIOHS17`

### `GPIOHS18`

### `GPIOHS19`

### `GPIOHS20`

### `GPIOHS21`

### `GPIOHS22`

### `GPIOHS23`

### `GPIOHS24`

### `GPIOHS25`

### `GPIOHS26`

### `GPIOHS27`

### `GPIOHS28`

### `GPIOHS29`

### `GPIOHS30`

### `GPIOHS31`

### `GPIO0`

### `GPIO1`

### `GPIO2`

### `GPIO3`

### `GPIO4`

### `GPIO5`

### `GPIO6`

### `GPIO7`

### `UART1_RX`

### `UART1_TX`

### `UART2_RX`

### `UART2_TX`

### `UART3_RX`

### `UART3_TX`

### `SPI1_D0`

### `SPI1_D1`

### `SPI1_D2`

### `SPI1_D3`

### `SPI1_D4`

### `SPI1_D5`

### `SPI1_D6`

### `SPI1_D7`

### `SPI1_SS0`

### `SPI1_SS1`

### `SPI1_SS2`

### `SPI1_SS3`

### `SPI1_ARB`

### `SPI1_SCLK`

### `SPI_SLAVE_D0`

### `SPI_SLAVE_SS`

### `SPI_SLAVE_SCLK`

### `I2S0_MCLK`

### `I2S0_SCLK`

### `I2S0_WS`

### `I2S0_IN_D0`

### `I2S0_IN_D1`

### `I2S0_IN_D2`

### `I2S0_IN_D3`

### `I2S0_OUT_D0`

### `I2S0_OUT_D1`

### `I2S0_OUT_D2`

### `I2S0_OUT_D3`

### `I2S1_MCLK`

### `I2S1_SCLK`

### `I2S1_WS`

### `I2S1_IN_D0`

### `I2S1_IN_D1`

### `I2S1_IN_D2`

### `I2S1_IN_D3`

### `I2S1_OUT_D0`

### `I2S1_OUT_D1`

### `I2S1_OUT_D2`

### `I2S1_OUT_D3`

### `I2S2_MCLK`

### `I2S2_SCLK`

### `I2S2_WS`

### `I2S2_IN_D0`

### `I2S2_IN_D1`

### `I2S2_IN_D2`

### `I2S2_IN_D3`

### `I2S2_OUT_D0`

### `I2S2_OUT_D1`

### `I2S2_OUT_D2`

### `I2S2_OUT_D3`

### `RESV0`

### `RESV1`

### `RESV2`

### `RESV3`

### `RESV4`

### `RESV5`

### `I2C0_SCLK`

### `I2C0_SDA`

### `I2C1_SCLK`

### `I2C1_SDA`

### `I2C2_SCLK`

### `I2C2_SDA`

### `CMOS_XCLK`

### `CMOS_RST`

### `CMOS_PWDN`

### `CMOS_VSYNC`

### `CMOS_HREF`

### `CMOS_PCLK`

### `CMOS_D0`

### `CMOS_D1`

### `CMOS_D2`

### `CMOS_D3`

### `CMOS_D4`

### `CMOS_D5`

### `CMOS_D6`

### `CMOS_D7`

### `SCCB_SCLK`

### `SCCB_SDA`

### `UART1_CTS`

### `UART1_DSR`

### `UART1_DCD`

### `UART1_RI`

### `UART1_SIR_IN`

### `UART1_DTR`

### `UART1_RTS`

### `UART1_OUT2`

### `UART1_OUT1`

### `UART1_SIR_OUT`

### `UART1_BAUD`

### `UART1_RE`

### `UART1_DE`

### `UART1_RS485_EN`

### `UART2_CTS`

### `UART2_DSR`

### `UART2_DCD`

### `UART2_RI`

### `UART2_SIR_IN`

### `UART2_DTR`

### `UART2_RTS`

### `UART2_OUT2`

### `UART2_OUT1`

### `UART2_SIR_OUT`

### `UART2_BAUD`

### `UART2_RE`

### `UART2_DE`

### `UART2_RS485_EN`

### `UART3_CTS`

### `UART3_DSR`

### `UART3_DCD`

### `UART3_RI`

### `UART3_SIR_IN`

### `UART3_DTR`

### `UART3_RTS`

### `UART3_OUT2`

### `UART3_OUT1`

### `UART3_SIR_OUT`

### `UART3_BAUD`

### `UART3_RE`

### `UART3_DE`

### `UART3_RS485_EN`

### `TIMER0_TOGGLE1`

### `TIMER0_TOGGLE2`

### `TIMER0_TOGGLE3`

### `TIMER0_TOGGLE4`

### `TIMER1_TOGGLE1`

### `TIMER1_TOGGLE2`

### `TIMER1_TOGGLE3`

### `TIMER1_TOGGLE4`

### `TIMER2_TOGGLE1`

### `TIMER2_TOGGLE2`

### `TIMER2_TOGGLE3`

### `TIMER2_TOGGLE4`

### `CLK_SPI2`

### `CLK_I2C2`

### `INTERNAL0`

### `INTERNAL1`

### `INTERNAL2`

### `INTERNAL3`

### `INTERNAL4`

### `INTERNAL5`

### `INTERNAL6`

### `INTERNAL7`

### `INTERNAL8`

### `INTERNAL9`

### `INTERNAL10`

### `INTERNAL11`

### `INTERNAL12`

### `INTERNAL13`

### `INTERNAL14`

### `INTERNAL15`

### `INTERNAL16`

### `INTERNAL17`

### `CONSTANT`

### `INTERNAL18`

### `DEBUG0`

### `DEBUG1`

### `DEBUG2`

### `DEBUG3`

### `DEBUG4`

### `DEBUG5`

### `DEBUG6`

### `DEBUG7`

### `DEBUG8`

### `DEBUG9`

### `DEBUG10`

### `DEBUG11`

### `DEBUG12`

### `DEBUG13`

### `DEBUG14`

### `DEBUG15`

### `DEBUG16`

### `DEBUG17`

### `DEBUG18`

### `DEBUG19`

### `DEBUG20`

### `DEBUG21`

### `DEBUG22`

### `DEBUG23`

### `DEBUG24`

### `DEBUG25`

### `DEBUG26`

### `DEBUG27`

### `DEBUG28`

### `DEBUG29`

### `DEBUG30`

### `DEBUG31`

## Implementations

source

### impl function

source

#### pub fn gpiohs(num: u8) -> function

GPIOHS pin to function

## Trait Implementations

source

### impl Clone for function

source

#### fn clone(&self) -> function

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 Copy for function

## Auto Trait Implementations

### impl RefUnwindSafe for function

### impl Send for function

### impl Sync for function

### impl Unpin for function

### impl UnwindSafe for function

## 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,

const: unstable · source

#### fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

source

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

const: unstable · source

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

Mutably borrows from an owned value. Read more

source

### impl<T> From<T> for T

const: unstable · source

#### fn from(t: T) -> T

Returns the argument unchanged.

source

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

const: unstable · 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>,

#### type Error = Infallible

The type returned in the event of a conversion error.

const: unstable · 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>,

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

The type returned in the event of a conversion error.

const: unstable · source

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

Performs the conversion.