Skip to content

Struct hal::interrupt_pin::settings

ClassList > hal > interrupt_pin > settings

Generic settings for interrupt pins.

  • #include <interrupt_pin.hpp>

Public Attributes

Type Name
pin_resistor resistor = = pin_resistor::pull_up
Pull resistor for an interrupt pin.
trigger_edge trigger = = trigger_edge::rising
The trigger condition that will signal the system to run the callback.

Public Attributes Documentation

variable resistor

Pull resistor for an interrupt pin.

pin_resistor hal::interrupt_pin::settings::resistor;

In general, it is highly advised to either set the pull resistor to something other than "none" or to attach an external pull up resistor to the interrupt pin in order to prevent random interrupt from firing.

variable trigger

trigger_edge hal::interrupt_pin::settings::trigger;

The documentation for this class was generated from the following file libraries/include/libhal/interrupt_pin.hpp