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.

Macros

#define TLx4966_STARTUP_TIME   1
 

TLx4966 error codes

enum  TLx4966_Error_t { TLx4966_OK = 0, TLx4966_INTF_ERROR = -1, TLx4966_CONF_ERROR = -2 }
 

TLx4966 status

enum  TLx4966_Status_t { TLx4966_UNINITED = 0, TLx4966_INITED = 1, TLx4966_OFF = 2, TLx4966_ON = 3 }
 

TLx4966 measuring modes

enum  TLx4966_MeasMode_t { TLx4966_MEASMODE_INTERRUPT = 1, TLx4966_MEASMODE_POLLING = 2 }
 

TLx4966 power modes

enum  TLx4966_PowerMode_t { TLx4966_POWMODE_MAIN = 1, TLx4966_POWMODE_SWITCH = 2 }
 

TLx4966 direction

enum  TLx4966_Dir_t { TLx4966_DIR_UNDEF = -1, TLx4966_DIR_LOW = 0, TLx4966_DIR_HIGH = 1 }
 

TLx4966 speed units

enum  TLx4966_SpeedUnit_t { TLx4966_SPEED_HERTZ = 0, TLx4966_SPEED_RADS = 1, TLx4966_SPEED_RPM = 2 }
 

TLx4966 speed unit product coefficients

#define TLx4966_SPEED_COEF_HZ   1000.0
 
#define TLx4966_SPEED_COEF_RADS   6283.2
 
#define TLx4966_SPEED_COEF_RPM   60000.0
 

Detailed Description

Macro Definition Documentation

◆ TLx4966_SPEED_COEF_HZ

#define TLx4966_SPEED_COEF_HZ   1000.0

Hertz - cps (1000 ms)

◆ TLx4966_SPEED_COEF_RADS

#define TLx4966_SPEED_COEF_RADS   6283.2

Rad/s (2pi x 1000 ms)

◆ TLx4966_SPEED_COEF_RPM

#define TLx4966_SPEED_COEF_RPM   60000.0

RPM (60 x 1000 ms)

◆ TLx4966_STARTUP_TIME

#define TLx4966_STARTUP_TIME   1

Start-up time (ms). Minimum 45 us. Source: Innovative Features Integrated in Hall Switches - App Note)

Enumeration Type Documentation

◆ TLx4966_Dir_t

Enumerator
TLx4966_DIR_UNDEF 

Direction Q1 output default high. Undefined.

TLx4966_DIR_LOW 

Direction Q1 output low

TLx4966_DIR_HIGH 

Direction Q1 output high

◆ TLx4966_Error_t

Enumerator
TLx4966_OK 

No error

TLx4966_INTF_ERROR 

Interface error

TLx4966_CONF_ERROR 

Configuration error

◆ TLx4966_MeasMode_t

Enumerator
TLx4966_MEASMODE_INTERRUPT 

Interruption mode

TLx4966_MEASMODE_POLLING 

Polling mode

◆ TLx4966_PowerMode_t

Enumerator
TLx4966_POWMODE_MAIN 

Same as MCU VDD supply signal

TLx4966_POWMODE_SWITCH 

Switched controlled power from MCU

◆ TLx4966_SpeedUnit_t

Enumerator
TLx4966_SPEED_HERTZ 

cps-Hertz

TLx4966_SPEED_RADS 

rad/s

TLx4966_SPEED_RPM 

RPM

◆ TLx4966_Status_t

Enumerator
TLx4966_UNINITED 

Not initialized

TLx4966_INITED 

Initialized (external interfaces initialized)

TLx4966_OFF 

Power off

TLx4966_ON 

Power on