[−][src]Struct lpc81x_hal::pins::PinInputs
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
Blanket Implementations
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self