Skip to content

Class hal::lpc40::interrupt_pin

ClassList > hal > lpc40 > interrupt_pin

Interrupt pin implementation for the lpc40xx.

  • #include <interrupt_pin.hpp>

Inherits the following classes: hal::interrupt_pin

Public Types inherited from hal::interrupt_pin

See hal::interrupt_pin

Type Name
typedef void(bool p_state) handler
Interrupt pin handler.
enum trigger_edge
The condition in which an interrupt it's triggered.

Public Functions

Type Name
interrupt_pin (interrupt_pin & p_other) = delete
interrupt_pin (interrupt_pin && p_other) noexcept
interrupt_pin & operator= (interrupt_pin & p_other) = delete
interrupt_pin & operator= (interrupt_pin && p_other) noexcept
virtual ~interrupt_pin ()

Public Functions inherited from hal::interrupt_pin

See hal::interrupt_pin

Type Name
status configure (const settings & p_settings)
Configure the interrupt pin to match the settings supplied.
void on_trigger (hal::callback< handler > p_callback)
Set the callback for when the interrupt occurs.
virtual ~interrupt_pin () = default

Public Static Functions

Type Name
result< interrupt_pin > get (std::uint8_t port, std::uint8_t pin, settings p_settings={})
Get the interrupt pin object.

Public Functions Documentation

function interrupt_pin [1/3]

hal::lpc40::interrupt_pin::interrupt_pin (
    interrupt_pin & p_other
) = delete

function interrupt_pin [2/3]

hal::lpc40::interrupt_pin::interrupt_pin (
    interrupt_pin && p_other
) noexcept

function operator=

interrupt_pin & hal::lpc40::interrupt_pin::operator= (
    interrupt_pin & p_other
) = delete

function operator=

interrupt_pin & hal::lpc40::interrupt_pin::operator= (
    interrupt_pin && p_other
) noexcept

function ~interrupt_pin

virtual hal::lpc40::interrupt_pin::~interrupt_pin () 

Implements hal::interrupt_pin::~interrupt_pin

Public Static Functions Documentation

function get

Get the interrupt pin object.

static result< interrupt_pin > hal::lpc40::interrupt_pin::get (
    std::uint8_t port,
    std::uint8_t pin,
    settings p_settings={}
) 

Parameters:

  • port - selects pin port to use
  • pin - selects pin within the port to use
  • p_settings - initial pin settings

Returns:

result<interrupt_pin> - interrupt pin driver object


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