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
Go to the documentation of this file.
1
8#ifndef TLx4966_H_
9#define TLx4966_H_
10
11#include "TLx4966-types.h"
12#include "TLx4966-hal.h"
13
28
29
30
31void TLx4966_Config (TLx4966_Handle_t *handle,
32 uint8_t polesPair,
33 TLx4966_PowerMode_t powMode,
34 TLx4966_MeasMode_t measMode,
35 TLx4966_SpeedUnit_t speedUnit,
36 TLx4966_HwIntf_t *hwIntf);
44 TLx4966_Params_t *params);
46double TLx4966_GetSpeed (TLx4966_Handle_t *handle);
48
49#endif
TLx4966 Hardware Abstraction Layer.
TLx4966 Types.
TLx4966_Error_t TLx4966_Disable(TLx4966_Handle_t *handle)
Disables the sensor.
Definition TLx4966.c:188
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....
Definition TLx4966.c:45
void TLx4966_GetValues(TLx4966_Handle_t *handle, TLx4966_Params_t *params)
Gets the rotation direction and speed parameters.
Definition TLx4966.c:261
TLx4966_Error_t TLx4966_Init(TLx4966_Handle_t *handle)
Initilializes the hardware interfaces.
Definition TLx4966.c:70
TLx4966_Error_t TLx4966_Enable(TLx4966_Handle_t *handle)
Enables the sensor.
Definition TLx4966.c:155
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 h...
Definition TLx4966.c:213
TLx4966_Status_t TLx4966_GetStatus(TLx4966_Handle_t *handle)
Gets the sensor status.
Definition TLx4966.c:272
void TLx4966_UpdateDirection(TLx4966_Handle_t *handle)
Updates the rotation direction A rising edge is detected when the gpio voltage level changes from low...
Definition TLx4966.c:238
double TLx4966_GetSpeed(TLx4966_Handle_t *handle)
Gets the rotation speed.
Definition TLx4966.c:282
void TLx4966_UpdateValues(TLx4966_Handle_t *handle)
Updates the rotation direction and speed.
Definition TLx4966.c:249
TLx4966_Dir_t TLx4966_GetDirection(TLx4966_Handle_t *handle)
Gets the rotation direction The direction definition (clock-wise/anticlock-wise, left/rigth,...
Definition TLx4966.c:296
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
Instance handle.
Definition TLx4966.h:18
TLx4966_Status_t status
Definition TLx4966.h:19
TLx4966_SpeedUnit_t speedUnit
Definition TLx4966.h:22
TLx4966_PowerMode_t powMode
Definition TLx4966.h:20
TLx4966_MeasMode_t measMode
Definition TLx4966.h:21
uint8_t polesPair
Definition TLx4966.h:23
TLx4966_HwIntf_t * hwIntf
Definition TLx4966.h:24
double speed
Definition TLx4966.h:26
TLx4966_Dir_t direction
Definition TLx4966.h:25
Hardware interface.
Definition TLx4966-hal.h:118
Definition TLx4966-types.h:115