picolibrary-microchip-megaavr0

GPIO Facilities

Microchip megaAVR 0-series GPIO facilities are defined in the include/picolibrary/microchip/megaavr0/gpio.h/source/picolibrary/microchip/megaavr0/gpio.cc header/source file pair.

Table of Contents

  1. Pin
  2. Input Pin
  3. Internally Pulled-Up Input Pin
  4. Open-Drain I/O Pin
  5. Push-Pull I/O Pin

Pin

::picolibrary::Microchip::megaAVR0::GPIO::Pin template class specializations provide a mostly common interface for interacting with a Microchip megaAVR 0-series microcontroller pin using either a PORT peripheral or a VPORT peripheral. The ::picolibrary::Microchip::megaAVR0::GPIO::Pin<::picolibrary::Microchip::megaAVR0::Peripheral::PORT> specialization implements this interface using a PORT peripheral. The ::picolibrary::Microchip::megaAVR0::GPIO::Pin<::picolibrary::Microchip::megaAVR0::Peripheral::VPORT> specialization implements this interface using a VPORT peripheral.

Input Pin

The ::picolibrary::Microchip::megaAVR0::GPIO::Input_Pin template class implements a GPIO input pin interface for interacting with a Microchip megaAVR 0-series microcontroller pin. See the ::picolibrary::GPIO::Input_Pin_Concept documentation for more information. The ::picolibrary::Microchip::megaAVR0::GPIO::Input_Pin state interactive test is defined in the test/interactive/picolibrary/microchip/megaavr0/gpio/input_pin/state/main.cc source file.

Internally Pulled-Up Input Pin

The ::picolibrary::Microchip::megaAVR0::GPIO::Internally_Pulled_Up_Input_Pin template class implements a GPIO internally pulled-up input pin interface for interacting with a Microchip megaAVR 0-series microcontroller pin. See the ::picolibrary::GPIO::Internally_Pulled_Up_Input_Pin_Concept documentation for more information. The ::picolibrary::Microchip::megaAVR0::GPIO::Internally_Pulled_Up_Input_Pin state interactive test is defined in the test/interactive/picolibrary/microchip/megaavr0/gpio/internally_pulled_up_input_pin/state/main.cc source file.

Open-Drain I/O Pin

The ::picolibrary::Microchip::megaAVR0::GPIO::Open_Drain_IO_Pin template class implements a GPIO open-drain I/O pin interface for interacting with a Microchip megaAVR 0-series microcontroller pin. See the ::picolibrary::GPIO::IO_Pin_Concept documentation for more information. The ::picolibrary::Microchip::megaAVR0::GPIO::Open_Drain_IO_Pin toggle interactive test is defined in the test/interactive/picolibrary/microchip/megaavr0/gpio/open_drain_io_pin/toggle/main.cc source file.

Push-Pull I/O Pin

The ::picolibrary::Microchip::megaAVR0::GPIO::Push_Pull_IO_Pin template class implements a GPIO push-pull I/O pin interface for interacting with a Microchip megaAVR 0-series microcontroller pin. See the ::picolibrary::GPIO::IO_Pin_Concept documentation for more information. The ::picolibrary::Microchip::megaAVR0::GPIO::Push_Pull_IO_Pin toggle interactive test is defined in the test/interactive/picolibrary/microchip/megaavr0/gpio/push_pull_io_pin/toggle/main.cc source file.