Skip to content

Class hal::lpc40::input_pin

ClassList > hal > lpc40 > input_pin

Input pin implementation for the lpc40xx.

  • #include <input_pin.hpp>

Inherits the following classes: hal::input_pin

Public Functions inherited from hal::input_pin

See hal::input_pin

Type Name
status configure (const settings & p_settings)
Configure the input pin to match the settings supplied.
result< level_t > level ()
Read the state of the input pin.
virtual ~input_pin () = default

Public Static Functions

Type Name
result< input_pin > get (std::uint8_t p_port, std::uint8_t p_pin, input_pin::settings p_settings={})
Get the input pin object.

Public Static Functions Documentation

function get

Get the input pin object.

static result< input_pin > hal::lpc40::input_pin::get (
    std::uint8_t p_port,
    std::uint8_t p_pin,
    input_pin::settings p_settings={}
) 

Parameters:

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

Returns:

result<input_pin> - reference to a statically allocated input pin


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