Hall Switch 2.1.0
C++ library of Infineon single Hall-effect switch family for magnetic sensing applications
 
Loading...
Searching...
No Matches
hall-pal-timer.hpp
Go to the documentation of this file.
1
10#ifndef HALL_PAL_TIMER_HPP_
11#define HALL_PAL_TIMER_HPP_
12
13#include "../config/hall-conf.hpp"
14#if (HALL_SPEED_ENABLED == 1)
15
16#include "../corelib/hall-speed.hpp"
17
24{
25 public:
26
33 virtual HallSwitch::Error_t init () = 0;
34
42
49 virtual HallSwitch::Error_t start () = 0;
50
58 virtual HallSwitch::Error_t elapsed (uint32_t &elapsed) = 0;
59
66 virtual HallSwitch::Error_t stop () = 0;
67
75 virtual HallSwitch::Error_t delay (uint32_t timeout) = 0;
76};
77
80#endif
81#endif
Definition hall-pal-timer.hpp:24
virtual HallSwitch::Error_t start()=0
Starts the timer.
virtual HallSwitch::Error_t elapsed(uint32_t &elapsed)=0
Elapsed time since the timer was started.
virtual HallSwitch::Error_t delay(uint32_t timeout)=0
Introduces a delay during the specified time
virtual HallSwitch::Error_t deinit()=0
Deinitializes the timer.
virtual HallSwitch::Error_t stop()=0
Stops the timer.
virtual HallSwitch::Error_t init()=0
Initializes the timer.
Error_t
Definition hall-switch.hpp:31