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