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.h File Reference

TLx4966 C library Hardware Abstraction Layer. More...

Go to the source code of this file.

Classes

struct  TLx4966_Handle_t
 Instance handle. More...
 

Functions

void TLx4966_Config (TLx4966_Handle_t *handle, uint8_t polesPair, TLx4966_PowerMode_t powMode, TLx4966_MeasMode_t measMode, TLx4966_SpeedUnit_t speedUnit, TLx4966_HwIntf_t *hwIntf)
 Configures the sensor handle attributes Mandatory hw interfaces: dir, speed, timer. Optional hw interfaces: power (only for switch mode platform).
 
TLx4966_Error_t TLx4966_Init (TLx4966_Handle_t *handle)
 Initilializes the hardware interfaces.
 
TLx4966_Error_t TLx4966_Enable (TLx4966_Handle_t *handle)
 Enables the sensor.
 
TLx4966_Error_t TLx4966_Disable (TLx4966_Handle_t *handle)
 Disables the sensor.
 
void TLx4966_UpdateSpeed (TLx4966_Handle_t *handle)
 Updates the sensor speed. A rising edge is detected when the gpio voltage level changes from low to high.
 
void TLx4966_UpdateDirection (TLx4966_Handle_t *handle)
 Updates the rotation direction A rising edge is detected when the gpio voltage level changes from low to high.
 
void TLx4966_UpdateValues (TLx4966_Handle_t *handle)
 Updates the rotation direction and speed.
 
void TLx4966_GetValues (TLx4966_Handle_t *handle, TLx4966_Params_t *params)
 Gets the rotation direction and speed parameters.
 
TLx4966_Status_t TLx4966_GetStatus (TLx4966_Handle_t *handle)
 Gets the sensor status.
 
double TLx4966_GetSpeed (TLx4966_Handle_t *handle)
 Gets the rotation speed.
 
TLx4966_Dir_t TLx4966_GetDirection (TLx4966_Handle_t *handle)
 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.
 

Detailed Description

TLx4966 C library Hardware Abstraction Layer.

Date
April 2019