10 #ifndef HALL_SPEED_HPP_ 11 #define HALL_SPEED_HPP_ 13 #include "../config/hall-conf.hpp" 14 #if (HALL_SPEED_ENABLED == 1) Error_t disable()
Disables the sensor.
Definition: hall-speed.cpp:174
Definition: hall-speed.hpp:34
Definition: hall-speed.hpp:33
CBack_t cBack
Definition: hall-switch.hpp:122
HallSpeed()
Hall Speed Default Constructor.
Definition: hall-speed.cpp:30
Error_t enable()
Enables the sensor.
Definition: hall-speed.cpp:149
void callback()
Interrupt mode callback function.
Definition: hall-speed.cpp:245
Error_t
Definition: hall-switch.hpp:30
void(* CBackSpd_t)(double)
Callback function type for interrupt mode.
Definition: hall-speed.hpp:44
Definition: hall-pal-timer.hpp:23
Timer * timer
Definition: hall-speed.hpp:67
GPIO * output
Definition: hall-switch.hpp:119
uint8_t polesPair
Definition: hall-speed.hpp:68
static double const speedCoeff[3]
Definition: hall-speed.hpp:72
~HallSpeed()
Hall Speed Destructor Disables the sensor:
Definition: hall-speed.cpp:82
Error_t deinit()
Deinitializes the hardware interfaces.
Definition: hall-speed.cpp:122
Error_t updateSpeed()
Updates the instance speed value.
Definition: hall-speed.cpp:199
Definition: hall-speed.hpp:35
double getSpeed()
Gets speed value.
Definition: hall-speed.cpp:232
Error_t init()
Initializes the hardware interfaces.
Definition: hall-speed.cpp:97
Definition: hall-switch.hpp:22
SpeedUnit_t sUnits
Definition: hall-speed.hpp:69
Definition: hall-speed.hpp:23
GPIO * power
Definition: hall-switch.hpp:125
double speed
Definition: hall-speed.hpp:70
void calculateSpeed()
Calculates the speed in the configured units.
Definition: hall-speed.cpp:272
SpeedUnit_t
Definition: hall-speed.hpp:31
Definition: hall-pal-gpio.hpp:20