TLE5012B  3.1.0
The TLE5012B is a pre-calibrated 360° angle sensor that detects the orientation of a magnetic field. The raw signals (sine and cosine) are digitally processed internally to calculate the angle orientation of the magnetic field (magnet).
sensorType.cpp File Reference
Include dependency graph for sensorType.cpp:

sensorType

prints register bit matrix and sensor interface type

Author
Infineon Technologies AG (Dr.Olaf Filies)
Version
3.1.0

This example program prints the bit matrix of all registers and the sensors default interface type and its settings. From special registers MOD1,2,3,4 and IFAB the explicit sensor interface set and the PCB board will be identified. See the Sensor manual for further information on the different interfaces and the different sensor boards.

Attention
Additional by removing the remarks on certain write functions, some sensor setups can be set/unset or switched on/off.
Tle5012Wiced Tle5012Sensor = Tle5012Wiced()
 
errorTypes checkError = NO_ERROR
 
void show_bin ()
 Function prints the binary code of each documented register. More...
 
void pwmInterface ()
 Sensor is set with PWM interface with the following settings. More...
 
void iifInterface ()
 Sensor is set with IIF interface with the following settings. More...
 
void hsmInterface ()
 Sensor is set with IIF interface with the following settings. More...
 
void spcInterface ()
 Sensor is set with SPC interface with the following settings. More...
 
void show_identity ()
 This function prints the identity of the sensor which is set as factory default inside the sensor fuses. More...
 
void show_additional ()
 Shows additional information for each sensor type from the additional registers MOD2 and MOD3. More...
 
void setup ()
 
void loop ()
 
void application_start ()
 

Function Documentation

◆ show_bin()

void show_bin ( )

Function prints the binary code of each documented register.

◆ pwmInterface()

void pwmInterface ( )

Sensor is set with PWM interface with the following settings.

Here is the call graph for this function:

◆ iifInterface()

void iifInterface ( )

Sensor is set with IIF interface with the following settings.

Here is the call graph for this function:

◆ hsmInterface()

void hsmInterface ( )

Sensor is set with IIF interface with the following settings.

Here is the call graph for this function:

◆ spcInterface()

void spcInterface ( )

Sensor is set with SPC interface with the following settings.

Here is the call graph for this function:

◆ show_identity()

void show_identity ( )

This function prints the identity of the sensor which is set as factory default inside the sensor fuses.

Here is the call graph for this function:

◆ show_additional()

void show_additional ( )

Shows additional information for each sensor type from the additional registers MOD2 and MOD3.

Here is the call graph for this function:

◆ setup()

void setup ( )

You can use resetFirmware to set all register settings back to factory defaults

You can set the sensor slave number to one of four possible settings

Here is the call graph for this function:

◆ loop()

void loop ( )

◆ application_start()

void application_start ( )
Here is the call graph for this function:

Variable Documentation

◆ Tle5012Sensor

Tle5012Wiced Tle5012Sensor = Tle5012Wiced()

◆ checkError

errorTypes checkError = NO_ERROR