Skip to content

Struct hal::mock::input_pin

ClassList > hal > mock > input_pin

mock input_pin implementation for use in unit tests and simulations.

  • #include <input_pin.hpp>

Inherits the following classes: hal::input_pin

Public Attributes

Type Name
spy_handler< settings > spy_configure
Spy handler for embed:input_pin:: configure() __

Public Functions

Type Name
void reset ()
Reset spy information for configure() __
void set (std::queue< level_t > & p_levels)
Queues the active levels to be returned for levels()

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 Attributes Documentation

variable spy_configure

spy_handler<settings> hal::mock::input_pin::spy_configure;

Public Functions Documentation

function reset

inline void hal::mock::input_pin::reset () 

function set

Queues the active levels to be returned for levels()

inline void hal::mock::input_pin::set (
    std::queue< level_t > & p_levels
) 

Parameters:

  • p_levels - queue of actives levels

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