#include <TLx4966-ino.h>
Public Types | |
| enum | ArduinoHwPlatf { Shield_2Go } |
| Arduino hardware platforms. More... | |
Public Member Functions | |
| TLx4966 (uint8_t polesPair, TLx4966_SpeedUnit_t speedUnit=TLx4966_SPEED_RPM, ArduinoHwPlatf ardHwPlatf=Shield_2Go, TLx4966_MeasMode_t measMode=TLx4966_MEASMODE_POLLING) | |
| Double hall switch instance constructor Mandatory hw interfaces: dir, speed, timer. Optional hw interfaces: power (only for switch mode platform). | |
| TLx4966 (uint8_t polesPair, TLx4966_PowerMode_t powMode, TLx4966_MeasMode_t measMode, TLx4966_SpeedUnit_t speedUnit, TLx4966_HwIntf_t *hwIntf) | |
| Double hall switch instance constructor Mandatory hw interfaces: dir, speed, timer. Optional hw interfaces: power (only for switch mode platform). | |
| ~TLx4966 () | |
| Double hall switch instance destructor Disables the switch | |
| TLx4966_Error_t | begin () |
| Initilializes the hardware interfaces. | |
| TLx4966_Error_t | enable () |
| Enables the sensor. | |
| TLx4966_Error_t | disable () |
| Disables the sensor. | |
| void | measureLoop () |
| Updates the rotation direction and speed. | |
| TLx4966_Status_t | readStatus () |
| Reads the sensor status. | |
| TLx4966_Dir_t | readDirection () |
| Gets the rotation direction The direction definition (clock-wise/anticlock-wise, left/rigth, positive/negative...) is dependant of the mechanical configuration of the sensor with repect to the rotor. The library just provide voltage-low/voltage-high directions. | |
| double | readSpeed () |
| Gets the rotation speed. | |