ELEC-C7222
Libraries for ELEC C7222 Course Work
Loading...
Searching...
No Matches
button.hpp File Reference

Input-only GPIO abstraction for push-buttons. More...

#include <cstdint>
#include "gpio.hpp"
Include dependency graph for button.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  c7222::Button
 Input-only GPIO wrapper intended for push-buttons. More...
 

Namespaces

namespace  c7222
 C7222 course abstractions namespace.
 

Detailed Description

Input-only GPIO abstraction for push-buttons.

The Button class wraps a GPIO pin configured as input with pull-up/down and provides a small, button-friendly API. It intentionally keeps the interface focused: construct, read state, and optionally use the base GpioIn IRQ facilities if needed.