A library for the AMS AS5045 magnetic encoder using the SPI interface
AS5045Controller.hpp
- Committer:
- Generic
- Date:
- 2016-09-16
- Revision:
- 2:02ea2289edb2
- Parent:
- 1:2b21453e2c03
File content as of revision 2:02ea2289edb2:
#ifndef AS5045CONTROLLER_H #define AS5045CONTROLLER_H #include "mbed.h" class AS5045Controller { public: AS5045Controller(PinName cs); int GetInt(); float GetFloat(); private: SPI _spi; DigitalOut _cs; static const float MAX_VALUE = 4095; }; #endif