Open FFBoard
Open source force feedback firmware
AnalogSources.cpp
Go to the documentation of this file.
1/*
2 * AnalogSources.cpp
3 *
4 * Created on: Apr 18, 2024
5 * Author: Yannick
6 */
7
8#include "constants.h"
9#include "LocalAnalog.h"
10#include "CanAnalog.h"
11#include "ADS111X.h"
12
13// Register possible analog sources (id 0-15)
14#ifndef ANALOGSOURCES_DEFAULT_OVERRIDE
15const std::vector<class_entry<AnalogSource>> AnalogSource::all_analogsources =
16{
17#ifdef ANALOGAXES
18 add_class<LocalAnalog,AnalogSource>(0),
19#endif
20#ifdef CANANALOG
21 add_class<CanAnalog<8>,AnalogSource>(1),
22#endif
23#ifdef ADS111XANALOG
24 add_class<ADS111X_AnalogSource,AnalogSource>(2),
25#endif
26};
27#endif
static const std::vector< class_entry< AnalogSource > > all_analogsources
Definition: AnalogSource.h:33