Struct hal::mock::interrupt_pin
ClassList > hal > mock > interrupt_pin
mock interrupt_pin implementation for use in unit tests and simulations.
#include <interrupt_pin.hpp>
Inherits the following classes: hal::interrupt_pin
Public Types inherited from 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 Attributes
Type | Name |
---|---|
spy_handler< settings > | spy_configure Spy handler for hal::interrupt_pin::configure() __ |
spy_handler< std::function< handler > > | spy_on_trigger Spy handler for hal::interrupt_pin::on_trigger() __ |
Public Functions
Type | Name |
---|---|
void | reset () Reset spy information for configure() ,on_trigger() , and disable() |
Public Functions inherited from 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 Attributes Documentation
variable spy_configure
spy_handler<settings> hal::mock::interrupt_pin::spy_configure;
variable spy_on_trigger
spy_handler<std::function<handler> > hal::mock::interrupt_pin::spy_on_trigger;
Public Functions Documentation
function reset
inline void hal::mock::interrupt_pin::reset ()
The documentation for this class was generated from the following file libraries/include/libhal-mock/interrupt_pin.hpp