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).
timer-wiced.hpp
Go to the documentation of this file.
1 
10 #ifndef TIMER_WICED_HPP_
11 #define TIMER_WICED_HPP_
12 
13 #include "../../../config/tle5012-conf.hpp"
14 
15 #if (TLE5012_FRAMEWORK == TLE5012_FRMWK_WICED)
16 
17 #include "../../../pal/timer.hpp"
18 #include "wiced_time.h"
19 #include "wiced_rtos.h"
20 
26 class TimerWiced: virtual public Timer
27 {
28  public:
29  TimerWiced();
30  ~TimerWiced();
31  Error_t init();
32  Error_t deinit();
33  Error_t start();
34  Error_t elapsed(wiced_time_t &elapsed);
35  Error_t stop();
36  Error_t delayMilli(uint32_t timeout);
37  Error_t delayMicro(uint32_t timeout);
38 
39  private:
40  wiced_time_t startTime;
41 };
44 #endif
45 #endif
Error_t
Definition: timer.hpp:25
Definition: timer.hpp:21
Error_t start()
Start the timer.
Definition: timer-wiced.cpp:65
~TimerWiced()
Destructor of the WICED Timer class.
Definition: timer-wiced.cpp:26
Error_t elapsed(wiced_time_t &elapsed)
Calculate the elapsed time.
Definition: timer-wiced.cpp:81
Error_t delayMilli(uint32_t timeout)
Time delay.
Definition: timer-wiced.cpp:112
Error_t stop()
Stop the timer.
Definition: timer-wiced.cpp:97
TimerWiced()
Constructor of the WICED Timer class.
Definition: timer-wiced.cpp:18
Error_t deinit()
Deinitialize the Timer.
Definition: timer-wiced.cpp:52
Error_t init()
Initialization of the Timer.
Definition: timer-wiced.cpp:38
Error_t delayMicro(uint32_t timeout)
Time delay.
Definition: timer-wiced.cpp:127
Definition: timer-wiced.hpp:27