File tree 3 files changed +20
-1
lines changed
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 22
22
#define MA_SPI_MODE_0 SPI_MODE0
23
23
#define MA_SPI_MODE_3 SPI_MODE3
24
24
25
- class MagAlpha : public MagAlphaGen3 {};
25
+ class MagAlpha : public MagAlphaGen3 {
26
+ public:
27
+ MagAlpha ();
28
+ };
29
+
26
30
27
31
#endif // MAGALPHA_H
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ class MagAlphaGen3: public MagAlphaSPI {
50
50
uint8_t getSiliconId () override ;
51
51
uint8_t getSiliconRevision () override ;
52
52
uint8_t getRegisterMapRevision () override ;
53
+ };
53
54
54
55
class MagAlphaSSIGen3 : public MagAlphaSSI {};
55
56
You can’t perform that action at this time.
0 commit comments