picolibrary

ADC Facilities

ADC facilities are defined in the include/picolibrary/adc.h/source/picolibrary/adc.cc header/source file pair.

Table of Contents

  1. Sample
  2. ADC Types
    1. Blocking, Single Sample ADC
    2. Non-Blocking, Single Sample ADC
    3. Blocking, Free Running ADC
    4. Non-Blocking, Free Running ADC

Sample

The ::picolibrary::ADC::Sample template class is used to store ADC samples.

::picolibrary::ADC::Sample automated tests are defined in the test/automated/picolibrary/adc/sample/main.cc source file.

A std::ostream insertion operator is defined for ::picolibrary::ADC::Sample if the PICOLIBRARY_ENABLE_AUTOMATED_TESTING project configuration option is ON. The insertion operator is defined in the include/picolibrary/testing/automated/adc.h/source/picolibrary/testing/automated/adc.cc header/source file pair.

ADC Types

Blocking, Single Sample ADC

The ::picolibrary::ADC::Blocking_Single_Sample_Converter_Concept concept class defines the expected interface of a blocking, single sample ADC implementation.

The ::picolibrary::Testing::Automated::ADC::Mock_Blocking_Single_Sample_Converter mock blocking, single sample ADC class is available if the PICOLIBRARY_ENABLE_AUTOMATED_TESTING project configuration option is ON. The mock is defined in the include/picolibrary/testing/automated/adc.h/source/picolibrary/testing/automated/adc.cc header/source file pair.

The ::picolibrary::Testing::Interactive::ADC::sample_blocking_single_sample_converter() interactive test helper is available if the PICOLIBRARY_ENABLE_INTERACTIVE_TESTING project configuration option is ON. The interactive test helper is defined in the include/picolibrary/testing/interactive/adc.h/source/picolibrary/testing/interactive/adc.cc header/source file pair.

Non-Blocking, Single Sample ADC

The ::picolibrary::ADC::Non_Blocking_Single_Sample_Converter_Concept concept class defines the expected interface of a non-blocking, single sample ADC implementation.

The ::picolibrary::Testing::Automated::ADC::Mock_Non_Blocking_Single_Sample_Converter mock non-blocking, single sample ADC class is available if the PICOLIBRARY_ENABLE_AUTOMATED_TESTING project configuration option is ON. The mock is defined in the include/picolibrary/testing/automated/adc.h/source/picolibrary/testing/automated/adc.cc header/source file pair.

Blocking, Free Running ADC

The ::picolibrary::ADC::Blocking_Free_Running_Converter_Concept concept class defines the expected interface of a blocking, free running ADC implementation.

The ::picolibrary::Testing::Automated::ADC::Mock_Blocking_Free_Running_Converter mock blocking, free running ADC class is available if the PICOLIBRARY_ENABLE_AUTOMATED_TESTING project configuration option is ON. The mock is defined in the include/picolibrary/testing/automated/adc.h/source/picolibrary/testing/automated/adc.cc header/source file pair.

Non-Blocking, Free Running ADC

The ::picolibrary::ADC::Non_Blocking_Free_Running_Converter_Concept concept class defines the expected interface of a non-blocking, free running ADC implementation.

The ::picolibrary::Testing::Automated::ADC::Mock_Non_Blocking_Free_Running_Converter mock non-blocking, free running ADC class is available if the PICOLIBRARY_ENABLE_AUTOMATED_TESTING project configuration option is ON. The mock is defined in the include/picolibrary/testing/automated/adc.h/source/picolibrary/testing/automated/adc.cc header/source file pair.