[][src]Struct lpc81x_hal::pins::PinInputs

pub struct PinInputs {
    pub gpio0: Pin0<DigitalInput>,
    pub gpio1: Pin1<DigitalInput>,
    pub gpio2: Pin2<DigitalInput>,
    pub gpio3: Pin3<DigitalInput>,
    pub gpio4: Pin4<DigitalInput>,
    pub gpio5: Pin5<DigitalInput>,
    pub gpio6: Pin6<DigitalInput>,
    pub gpio7: Pin7<DigitalInput>,
    pub gpio8: Pin8<DigitalInput>,
    pub gpio9: Pin9<DigitalInput>,
    pub gpio10: Pin10<DigitalInput>,
    pub gpio11: Pin11<DigitalInput>,
    pub gpio12: Pin12<DigitalInput>,
    pub gpio13: Pin13<DigitalInput>,
    pub gpio14: Pin14<DigitalInput>,
    pub gpio15: Pin15<DigitalInput>,
    pub gpio16: Pin16<DigitalInput>,
    pub gpio17: Pin17<DigitalInput>,
}

Represents the digital input parts of each of the general-purpose I/O pins.

Because multiple input functions can coexist on a single pin, the input part of a pin is not subject to "move" behavior can can be freely shared between multiple components. This separate struct exists to ensure that the input parts can always be accessed, even if the output parts (in Pins) have been moved elsewhere.

Note that although multiple input functions can exist on a single pin, and can optionally coexist with an output function, it's the caller's responsibility to ensure that these functions make sense together. For example, assigning a UART TX and RX to the same pin is valid, but this will effectively turn that pin into a "loopback" interface, causing anything transmitted to be immediately receieved again.

Refer to the documentation of Pins for information about fixed-function pin assignments and how each pin is configured at system boot.

Fields

gpio0: Pin0<DigitalInput>

GPIO pin 0.

gpio1: Pin1<DigitalInput>

GPIO pin 1.

gpio2: Pin2<DigitalInput>

GPIO pin 2.

gpio3: Pin3<DigitalInput>

GPIO pin 3.

gpio4: Pin4<DigitalInput>

GPIO pin 4.

gpio5: Pin5<DigitalInput>

GPIO pin 5. External reset by default.

This pin is initially configured as an external reset signal, in which case driving the pin low will cause a system reset regardless of what other functions might simultaneously be assigned to the pin. This reset behavior is activated by default at boot, but can be disabled by deactivating the external reset via the Parts struct.

gpio6: Pin6<DigitalInput>

GPIO pin 6.

gpio7: Pin7<DigitalInput>

GPIO pin 7.

gpio8: Pin8<DigitalInput>

GPIO pin 8.

gpio9: Pin9<DigitalInput>

GPIO pin 9.

gpio10: Pin10<DigitalInput>

GPIO pin 10.

gpio11: Pin11<DigitalInput>

GPIO pin 11.

gpio12: Pin12<DigitalInput>

GPIO pin 12.

gpio13: Pin13<DigitalInput>

GPIO pin 13.

gpio14: Pin14<DigitalInput>

GPIO pin 14.

gpio15: Pin15<DigitalInput>

GPIO pin 15.

gpio16: Pin16<DigitalInput>

GPIO pin 16.

gpio17: Pin17<DigitalInput>

GPIO pin 17.

Auto Trait Implementations

impl Unpin for PinInputs

impl Send for PinInputs

impl !Sync for PinInputs

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self