[−][src]Struct lpc81x_hal::pins::Pins
Represents the unassigned pins available for assignment at system reset.
Move these objects elsewhere to configure the microcontroller's internal switch matrix, routing each pin to an appropriate internal peripheral.
Note that GPIO pin 3 is not included because at system boot it has been
assigned to the serial wire debug (SWD) function SWDIO. To assign another
function to that pin, you must deactivate the SWD peripheral (via the
main Parts
object) to obtain the movable pin object for gpio3.
Fields
gpio0: Pin0<Unassigned>
GPIO pin 0. At boot, this pin is in a high-impedance state with no attached input devices.
The fixed-pin function ACMP_I1 can be activated on this pin only. Activating ACMP_I2 will cause all digital input functions on this pin to read consistently low.
The in-system programming (ISP) mode assigns serial RX function to this pin when ISP mode is active.
gpio1: Pin1<Unassigned>
GPIO pin 1. At boot, this pin is in a high-impedance state with no attached input devices.
The fixed-pin functions ACMP_I2 and CLKIN can be activated on this pin only. Activating ACMP_I2 will cause all digital input functions on this pin to read consistently low.
On an LPC810 (DIP8 package) this pin is sampled on startup by the bootloader to conditionally enter in-system programming (ISP) mode. Ensure that any other function assigned to this pin will not cause it to be pulled low at reset unless entry into ISP mode is desired, or activate ISP entry protection.
gpio2: Pin2<Unassigned>
GPIO pin 2. At boot, this pin is in a high-impedance state but is connected to the SWCLK signal of the serial wire debug interface.
The SWCLK signal is a fixed-pin function that can be activated on this pin only.
Assigning other functions to this pin with the SWCLK function connected is valid, but the operation of those other functions may conflict with the operation of the SWD interface. To avoid such conflicts, deactivate the debug interface.
gpio4: Pin4<Unassigned>
GPIO pin 4. At boot, this pin is in a high-impedance state with no attached input devices.
The in-system programming (ISP) mode assigns serial TX function to this pin when ISP mode is active.
gpio5: Pin5<Unassigned>
GPIO pin 5. At boot, this pin is in a high-impedance state with no attached input devices.
The external reset signal can be activated on this pin only.
gpio6: Pin6<Unassigned>
GPIO pin 6. At boot, this pin is in a high-impedance state with no attached input devices.
The fixed-pin function VDDCMP can be activated on this pin only. Activating VDDCMP will cause all digital input functions on this pin to read consistently low.
gpio7: Pin7<Unassigned>
GPIO pin 7. At boot, this pin is in a high-impedance state with no attached input devices.
gpio8: Pin8<Unassigned>
GPIO pin 8. At boot, this pin is in a high-impedance state with no attached input devices.
The fixed-pin function XTALIN can be activated on this pin only.
gpio9: Pin9<Unassigned>
GPIO pin 9. At boot, this pin is in a high-impedance state with no attached input devices.
The fixed-pin function XTALOUT can be activated on this pin only.
gpio10: Pin10<Unassigned>
GPIO pin 10. At boot, this pin is in a high-impedance state with no attached input devices.
Although I2C0_SCK can be assigned to any pin, it is open-drain only when assigned to GPIO pin 10. It can be configured as true open-drain even if the I2C function is not assigned.
This pin does not have a programmable pull-up resistor.
gpio11: Pin11<Unassigned>
GPIO pin 11. At boot, this pin is in a high-impedance state with no attached input devices.
Although I2C0_SDA can be assigned to any pin, it is open-drain only when assigned to GPIO pin 11. It can be configured as true open-drain even if the I2C function is not assigned.
This pin does not have a programmable pull-up resistor.
gpio12: Pin12<Unassigned>
GPIO pin 12. At boot, this pin is in a high-impedance state with no attached input devices.
On LPC811 and LPC812 models this pin is sampled on startup by the bootloader to conditionally enter in-system programming (ISP) mode. Ensure that any other function assigned to this pin will not cause it to be pulled low at reset unless entry into ISP mode is desired, or activate ISP entry protection.
gpio13: Pin13<Unassigned>
GPIO pin 13. At boot, this pin is in a high-impedance state with no attached input devices.
gpio14: Pin14<Unassigned>
GPIO pin 14. At boot, this pin is in a high-impedance state with no attached input devices.
gpio15: Pin15<Unassigned>
GPIO pin 15. At boot, this pin is in a high-impedance state with no attached input devices.
gpio16: Pin16<Unassigned>
GPIO pin 16. At boot, this pin is in a high-impedance state with no attached input devices.
gpio17: Pin17<Unassigned>
GPIO pin 17. At boot, this pin is in a high-impedance state with no attached input devices.
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