TLx4966 Direction Speed Sensor  1.1.1
C/C++ library of Infineons double Hall-effect direction and speed sensor TLx4966(K)/(G)/(L)/(V) family for magnetic sensing applications.
TLx4966 Class Reference

#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). More...
 
 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). More...
 
 ~TLx4966 ()
 Double hall switch instance destructor. More...
 
TLx4966_Error_t begin ()
 Initilializes the hardware interfaces. More...
 
TLx4966_Error_t enable ()
 Enables the sensor. More...
 
TLx4966_Error_t disable ()
 Disables the sensor. More...
 
void measureLoop ()
 Updates the rotation direction and speed. More...
 
TLx4966_Status_t readStatus ()
 Reads the sensor status. More...
 
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. More...
 
double readSpeed ()
 Gets the rotation speed. More...
 

Member Enumeration Documentation

◆ ArduinoHwPlatf

Arduino hardware platforms.

Enumerator
Shield_2Go 

Shield 2Go


The documentation for this class was generated from the following files: