Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieukaelin committed Nov 19, 2024
1 parent b80353a commit 1829011
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
14 changes: 14 additions & 0 deletions src/MagAlpha.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
/***************************************************
Arduino library for the MPS MagAlpha magnetic angle sensor
Supports MagAlpha 3rd generation Sensors. MagAlpha sensor detects the
absolute angular position of a permanent magnet, typically a diametrically
magnetized cylinder on the rotating shaft.
----> http://www.monolithicpower.com/Products/Position-Sensors/Products-Overview
Written by Mathieu Kaelin for Monolithic Power Systems.
MIT license, all text above must be included in any redistribution
****************************************************/

#include "MagAlpha.h"

MagAlpha::MagAlpha(){
}
6 changes: 5 additions & 1 deletion src/MagAlpha.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#define MA_SPI_MODE_0 SPI_MODE0
#define MA_SPI_MODE_3 SPI_MODE3

class MagAlpha: public MagAlphaGen3 {};
class MagAlpha: public MagAlphaGen3 {
public:
MagAlpha();
};


#endif //MAGALPHA_H
1 change: 1 addition & 0 deletions src/MagAlphaGen3.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ class MagAlphaGen3: public MagAlphaSPI {
uint8_t getSiliconId() override;
uint8_t getSiliconRevision() override;
uint8_t getRegisterMapRevision() override;
};

class MagAlphaSSIGen3: public MagAlphaSSI {};

Expand Down

0 comments on commit 1829011

Please sign in to comment.