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-pal-ino.hpp
Go to the documentation of this file.
1 
13 #ifndef TLE5012_PAL_INO_HPP_
14 #define TLE5012_PAL_INO_HPP_
15 
16 #include "../../../config/tle5012-conf.hpp"
17 
18 #if (TLE5012_FRAMEWORK == TLE5012_FRMWK_ARDUINO)
19 
26 #include <Arduino.h>
27 #include "../../../corelib/TLE5012b.hpp"
28 #include "spic-arduino.hpp"
29 #include "gpio-arduino.hpp"
30 #include "spic-arduino.hpp"
31 
33 #define PIN_SPI_EN UNUSED_PIN
45 class Tle5012Ino: virtual public Tle5012b
46 {
47 
48  public:
49 
50  uint8_t mSpiNum = 0;
51 
52  Tle5012Ino();
53  Tle5012Ino(uint8_t csPin, slaveNum slave=TLE5012B_S0);
54  Tle5012Ino(SPIClass3W &bus, uint8_t csPin, uint8_t misoPin, uint8_t mosiPin, uint8_t sckPin, slaveNum slave=TLE5012B_S0);
55  errorTypes begin();
56 
57 };
58 
63 #endif
64 #endif
Arduino PAL for the GPIO.
Definition: spi3w-ino.hpp:43
represents a basic TLE5012b Arduino class.
Definition: TLE5012-pal-ino.hpp:46
errorTypes begin()
begin method with default assignments for the SPI bus and pin setting. The EN pin is only available f...
Definition: TLE5012-pal-ino.cpp:72
Tle5012Ino()
Definition: TLE5012-pal-ino.cpp:25
uint8_t mSpiNum
Number of used SPI channel.
Definition: TLE5012-pal-ino.hpp:50
Definition: TLE5012b.hpp:30
slaveNum
Definition: TLE5012b.hpp:40
@ TLE5012B_S0
TLE5012B_S0 default setting for only one sensor on the SPI.
Definition: TLE5012b.hpp:41
errorTypes
Error types from safety word.
Definition: tle5012b_util.hpp:73
Arduino PAL for the SPI cover.