-
Notifications
You must be signed in to change notification settings - Fork 2
/
spikeycalibratable.h
38 lines (30 loc) · 1.06 KB
/
spikeycalibratable.h
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
26
27
28
29
30
31
32
33
34
35
36
37
38
#include <iostream>
// forward declarations required outside namespaces!
class PySpikey;
class FacetsHWS1V2Access;
class TMSpikeyClass;
class TMSpikeyClassAG;
namespace spikey2
{
class SpikeyVoutCalib;
//! Adds calibrate-functions to the Spikey class
class SpikeyCalibratable : public Spikey
{
friend class SpikeyVoutCalib;
friend class ::TMSpikeyClass;
friend class ::TMSpikeyClassAG;
friend class ::FacetsHWS1V2Access;
friend class ::PySpikey;
public:
SpikeyCalibratable(boost::shared_ptr<Spikenet> snet, float clk = 10.0, uint chipid = 0, int spikeyNr = 0,
string calibfile = "spikeycalib.xml");
SpikeyCalibratable(boost::shared_ptr<SpikenetComm> comm, float clk = 10.0, uint chipid = 0, int spikeyNr = 0,
string calibfile = "spikeycalib.xml");
virtual ~SpikeyCalibratable(){};
boost::shared_ptr<SpikeyVoutCalib> clb;
private:
virtual void loadParam(boost::shared_ptr<SpikeyConfig>, vector<PramData>&);
virtual uint convVoltDac(double voltage, int voutNr = 0);
vector<uint> convVoltDacWarnings;
};
} // end of namespace spikey2