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-wiced.hpp
Go to the documentation of this file.
1 
13 #ifndef TLE5012_PAL_WICED_HPP_
14 #define TLE5012_PAL_WICED_HPP_
15 
16 #include "../../../config/tle5012-conf.hpp"
17 
18 #if (TLE5012_FRAMEWORK == TLE5012_FRMWK_WICED)
19 
26 #include "../../../corelib/TLE5012b.hpp"
27 #include <platform.h>
28 #include <wiced_platform.h>
29 #include <gpio-wiced.hpp>
30 #include <timer-wiced.hpp>
31 #include <spic-wiced.hpp>
32 
34 #define PIN_SPI_EN UNUSED_PIN
40 #define TLE94112_PIN_CS1 WICED_GPIO_7
41 
52 class Tle5012Wiced: virtual public Tle5012b
53 {
54 
55  public:
56 
57  uint8_t mSpiNum = 0;
58 
59  Tle5012Wiced();
60  Tle5012Wiced(wiced_gpio_t csPin, slaveNum slave=TLE5012B_S0);
61  errorTypes begin();
62 
63 };
64 
69 #endif
70 #endif
WICED PAL for the GPIO.
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
represents a basic TLE5012b Wiced class.
Definition: TLE5012-pal-wiced.hpp:53
Tle5012Wiced()
Definition: TLE5012-pal-wiced.cpp:25
uint8_t mSpiNum
Number of used SPI channel.
Definition: TLE5012-pal-wiced.hpp:57
errorTypes begin()
begin method with default assignments for the SPI bus and pin setting. The EN pin is only available f...
Definition: TLE5012-pal-wiced.cpp:53
WICED PAL for the SPI cover.
WICED Timer PAL.