Struct hal::mock::adc
Mock adc implementation for use in unit tests and simulations.
#include <adc.hpp>
Inherits the following classes: hal::adc
Public Functions
Type | Name |
---|---|
void | set (std::queue< read_t > & p_adc_values) Queues the floats to be returned for read() __ |
Public Functions inherited from hal::adc
See hal::adc
Type | Name |
---|---|
result< read_t > | read () Sample the analog to digital converter and return the result. |
virtual | ~adc () = default |
Public Functions Documentation
function set
Queues the floats to be returned for read() __
inline void hal::mock::adc::set (
std::queue< read_t > & p_adc_values
)
Parameters:
p_adc_values
- queue of floats
The documentation for this class was generated from the following file libraries/include/libhal-mock/adc.hpp