Arduino Helpers master
Utility library for Arduino
Static Public Attributes | List of all members
MaximumFilteredAnalogIncRes< FilterShiftFactor, FilterType, AnalogType > Struct Template Reference

#include <AH/Hardware/FilteredAnalog.hpp>

Detailed Description

template<uint8_t FilterShiftFactor, class FilterType, class AnalogType>
struct MaximumFilteredAnalogIncRes< FilterShiftFactor, FilterType, AnalogType >

Helper to determine how many of the remaining bits of the filter data types can be used to achieve higher precision.

Definition at line 20 of file FilteredAnalog.hpp.

+ Collaboration diagram for MaximumFilteredAnalogIncRes< FilterShiftFactor, FilterType, AnalogType >:

Static Public Attributes

static constexpr uint8_t value
 

Member Data Documentation

◆ value

constexpr uint8_t value
staticconstexpr
Initial value:
=
min(sizeof(FilterType) * CHAR_BIT - ADC_BITS - FilterShiftFactor,
sizeof(AnalogType) * CHAR_BIT - ADC_BITS)
constexpr uint8_t ADC_BITS
The bit depth to use for the ADC (Analog to Digital Converter).
Definition: Settings.hpp:55
constexpr auto min(const T &a, const U &b) -> decltype(b< a ? b :a)
Return the smaller of two numbers/objects.
Definition: MinMaxFix.hpp:12

Definition at line 21 of file FilteredAnalog.hpp.


The documentation for this struct was generated from the following file: