aboutsummaryrefslogtreecommitdiffstats
path: root/firmware/src/adc.hpp
blob: a3bd0b00ea3b0c9b915a3a7e49c2be28f49bc9dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <array>
#include <cstdint>

namespace adc
{

struct Sample
{
    std::uint8_t value {0};
    bool changed {false};
};

void
init()
{
}

std::array<Sample, 2>
get_samples()
{
    // TODO: scale 12-bit range into MIDI 7-bit range with hysteresis
    return std::array<Sample, 2>{{{}, {}}};
}

}