Struct hal::mock::output_pin
ClassList > hal > mock > output_pin
mock output pin for use in unit tests and simulations
#include <output_pin.hpp>
Inherits the following classes: hal::output_pin
Public Attributes
Type | Name |
---|---|
spy_handler< settings > | spy_configure Spy handler for hal::output_pin::configure() __ |
spy_handler< level_t > | spy_level Spy handler for hal::output_pin::level() __ |
Public Functions
Type | Name |
---|---|
void | reset () Reset spy information for configure() andlevel() __ |
Public Functions inherited from hal::output_pin
See hal::output_pin
Type | Name |
---|---|
status | configure (const settings & p_settings) Configure the output pin to match the settings supplied. |
result< set_level_t > | level (bool p_high) Set the state of the pin. |
result< level_t > | level () Read the current state of the output pin. |
virtual | ~output_pin () = default |
Public Attributes Documentation
variable spy_configure
spy_handler<settings> hal::mock::output_pin::spy_configure;
variable spy_level
spy_handler<level_t> hal::mock::output_pin::spy_level;
Public Functions Documentation
function reset
inline void hal::mock::output_pin::reset ()
The documentation for this class was generated from the following file libraries/include/libhal-mock/output_pin.hpp