Skip to content

Commit

Permalink
Changes for new version 4.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
OlafFilies committed Jan 30, 2024
1 parent e46b9cb commit 5affc02
Show file tree
Hide file tree
Showing 26 changed files with 450 additions and 559 deletions.
11 changes: 7 additions & 4 deletions src/framework/arduino/examples/E9000SPC/E9000SPC.ino
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* \name E9000SPC
* \author Infineon Technologies AG
* \copyright 2020 Infineon Technologies AG
* \version 3.1.0
* \copyright 2020-2024 Infineon Technologies AG
* \version 4.0.0
* \brief This example shows how to handle the TLE5012B-E9000 variant with SPC interface
* \details
* The TLE5012B-E9000 with SPC interface does not start the DSP automatically in a loop at start up.
Expand All @@ -23,7 +23,7 @@
*
*/

#include <TLE5012-ino.hpp>
#include <tlx5012-arduino.hpp>

using namespace tle5012;

Expand All @@ -46,10 +46,13 @@ void setup() {
while (!Serial) {};

checkError = Tle5012Sensor.begin();
Serial.println("init done!");
Serial.print("checkError: ");
Serial.println(checkError, HEX);
delay(1000);

Tle5012Sensor.resetFirmware();
Tle5012Sensor.sBus->triggerUpdate();
Serial.println("init done!");
delay(1000);

pinMode(IFA, OUTPUT);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* \name readAngleSpeedRevolutions
* \author Infineon Technologies AG
* \copyright 2020 Infineon Technologies AG
* \version 3.1.0
* \copyright 2020-2024 Infineon Technologies AG
* \version 4.0.0
* \brief reads angle value, rotation speed and number of revolutions
* \details
* This is a fast running example to demonstrate the possible readout
Expand All @@ -16,7 +16,7 @@
*
*/

#include <TLE5012-ino.hpp>
#include <tlx5012-arduino.hpp>

using namespace tle5012;

Expand All @@ -29,7 +29,10 @@ void setup() {
Serial.begin(115200);
while (!Serial) {};
checkError = Tle5012MagneticAngleSensor.begin();
Serial.print("checkError: ");
Serial.println(checkError, HEX);
Serial.println("init done!");
delay(1000);
Serial.println("AngleSpeed\tAngleValue\trevolutions\tAngleRange");
delay(1000);
}
Expand Down
10 changes: 5 additions & 5 deletions src/framework/arduino/examples/readAngleTest/readAngleTest.ino
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
/*!
* \name readAngleTest
* \author Infineon Technologies AG
* \copyright 2020 Infineon Technologies AG
* \version 3.1.0
* \brief Testscript for a first check.
* \copyright 2020-2024 Infineon Technologies AG
* \version 4.0.0
* \brief test script for a first check.
* \details
* This example reads all main Sensor registers (angle,revolution,speed,range and temperature)
* for a simple first test of the sensor and comunication.
* for a simple first test of the sensor and communication.
*
* \attention
* We use default very low speed 9600 baud, but the sensor can much more, see the other examples
Expand All @@ -15,7 +15,7 @@
*
*/

#include <TLE5012-ino.hpp>
#include <tlx5012-arduino.hpp>

using namespace tle5012;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* \name readAngleValueProcessing
* \author Infineon Technologies AG
* \copyright 2020 Infineon Technologies AG
* \version 3.1.0
* \copyright 2020-2024 Infineon Technologies AG
* \version 4.0.0
* \brief Reads angle values
* \details
* This is a fast running example to demonstrate the possible readout
Expand All @@ -19,7 +19,7 @@
*
*/

#include <TLE5012-ino.hpp>
#include <tlx5012-arduino.hpp>

using namespace tle5012;

Expand All @@ -32,7 +32,7 @@ void setup() {
while (!Serial) {};
Serial.println("init done!");
checkError = Tle5012Sensor.begin();
Serial.print("checkerror: ");
Serial.print("checkError: ");
Serial.println(checkError, HEX);
delay(1000);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*!
* \name readMultipleRegisters
* \author Infineon Technologies AG
* \copyright 2020 Infineon Technologies AG
* \version 3.1.0
* \brief Demostrates how to read multiple registers
* \copyright 2020-2024 Infineon Technologies AG
* \version 4.0.0
* \brief Demonstrates how to read multiple registers
* \details
* This example demonstrates how to read multiple raw registers at once.
* In this case you have to recalculate values like angle, angle speed etc.
Expand All @@ -22,7 +22,7 @@
*/


#include <TLE5012-ino.hpp>
#include <tlx5012-arduino.hpp>

using namespace tle5012;

Expand All @@ -38,7 +38,7 @@ void setup() {
Serial.begin(9600);
while (!Serial) {};
checkError = Tle5012Sensor.begin();
Serial.print("checkerror: ");
Serial.print("checkError: ");
Serial.println(checkError, HEX);
delay(1000);
Serial.println("init done!");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*!
* \name readSpeedProcessing
* \author Infineon Technologies AG
* \copyright 2020 Infineon Technologies AG
* \version 3.1.0
* \copyright 2020-2024 Infineon Technologies AG
* \version 4.0.0
* \brief reads the angle speed
* \details
* Demonstrates the fast readout of the angle speed.
Expand All @@ -15,7 +15,7 @@
*
*/

#include <TLE5012-ino.hpp>
#include <tlx5012-arduino.hpp>

using namespace tle5012;

Expand All @@ -27,7 +27,7 @@ void setup() {
Serial.begin(1000000);
while (!Serial) {};
checkError = Tle5012MagneticAngleSensor.begin();
Serial.print("checkerror: ");
Serial.print("checkError: ");
Serial.println(checkError, HEX);
Serial.println("init done");
delay(1000);
Expand Down
10 changes: 5 additions & 5 deletions src/framework/arduino/examples/sensorRegisters/const.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
/*!
* \name const
* \author Infineon Technologies AG (Dr.Olaf Filies)
* \copyright 2020 Infineon Technologies AG
* \version 3.1.0
* \copyright 2020-2024 Infineon Technologies AG
* \version 4.0.0
* \brief macros and other const variables
*
* \attention
Expand Down Expand Up @@ -62,7 +62,7 @@
#define sc_SPCpin F("\nIFAB IFA pin: \t")

// additional
#define sc_MOD2cal F("\nMOD2 Autocalibration: \t")
#define sc_MOD2cal F("\nMOD2 auto calibration: \t")
#define sc_MOD2predict F("\nMOD2 Prediction: \t")
#define sc_MODpin F("\nMOD3 IFA/B/C pin set: \t")
#define sc_MODstrongfast F("strong driver, DATA: strong driver, fast edge")
Expand Down Expand Up @@ -120,8 +120,8 @@
#define sc_SVR1 F("Voltages Ok")
#define sc_SFUSE0 F("CRC on fuse fail")
#define sc_SFUSE1 F("CRC on fuse Ok")
#define sc_SDSPU0 F("DPSU self-test not Ok or still running")
#define sc_SDSPU1 F("DPSU self-test Ok")
#define sc_SDSPU0 F("DSPU self-test not Ok or still running")
#define sc_SDSPU1 F("DSPU self-test Ok")
#define sc_SOV0 F("DSPU overflow occurred")
#define sc_SOV1 F("No DSPU overflow occurred")
#define sc_SXYOL0 F("X/Y data out of limit")
Expand Down
Loading

0 comments on commit 5affc02

Please sign in to comment.