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.
 
Loading...
Searching...
No Matches
TLx4966-ino.h
Go to the documentation of this file.
1
8#ifndef TLx4966_INO_H_
9#define TLx4966_INO_H_
10
11extern "C"
12{
14#include "TLx4966/TLx4966.h"
15}
16
21{
22 private:
23 TLx4966_Handle_t handle;
25 public:
33
34 TLx4966 (uint8_t polesPair,
36 ArduinoHwPlatf ardHwPlatf = Shield_2Go,
38 TLx4966 (uint8_t polesPair,
39 TLx4966_PowerMode_t powMode,
40 TLx4966_MeasMode_t measMode,
41 TLx4966_SpeedUnit_t speedUnit,
42 TLx4966_HwIntf_t *hwIntf);
43 ~TLx4966 ();
47 void measureLoop ();
50 double readSpeed ();
51};
52
53#endif
TLx4966 Types.
TLx4966 C library Hardware Abstraction Layer.
Definition TLx4966-ino.h:21
ArduinoHwPlatf
Arduino hardware platforms.
Definition TLx4966-ino.h:30
@ Shield_2Go
Definition TLx4966-ino.h:31
TLx4966_Error_t enable()
Enables the sensor.
Definition TLx4966-ino.cpp:131
TLx4966_Error_t disable()
Disables the sensor.
Definition TLx4966-ino.cpp:145
TLx4966_Error_t begin()
Initilializes the hardware interfaces.
Definition TLx4966-ino.cpp:107
double readSpeed()
Gets the rotation speed.
Definition TLx4966-ino.cpp:186
void measureLoop()
Updates the rotation direction and speed.
Definition TLx4966-ino.cpp:155
~TLx4966()
Double hall switch instance destructor Disables the switch
Definition TLx4966-ino.cpp:117
TLx4966_Dir_t readDirection()
Gets the rotation direction The direction definition (clock-wise/anticlock-wise, left/rigth,...
Definition TLx4966-ino.cpp:177
TLx4966_Status_t readStatus()
Reads the sensor status.
Definition TLx4966-ino.cpp:164
TLx4966_Status_t
Definition TLx4966-types.h:45
TLx4966_SpeedUnit_t
Definition TLx4966-types.h:92
TLx4966_PowerMode_t
Definition TLx4966-types.h:69
TLx4966_MeasMode_t
Definition TLx4966-types.h:58
TLx4966_Dir_t
Definition TLx4966-types.h:80
TLx4966_Error_t
Definition TLx4966-types.h:33
@ TLx4966_SPEED_RPM
Definition TLx4966-types.h:95
@ TLx4966_MEASMODE_POLLING
Definition TLx4966-types.h:60
Instance handle.
Definition TLx4966.h:18
Hardware interface.
Definition TLx4966-hal.h:118