#include <hall-speed-ino.hpp>
Hall Speed Ino Constructor.
Mandatory arguments:
Optional arguments:
- Magnetic poles pair number. By default 1 pair
- Speed units. By default Hertzs
- Interrupt callback. By default NULL. Required to enable interrupt mode
- Sensor power pin (only for switch powered mode platform). By default it is UNUSED
- Parameters
-
[in] | outputPin | Sensor output pin |
[in] | polesMum | Number of magnetic poles pair of the rotating B field |
[in] | units | Speed units (RPM, Hertz, cps ...) |
[in] | cBack | Callback for interrupt mode. When passed, it enables interrupt mode |
[in] | powerPin | Hall speed power pin. When passed, enabled the sensor switch controlled mode |
- Precondition
- None
Hall Speed Ino Constructor with predefined Arduino hardware platform.
Mandatory arguments:
Optional arguments:
- Magnetic poles pair number. By default 1 pair
- Speed units. By default Hertzs
- Interrupt callback. By default NULL. Required to enable interrupt mode
- Parameters
-
[in] | hwPlatf | Predefined Arduino hardware platform |
[in] | polesMum | Number of magnetic poles pair of the rotating B field |
[in] | units | Speed units (RPM, Hertz, cps ...) |
[in] | cBack | Callback for interrupt mode. When passed, it enables interrupt mode |
- Precondition
- None
HallSpeedIno::~HallSpeedIno |
( |
| ) |
|
Hall Speed Ino Destructor.
- Precondition
- None
int HallSpeedIno::begin |
( |
| ) |
|
Begins the speed sensor.
- Precondition
- None
- Return values
-
int HallSpeedIno::end |
( |
| ) |
|
Ends the speed sensor.
- Precondition
- Instance has called begin()
- Return values
-
double HallSpeedIno::getSpeed |
( |
| ) |
|
Gets the speed value.
- Precondition
- Instance has called begin()
- Returns
- Speed in the configured units
- Return values
-
The documentation for this class was generated from the following files: