#include "TLE5012b.hpp"
Functions | |
TLE5012b.cpp - core library for the TLE5012B angle sensor. | |
GMR-based angle sensor for angular position sensing in automotive applications Core Library
SPDX-License-Identifier: MIT | |
uint8_t | getFirstByte (uint16_t twoByteWord) |
uint8_t | getSecondByte (uint16_t twoByteWord) |
uint8_t | crc8 (uint8_t *data, uint8_t length) |
uint8_t | crcCalc (uint8_t *crcData, uint8_t length) |
double | calculateAngleSpeed (double angRange, int16_t rawAngleSpeed, uint16_t firMD, uint16_t predictionVal) |
uint8_t getFirstByte | ( | uint16_t | twoByteWord | ) |
Gets the first byte of a 2 byte word
twoByteWord | insert word of two bytes long |
uint8_t getSecondByte | ( | uint16_t | twoByteWord | ) |
Gets the second byte of the 2 byte word
twoByteWord | insert word of two bytes long |
uint8_t crc8 | ( | uint8_t * | data, |
uint8_t | length | ||
) |
Function for calculation the CRC.
data | byte long data for CRC check |
length | length of data |
uint8_t crcCalc | ( | uint8_t * | crcData, |
uint8_t | length | ||
) |
Function for calculation of the CRC
crcData | byte long data for CRC check |
length | length of data |
double calculateAngleSpeed | ( | double | angRange, |
int16_t | rawAngleSpeed, | ||
uint16_t | firMD, | ||
uint16_t | predictionVal | ||
) |
Calculate the angle speed
angRange | set angular range value |
rawAngleSpeed | raw speed value from read function |
firMD | |
predictionVal |