Skip to content

Class hal::soft::inert_adc

ClassList > hal > soft > inert_adc

Inert implementation of Analog to Digital Converter (ADC) hardware.

  • #include <inert_adc.hpp>

Inherits the following classes: hal::adc

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 Static Functions

Type Name
result< inert_adc > create (read_t p_result)
Factory function to create inert_adc object.

Public Static Functions Documentation

function create

Factory function to create inert_adc object.

static inline result< inert_adc > hal::soft::inert_adc::create (
    read_t p_result
) 

Parameters:

  • p_result - read_t object to return when reading the inert_adc

Returns:

result<inert_adc> - Constructed inert_adc object


The documentation for this class was generated from the following file libraries/include/libhal-soft/inert_drivers/inert_adc.hpp