Buttons¶
API for interfacing with physical buttons
Functions
Get a reference to a button.
- Return
A handle for the button
- Parameters
label
: The DeviceTree label for the button
Get the interrupt controller for a button.
- Return
A pointer to the interrupt controller responsible for handling button interrupts.
- Parameters
button
: The handle for the button
Get the interrupt id for a button.
- Return
The interrupt id corresponding to a button.
- Parameters
button
: The handle for the button
- #include <button.h>
A button device handle.
A
struct metal_button
is an implementation-defined object which represents a button on a development board.