[][src]Struct cntrlr::hw::mcu::sifive::peripheral::gpio::Pin

pub struct Pin<'a, M, const N: usize, const P: usize> { /* fields omitted */ }

A single pin from a GPIO instance.

Implementations

impl<M, const N: usize, const P: usize> Pin<'_, M, N, P>[src]

pub fn into_gpio(self) -> GpioPin<Self>[src]

Use this pin as a GPIO

impl Pin<'_, Fe310G002, 0, 16>[src]

pub fn into_uart_rx(self) -> UartRx<Self>[src]

Use this pin as a UART recieve pin

impl Pin<'_, Fe310G002, 0, 17>[src]

pub fn into_uart_tx(self) -> UartTx<Self>[src]

Use this pin as a UART transmit pin

impl Pin<'_, Fe310G002, 0, 18>[src]

pub fn into_uart_tx(self) -> UartTx<Self>[src]

Use this pin as a UART transmit pin

impl Pin<'_, Fe310G002, 0, 23>[src]

pub fn into_uart_rx(self) -> UartRx<Self>[src]

Use this pin as a UART recieve pin

Trait Implementations

impl<M, const N: usize, const P: usize> Drop for Pin<'_, M, N, P>[src]

Auto Trait Implementations

impl<'a, M, const N: usize, const P: usize> Send for Pin<'a, M, N, P> where
    M: Sync
[src]

impl<'a, M, const N: usize, const P: usize> Sync for Pin<'a, M, N, P> where
    M: Sync
[src]

impl<'a, M, const N: usize, const P: usize> Unpin for Pin<'a, M, N, P>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.