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).
testSensorMainValues.cpp File Reference
Include dependency graph for testSensorMainValues.cpp:

testSensorMainValues

This example can be used for a first fast test if the sensors works

Author
Infineon Technologies AG
Version
3.1.0

It will generate a looped output of the direct measured data (DIR) and data from the update (UPD) registers. Therefore it demonstrats also the use of the direct read (without UPD) and the snapshoot registers (with UPD). See Sensor manual for more information of the UPD mode and the snapshoot registers.

SPDX-License-Identifier: MIT

Tle5012Wiced Tle5012Sensor = Tle5012Wiced()
 
errorTypes checkError = NO_ERROR
 
updTypes upd = UPD_high
 
void setup ()
 
void loop ()
 
void application_start ()
 

Function Documentation

◆ setup()

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

◆ loop()

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

◆ application_start()

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

Variable Documentation

◆ Tle5012Sensor

Tle5012Wiced Tle5012Sensor = Tle5012Wiced()

◆ checkError

errorTypes checkError = NO_ERROR

◆ upd