Control Surface main
MIDI Control Surface 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 AH::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 23 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
Initial value:
min(sizeof(FilterType) * CHAR_BIT - ADC_BITS - FilterShiftFactor,
sizeof(AnalogType) * CHAR_BIT - ADC_BITS)
constexpr auto min(const T &a, const U &b) -> decltype(b< a ? b :a)
Return the smaller of two numbers/objects.
Definition: MinMaxFix.hpp:15
constexpr uint8_t ADC_BITS
The bit depth to use for the ADC (Analog to Digital Converter).

Definition at line 24 of file FilteredAnalog.hpp.

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