[][src]Struct wio_terminal::ButtonPins

pub struct ButtonPins {
    pub button1: Pc26<Input<Floating>>,
    pub button2: Pc27<Input<Floating>>,
    pub button3: Pc28<Input<Floating>>,
    pub switch_x: Pd8<Input<Floating>>,
    pub switch_y: Pd9<Input<Floating>>,
    pub switch_z: Pd10<Input<Floating>>,
    pub switch_u: Pd20<Input<Floating>>,
    pub switch_b: Pd12<Input<Floating>>,
}

pushbuttons and joystick

Fields

button1: Pc26<Input<Floating>>

button1 pin

button2: Pc27<Input<Floating>>

button2 pin

button3: Pc28<Input<Floating>>

button3 pin

switch_x: Pd8<Input<Floating>>

Joystick X

switch_y: Pd9<Input<Floating>>

Joystick Y

switch_z: Pd10<Input<Floating>>

Joystick Z

switch_u: Pd20<Input<Floating>>

Joystick U

switch_b: Pd12<Input<Floating>>

Joystick B

Implementations

impl ButtonPins[src]

pub fn init(
    self,
    eic: EIC,
    clocks: &mut GenericClockController,
    mclk: &mut MCLK,
    port: &mut Port
) -> ButtonController
[src]

Auto Trait Implementations

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> Same<T> for T

type Output = T

Should always be Self

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.