TLE5012B  3.1.0
The TLE5012B is a pre-calibrated 360° angle sensor that detects the orientation of a magnetic field. The raw signals (sine and cosine) are digitally processed internally to calculate the angle orientation of the magnetic field (magnet).
TLE5012-platf-ino.hpp
Go to the documentation of this file.
1 
10 #ifndef TLE5012_PLATF_INO_HPP_
11 #define TLE5012_PLATF_INO_HPP_
12 
13 #include "../../../config/tle5012-conf.hpp"
14 
15 #if (TLE5012_FRAMEWORK == TLE5012_FRMWK_ARDUINO)
16 
31 #include "../pal/TLE5012-pal-ino.hpp"
32 
33 // Support macros
35 #define PRINTBIN(Num) for (uint32_t t = (1UL << ((sizeof(Num)*8)-1)); t; t >>= 1) Serial.write(Num & t ? '1' : '0');
37 #define PRINTBINS(Num) for (uint32_t t = (1UL << ((sizeof(Num)*8)-1)); t; t >>= 1) Serial.write(Num & t ? " 1 " : " 0 ");
38 
41 #endif
42 #endif