File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 1+ /* **************************************************
2+ Arduino library for the MPS MagAlpha magnetic angle sensor
3+ Supports MagAlpha 3rd generation Sensors. MagAlpha sensor detects the
4+ absolute angular position of a permanent magnet, typically a diametrically
5+ magnetized cylinder on the rotating shaft.
6+ ----> http://www.monolithicpower.com/Products/Position-Sensors/Products-Overview
7+ Written by Mathieu Kaelin for Monolithic Power Systems.
8+ MIT license, all text above must be included in any redistribution
9+ ****************************************************/
10+
11+ #include " MagAlpha.h"
12+
13+ MagAlpha::MagAlpha (){
14+ }
Original file line number Diff line number Diff line change 2222#define MA_SPI_MODE_0 SPI_MODE0
2323#define MA_SPI_MODE_3 SPI_MODE3
2424
25- class MagAlpha : public MagAlphaGen3 {};
25+ class MagAlpha : public MagAlphaGen3 {
26+ public:
27+ MagAlpha ();
28+ };
29+
2630
2731#endif // MAGALPHA_H
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ class MagAlphaGen3: public MagAlphaSPI {
5050 uint8_t getSiliconId () override ;
5151 uint8_t getSiliconRevision () override ;
5252 uint8_t getRegisterMapRevision () override ;
53+ };
5354
5455class MagAlphaSSIGen3 : public MagAlphaSSI {};
5556
You can’t perform that action at this time.
0 commit comments