Struct hal::mock::dac
Mock dac implementation for use in unit tests and simulations with a spy function for write() __
#include <dac.hpp>
Inherits the following classes: hal::dac
Public Attributes
| Type | Name |
|---|---|
| spy_handler< float > | spy_write Spy handler for hal::dac::write() __ |
Public Functions
| Type | Name |
|---|---|
| void | reset () Reset spy information for write() __ |
Public Functions inherited from hal::dac
See hal::dac
| Type | Name |
|---|---|
| result< write_t > | write (float p_percentage) Set the output voltage of the DAC. |
| virtual | ~dac () = default |
Public Attributes Documentation
variable spy_write
spy_handler<float> hal::mock::dac::spy_write;
Public Functions Documentation
function reset
inline void hal::mock::dac::reset ()
The documentation for this class was generated from the following file libraries/include/libhal-mock/dac.hpp