Data Structures | |
class | Reg |
struct | Reg::BitField_t |
Bit field parameters. More... | |
struct | Reg::AddressField_t |
Register address field. More... | |
Enumerations | |
enum | Reg::calibrationMode_t { Reg::noAutoCal = 0x0 , Reg::mode1 , Reg::mode2 , Reg::mode3 } |
Automatic calibration of offset and amplitude synchronicity for applications with full-turn. Only 1 LSB corrected at each update. CRC check of calibration registers is automatically disabled if AUTOCAL activated. More... | |
enum | Reg::angleRange_t { Reg::factor1 = 0x080 , Reg::factor4 = 0x200 , Reg::factor5 = 0x040 } |
enum | Reg::interfaceType_t { Reg::IIF = 0 , Reg::PWM , Reg::HSM , Reg::SPC , Reg::SSC } |
List of possible interface types witch are preset by fuses and can be changed into each other. More... | |
enum | Reg::sensorType_t { Reg::TLE5012B_E1000 = 0x0 , Reg::TLE5012B_E3005 , Reg::TLE5012B_E5000 , Reg::TLE5012B_E5020 , Reg::TLE5012B_E9000 } |
enum | Reg::Access_t { Reg::REG_ACCESS_R = (0x01U) , Reg::REG_ACCESS_W = (0x02U) , Reg::REG_ACCESS_RW = (0x03U) , Reg::REG_ACCESS_U = (0x04U) , Reg::REG_ACCESS_RU = (0x05U) , Reg::REG_ACCESS_RWU = (0x07U) , Reg::REG_ACCESS_RES = (0x10U) } |
Register access type. More... | |
enum | Reg::Addr_t { Reg::REG_STAT = (0x0000U) , Reg::REG_ACSTAT = (0x0010U) , Reg::REG_AVAL = (0x0020U) , Reg::REG_ASPD = (0x0030U) , Reg::REG_AREV = (0x0040U) , Reg::REG_FSYNC = (0x0050U) , Reg::REG_MOD_1 = (0x0060U) , Reg::REG_SIL = (0x0070U) , Reg::REG_MOD_2 = (0x0080U) , Reg::REG_MOD_3 = (0x0090U) , Reg::REG_OFFX = (0x00A0U) , Reg::REG_OFFY = (0x00B0U) , Reg::REG_SYNCH = (0x00C0U) , Reg::REG_IFAB = (0x00D0U) , Reg::REG_MOD_4 = (0x00E0U) , Reg::REG_TCO_Y = (0x00F0U) , Reg::REG_ADC_X = (0x0100U) , Reg::REG_ADC_Y = (0x0110U) , Reg::REG_D_MAG = (0x0140U) , Reg::REG_T_RAW = (0x0150U) , Reg::REG_IIF_CNT = (0x0200U) , Reg::REG_T25O = (0x0300U) } |
register address enumeration for all sensor registers More... | |
Variables | |
void * | Reg::p |
uint8_t | Reg::BitField_t::regAccess |
Bitfield register access */. More... | |
uint16_t | Reg::BitField_t::regAddress |
Bitfiled register address */. More... | |
uint16_t | Reg::BitField_t::mask |
Bitfield mask */. More... | |
uint8_t | Reg::BitField_t::position |
Bitfiled position */. More... | |
uint8_t | Reg::BitField_t::resetValue |
Bitfield register reset value */. More... | |
uint8_t | Reg::BitField_t::posMap |
Bitfield position of register in regMap */. More... | |
uint16_t | Reg::AddressField_t::regAddress |
Addressfield register address */. More... | |
uint8_t | Reg::AddressField_t::posMap |
Addressfield register regMap position */. More... | |
uint16_t | Reg::regMap [MAX_NUM_REG] |
Register map */. More... | |
tle5012b_reg.cpp - core support for the TLE5012B angle sensor. | |
GMR-based angle sensor for angular position sensing in automotive applications
This file includes the registry definition macros of all Sensor registers and the bit settings for each of the register content values. Depending on the type of secondary interface (PWM, IIF or HSM) the meaning of some register values differs, so please have look in the TLE5012 manual for the exact meaning. Also included here are other sensefull macros for handling the TLE5012 sensor. Core Library SPDX-License-Identifier: MIT | |
static const AddressField_t | Reg::addrFields [] |
Registers bitfields. More... | |
Reg::Reg (void *p) | |
Construct a new Reg::Reg object. More... | |
Reg::~Reg () | |
Destroy the Reg::Reg object. More... | |
bool | Reg::isStatusReset (void) |
Indication that there was a reset state. More... | |
bool | Reg::isStatusWatchDog (void) |
Permanent check of watchdog. More... | |
bool | Reg::isStatusVoltage (void) |
Permanent check of internal and external supply voltages. More... | |
bool | Reg::isStatusFuse (void) |
Cyclic CRC check of configuration registers and startup CRC. More... | |
bool | Reg::isStatusDSPU (void) |
Check DSPU, CORDIC and CAPCOM at startup. More... | |
bool | Reg::isStatusOverflow (void) |
Cyclic scheck of DSPU (Digital Signal Processing Unit) overflow. More... | |
bool | Reg::isStatusXYOutOfLimit (void) |
Cyclic check of X and > raw values. More... | |
bool | Reg::isStatusMagnitideOutOfLimit (void) |
Vector lengths cyclic check of X,Y values after error compensation. More... | |
bool | Reg::isStatusADC (void) |
Check signal path with test vectors. More... | |
bool | Reg::isStatusROM (void) |
Check of ROM-CRC at statup. More... | |
bool | Reg::isStatusGMRXY (void) |
No valid GMR X,Y values, cyclic check of ADC input. More... | |
bool | Reg::isStatusGMRA (void) |
No value GMR angle value, cyclic check of DSPU output. More... | |
bool | Reg::isStatusRead (void) |
Read status, checks if any status register changed since last readout. More... | |
uint8_t | Reg::getSlaveNumber (void) |
Get the actual slave number of the sensor. Up to four sensors can be selected via this register field. More... | |
void | Reg::setSlaveNumber (const uint8_t snr) |
Set the slave number of the sensor. Up to four sensors can be selected with this register field. More... | |
bool | Reg::isActivationReset (void) |
Hardware reset, will be performed after chip select returns to high. More... | |
void | Reg::setActivationReset (void) |
Set the Activation Reset object Performs a hardware reset. More... | |
void | Reg::enableWatchdog (void) |
Enable the DSPU watchdog. More... | |
void | Reg::disableWatchdog (void) |
disable the DSPU watchdog More... | |
bool | Reg::isWatchdog (void) |
Get the status of the DSPU watchdog. More... | |
void | Reg::enableVoltageCheck (void) |
Enable the voltage regulator check. More... | |
void | Reg::disableVoltageCheck (void) |
disable the voltage regulator check More... | |
bool | Reg::isVoltageCheck (void) |
Get the status of the voltage regulator check. More... | |
void | Reg::enableFuseCRC (void) |
Enable the fuse CRC check. More... | |
void | Reg::disableFuseCRC (void) |
disable the fuse CRC check More... | |
bool | Reg::isFuseCRC (void) |
Get the status of the fuse CRC check. More... | |
void | Reg::enableDSPUbist (void) |
Enable the DSPU bist check. More... | |
void | Reg::disableDSPUbist (void) |
disable the DSPU bist check More... | |
bool | Reg::isDSPUbist (void) |
Get the status of the DSPU bist check. More... | |
void | Reg::enableDSPUoverflow (void) |
Enable the DSPU overflow check. More... | |
void | Reg::disableDSPUoverflow (void) |
disable the DSPU overflow check More... | |
bool | Reg::isDSPUoverflow (void) |
Get the status of the DSPU overflow check. More... | |
void | Reg::enableXYCheck (void) |
Enable the X,Y out of limit check. More... | |
void | Reg::disableXYCheck (void) |
disable the X,Y out of limit check More... | |
bool | Reg::isXYCheck (void) |
Get the status of the X,Y out of limit check. More... | |
void | Reg::enableGMRCheck (void) |
Enable the GMR magnitude check. More... | |
void | Reg::disableGMRCheck (void) |
disable the GMR magnitude check More... | |
bool | Reg::isGMRCheck (void) |
Get the status of the GMR magnitude check. More... | |
void | Reg::enableADCCheck (void) |
Enable the ADC test vector check. More... | |
void | Reg::disableADCCheck (void) |
disable the ADC test vector check More... | |
bool | Reg::isADCCheck (void) |
Get the status of the ADC test vectorGMR magnitude check. More... | |
void | Reg::activateFirmwareReset (void) |
Activate the firmware reset, all configuration registers retain their contents. Will also set the SRST register. More... | |
bool | Reg::isFirmwareReset (void) |
Get the status of the firmware reset register. More... | |
bool | Reg::isAngleValueNew (void) |
Do we have a new calculated angle value since last readout. More... | |
uint16_t | Reg::getAngleValue (void) |
Get a new calculated angle value. More... | |
bool | Reg::isSpeedValueNew (void) |
Do we have a new calculated speed value since last readout. More... | |
uint16_t | Reg::getSpeedValue (void) |
Get a new calculated speed value. More... | |
bool | Reg::isNumberOfRevolutionsNew (void) |
Do we have a new number of revolutions since last readout. More... | |
uint16_t | Reg::getNumberOfRevolutions (void) |
Get a new number of revolutions value. More... | |
uint16_t | Reg::getFrameCounter (void) |
Get the frame counter value. Internal frame counter increments every update period. More... | |
void | Reg::setFrameCounter (uint16_t fcnt) |
Set the frame counter value. More... | |
uint16_t | Reg::getFrameSyncCounter (void) |
Get the frame synchronisation counter value Internal frame sub counter within one frame. More... | |
void | Reg::setFrameSyncCounter (uint16_t fsync) |
Set the frame synchronisation counter value. More... | |
uint16_t | Reg::getTemperatureValue (void) |
Get the temperature value as signed offset compensated temperature value Saturated between -30°C and above 140°C. More... | |
void | Reg::setFilterDecimation (uint8_t firmd) |
Set the filter decimation, update rate setting. More... | |
uint8_t | Reg::getFilterDecimation (void) |
Get the filter decimation, update rate setting. More... | |
void | Reg::setIIFMod (uint8_t iifmod) |
Set the IIF (Incremental Interfave Mode) More... | |
uint8_t | Reg::getIIFMod (void) |
Get the temperature value as signed offset compensated temperature value Saturated between -30°C and above 140°C. More... | |
void | Reg::holdDSPU (void) |
Set DSPU on hold. More... | |
void | Reg::releaseDSPU (void) |
release DSPU operations More... | |
bool | Reg::isDSPUhold (void) |
Get the status of DSPU operations. More... | |
void | Reg::setInternalClock (void) |
Set the clock source to internal oscillator. More... | |
void | Reg::setExternalClock (void) |
Set clock sourec to external SCK. More... | |
bool | Reg::statusClockSource (void) |
Get the status of the clock source. More... | |
void | Reg::enableFilterParallel (void) |
Enable the Filter parallel diagnostics function. More... | |
void | Reg::disableFilterParallel (void) |
disable the Filter parallel diagnostics function More... | |
bool | Reg::isFilterParallel (void) |
Get the status of the Filter parallel diagnostics function. More... | |
void | Reg::enableFilterInverted (void) |
Enable the Filter inverted diagnostics function. More... | |
void | Reg::disableFilterInverted (void) |
disable the Filter inverted diagnostics function More... | |
bool | Reg::isFilterInverted (void) |
Get the status of the Filter inverted diagnostics function. More... | |
void | Reg::enableADCTestVector (void) |
Enable the ADC test vector diagnostics function. More... | |
void | Reg::disableADCTestVector (void) |
disable the ADC test vector diagnostics function More... | |
bool | Reg::isADCTestVector (void) |
Get the status of the ADC test vector diagnostics function. More... | |
void | Reg::setFuseReload (void) |
Set the fuse reload register and trigger a reload. More... | |
bool | Reg::getFulseReload (void) |
Get the status of the fuse reload register. More... | |
void | Reg::setTestVectorX (uint8_t adctvx) |
Set the test vector x. More... | |
uint8_t | Reg::getTestVectorX (void) |
Get the test vector x. More... | |
void | Reg::setTestVectorY (uint8_t adctvs) |
Set the test vector s. More... | |
uint8_t | Reg::getTestVectorY (void) |
Get the test vector y. More... | |
void | Reg::directionClockwise (void) |
Set angle direction clockwise. More... | |
void | Reg::directionConterClockwise (void) |
Set angle direction counter clockwise. More... | |
bool | Reg::isAngleDirection (void) |
Get the angle direction. More... | |
void | Reg::enablePrediction (void) |
Enable the angle prediction based on current speed. More... | |
void | Reg::disablePrediction (void) |
disable the angle prediction More... | |
bool | Reg::isPrediction (void) |
Get the status of angle perdiction. More... | |
void | Reg::setAngleRange (angleRange_t range) |
Set the representation of the angle output value and the speed value. More... | |
angleRange_t | Reg::getAngleRange (void) |
Get the representation of the angle range. More... | |
void | Reg::setCalibrationMode (calibrationMode_t autocal) |
Set the automatic calibration mode. More... | |
calibrationMode_t | Reg::getCalibrationMode (void) |
Get the actual automatic calibration mode. More... | |
void | Reg::enableSpikeFilter (void) |
Enable the analog spike filter to filter voltage spikes in IFC, SCK, CS. More... | |
void | Reg::disableSpikeFilter (void) |
disable the analog spike filter to filter More... | |
bool | Reg::isSpikeFilter (void) |
Get the status of the analog spike filter. More... | |
void | Reg::enableSSCOpenDrain (void) |
Enable open drain on SSC interface. More... | |
void | Reg::enableSSCPushPull (void) |
Enable push pull on SSC interface. More... | |
bool | Reg::isSSCOutputMode (void) |
Get the status of the SSC output mode. More... | |
void | Reg::setAngleBase (uint16_t base) |
Set a new value for the angle base calibration. More... | |
uint16_t | Reg::getAngleBase (void) |
Get the actual 0° angle position The 0° angle position is factory calibrated parallel to the edge of the chip. More... | |
void | Reg::setPadDriver (uint8_t pad) |
Set a new pad driver configuration. More... | |
uint8_t | Reg::getPadDriver (void) |
Get the pad driver configuration. More... | |
int16_t | Reg::getOffsetX (void) |
Get offset correction x value. More... | |
void | Reg::setOffsetX (int16_t offx) |
Set offset correction x value. More... | |
int16_t | Reg::getOffsetY (void) |
Get offset correction y value. More... | |
void | Reg::setOffsetY (int16_t offy) |
Set offset correction y value. More... | |
void | Reg::setAmplitudeSynch (int16_t synch) |
Set amplitude correction value. More... | |
int16_t | Reg::getAmplitudeSynch (void) |
Get amplitude correction value. More... | |
void | Reg::setFIRUpdateRate (bool fir) |
Set the FIR (Filter Initial Rate) update rate. More... | |
uint8_t | Reg::getFIRUpdateRate (void) |
Get the FIR update rate. More... | |
void | Reg::enableIFABOpenDrain (void) |
Enable open drain in IFA, IFB and IFC. More... | |
void | Reg::enableIFABPushPull (void) |
Enable push pull in IFA, IFB and IFC. More... | |
bool | Reg::isIFABOutputMode (void) |
Get the status of the IFA, IFB and IFC output mode. More... | |
void | Reg::setOrthogonality (int16_t ortho) |
Set the orthogonality correction of x y components. More... | |
int16_t | Reg::getOrthogonality (void) |
Get the orthogonality correction of x y components. More... | |
void | Reg::setHysteresisMode (uint8_t hyst) |
Set the hysteresis mode for HSM, or the unit time if in SPC mode (see manual) More... | |
uint8_t | Reg::getHysteresisMode (void) |
Get the hysteresis mode for HSM, or the unit time if in SPC mode (see manual) More... | |
void | Reg::setInterfaceMode (interfaceType_t ifmd) |
Set the interface Mode on IFA,IFB,IFC. More... | |
interfaceType_t | Reg::getInterfaceMode (void) |
Get the interface Mode on IFA,IFB,IFC. More... | |
void | Reg::setIFABres (uint8_t res) |
Set multipurpose register, PWM frequency, IIF resolution, SPC frame configuration. More... | |
uint8_t | Reg::getIFABres (void) |
Get multipurpose register. More... | |
void | Reg::setHSMplp (uint8_t plp) |
Set multipurpose register,. More... | |
uint8_t | Reg::getHSMplp (void) |
Get multipurpose register. More... | |
void | Reg::setOffsetTemperatureX (int8_t tcox) |
Set offset temperature coefficient for x component. More... | |
int8_t | Reg::getOffsetTemperatureX (void) |
Get offset temperature coefficient for x component. More... | |
void | Reg::setOffsetTemperatureY (int8_t tcoy) |
Set offset temperature coefficient for y component. More... | |
int8_t | Reg::getOffsetTemperatureY (void) |
Get offset temperature coefficient for y component. More... | |
void | Reg::enableStartupBist (void) |
Enable startup bist. More... | |
void | Reg::disableStartupBist (void) |
Disable startup bist. More... | |
bool | Reg::isStartupBist (void) |
Get the status of startup bist. More... | |
void | Reg::setCRCpar (uint16_t crc) |
Set CRC of parameters from address 08h to 0Fh. More... | |
uint16_t | Reg::getCRCpar (void) |
Get CRC of parameters from address 08h to 0Fh. More... | |
int16_t | Reg::getADCx (void) |
Get GMR ADC x value. More... | |
int16_t | Reg::getADCy (void) |
Get GMR ADC y value. More... | |
uint16_t | Reg::getVectorMagnitude (void) |
Get angle vactor magnitude. More... | |
uint16_t | Reg::getTemperatureRAW (void) |
Get Temperature Sensor raw value. More... | |
bool | Reg::isTemperatureToggle (void) |
Is there a new Temperature Sensor RAW value. More... | |
uint16_t | Reg::getCounterIncrements (void) |
Get Counter value of increments. More... | |
uint16_t | Reg::getT25Offset (void) |
Get Temperature 25°C offset value. More... | |
class Reg |
Public Types | |
enum | calibrationMode_t { noAutoCal = 0x0 , mode1 , mode2 , mode3 } |
Automatic calibration of offset and amplitude synchronicity for applications with full-turn. Only 1 LSB corrected at each update. CRC check of calibration registers is automatically disabled if AUTOCAL activated. More... | |
enum | angleRange_t { factor1 = 0x080 , factor4 = 0x200 , factor5 = 0x040 } |
enum | interfaceType_t { IIF = 0 , PWM , HSM , SPC , SSC } |
List of possible interface types witch are preset by fuses and can be changed into each other. More... | |
enum | sensorType_t { TLE5012B_E1000 = 0x0 , TLE5012B_E3005 , TLE5012B_E5000 , TLE5012B_E5020 , TLE5012B_E9000 } |
enum | Access_t { REG_ACCESS_R = (0x01U) , REG_ACCESS_W = (0x02U) , REG_ACCESS_RW = (0x03U) , REG_ACCESS_U = (0x04U) , REG_ACCESS_RU = (0x05U) , REG_ACCESS_RWU = (0x07U) , REG_ACCESS_RES = (0x10U) } |
Register access type. More... | |
enum | Addr_t { REG_STAT = (0x0000U) , REG_ACSTAT = (0x0010U) , REG_AVAL = (0x0020U) , REG_ASPD = (0x0030U) , REG_AREV = (0x0040U) , REG_FSYNC = (0x0050U) , REG_MOD_1 = (0x0060U) , REG_SIL = (0x0070U) , REG_MOD_2 = (0x0080U) , REG_MOD_3 = (0x0090U) , REG_OFFX = (0x00A0U) , REG_OFFY = (0x00B0U) , REG_SYNCH = (0x00C0U) , REG_IFAB = (0x00D0U) , REG_MOD_4 = (0x00E0U) , REG_TCO_Y = (0x00F0U) , REG_ADC_X = (0x0100U) , REG_ADC_Y = (0x0110U) , REG_D_MAG = (0x0140U) , REG_T_RAW = (0x0150U) , REG_IIF_CNT = (0x0200U) , REG_T25O = (0x0300U) } |
register address enumeration for all sensor registers More... | |
Data Fields | |
void * | p |
uint16_t | regMap [MAX_NUM_REG] |
Register map */. More... | |
tle5012b_reg.cpp - core support for the TLE5012B angle sensor. | |
GMR-based angle sensor for angular position sensing in automotive applications
This file includes the registry definition macros of all Sensor registers and the bit settings for each of the register content values. Depending on the type of secondary interface (PWM, IIF or HSM) the meaning of some register values differs, so please have look in the TLE5012 manual for the exact meaning. Also included here are other sensefull macros for handling the TLE5012 sensor. Core Library SPDX-License-Identifier: MIT | |
static const AddressField_t | addrFields [] |
Registers bitfields. More... | |
Reg (void *p) | |
Construct a new Reg::Reg object. More... | |
~Reg () | |
Destroy the Reg::Reg object. More... | |
bool | isStatusReset (void) |
Indication that there was a reset state. More... | |
bool | isStatusWatchDog (void) |
Permanent check of watchdog. More... | |
bool | isStatusVoltage (void) |
Permanent check of internal and external supply voltages. More... | |
bool | isStatusFuse (void) |
Cyclic CRC check of configuration registers and startup CRC. More... | |
bool | isStatusDSPU (void) |
Check DSPU, CORDIC and CAPCOM at startup. More... | |
bool | isStatusOverflow (void) |
Cyclic scheck of DSPU (Digital Signal Processing Unit) overflow. More... | |
bool | isStatusXYOutOfLimit (void) |
Cyclic check of X and > raw values. More... | |
bool | isStatusMagnitideOutOfLimit (void) |
Vector lengths cyclic check of X,Y values after error compensation. More... | |
bool | isStatusADC (void) |
Check signal path with test vectors. More... | |
bool | isStatusROM (void) |
Check of ROM-CRC at statup. More... | |
bool | isStatusGMRXY (void) |
No valid GMR X,Y values, cyclic check of ADC input. More... | |
bool | isStatusGMRA (void) |
No value GMR angle value, cyclic check of DSPU output. More... | |
bool | isStatusRead (void) |
Read status, checks if any status register changed since last readout. More... | |
uint8_t | getSlaveNumber (void) |
Get the actual slave number of the sensor. Up to four sensors can be selected via this register field. More... | |
void | setSlaveNumber (const uint8_t snr) |
Set the slave number of the sensor. Up to four sensors can be selected with this register field. More... | |
bool | isActivationReset (void) |
Hardware reset, will be performed after chip select returns to high. More... | |
void | setActivationReset (void) |
Set the Activation Reset object Performs a hardware reset. More... | |
void | enableWatchdog (void) |
Enable the DSPU watchdog. More... | |
void | disableWatchdog (void) |
disable the DSPU watchdog More... | |
bool | isWatchdog (void) |
Get the status of the DSPU watchdog. More... | |
void | enableVoltageCheck (void) |
Enable the voltage regulator check. More... | |
void | disableVoltageCheck (void) |
disable the voltage regulator check More... | |
bool | isVoltageCheck (void) |
Get the status of the voltage regulator check. More... | |
void | enableFuseCRC (void) |
Enable the fuse CRC check. More... | |
void | disableFuseCRC (void) |
disable the fuse CRC check More... | |
bool | isFuseCRC (void) |
Get the status of the fuse CRC check. More... | |
void | enableDSPUbist (void) |
Enable the DSPU bist check. More... | |
void | disableDSPUbist (void) |
disable the DSPU bist check More... | |
bool | isDSPUbist (void) |
Get the status of the DSPU bist check. More... | |
void | enableDSPUoverflow (void) |
Enable the DSPU overflow check. More... | |
void | disableDSPUoverflow (void) |
disable the DSPU overflow check More... | |
bool | isDSPUoverflow (void) |
Get the status of the DSPU overflow check. More... | |
void | enableXYCheck (void) |
Enable the X,Y out of limit check. More... | |
void | disableXYCheck (void) |
disable the X,Y out of limit check More... | |
bool | isXYCheck (void) |
Get the status of the X,Y out of limit check. More... | |
void | enableGMRCheck (void) |
Enable the GMR magnitude check. More... | |
void | disableGMRCheck (void) |
disable the GMR magnitude check More... | |
bool | isGMRCheck (void) |
Get the status of the GMR magnitude check. More... | |
void | enableADCCheck (void) |
Enable the ADC test vector check. More... | |
void | disableADCCheck (void) |
disable the ADC test vector check More... | |
bool | isADCCheck (void) |
Get the status of the ADC test vectorGMR magnitude check. More... | |
void | activateFirmwareReset (void) |
Activate the firmware reset, all configuration registers retain their contents. Will also set the SRST register. More... | |
bool | isFirmwareReset (void) |
Get the status of the firmware reset register. More... | |
bool | isAngleValueNew (void) |
Do we have a new calculated angle value since last readout. More... | |
uint16_t | getAngleValue (void) |
Get a new calculated angle value. More... | |
bool | isSpeedValueNew (void) |
Do we have a new calculated speed value since last readout. More... | |
uint16_t | getSpeedValue (void) |
Get a new calculated speed value. More... | |
bool | isNumberOfRevolutionsNew (void) |
Do we have a new number of revolutions since last readout. More... | |
uint16_t | getNumberOfRevolutions (void) |
Get a new number of revolutions value. More... | |
uint16_t | getFrameCounter (void) |
Get the frame counter value. Internal frame counter increments every update period. More... | |
void | setFrameCounter (uint16_t fcnt) |
Set the frame counter value. More... | |
uint16_t | getFrameSyncCounter (void) |
Get the frame synchronisation counter value Internal frame sub counter within one frame. More... | |
void | setFrameSyncCounter (uint16_t fsync) |
Set the frame synchronisation counter value. More... | |
uint16_t | getTemperatureValue (void) |
Get the temperature value as signed offset compensated temperature value Saturated between -30°C and above 140°C. More... | |
void | setFilterDecimation (uint8_t firmd) |
Set the filter decimation, update rate setting. More... | |
uint8_t | getFilterDecimation (void) |
Get the filter decimation, update rate setting. More... | |
void | setIIFMod (uint8_t iifmod) |
Set the IIF (Incremental Interfave Mode) More... | |
uint8_t | getIIFMod (void) |
Get the temperature value as signed offset compensated temperature value Saturated between -30°C and above 140°C. More... | |
void | holdDSPU (void) |
Set DSPU on hold. More... | |
void | releaseDSPU (void) |
release DSPU operations More... | |
bool | isDSPUhold (void) |
Get the status of DSPU operations. More... | |
void | setInternalClock (void) |
Set the clock source to internal oscillator. More... | |
void | setExternalClock (void) |
Set clock sourec to external SCK. More... | |
bool | statusClockSource (void) |
Get the status of the clock source. More... | |
void | enableFilterParallel (void) |
Enable the Filter parallel diagnostics function. More... | |
void | disableFilterParallel (void) |
disable the Filter parallel diagnostics function More... | |
bool | isFilterParallel (void) |
Get the status of the Filter parallel diagnostics function. More... | |
void | enableFilterInverted (void) |
Enable the Filter inverted diagnostics function. More... | |
void | disableFilterInverted (void) |
disable the Filter inverted diagnostics function More... | |
bool | isFilterInverted (void) |
Get the status of the Filter inverted diagnostics function. More... | |
void | enableADCTestVector (void) |
Enable the ADC test vector diagnostics function. More... | |
void | disableADCTestVector (void) |
disable the ADC test vector diagnostics function More... | |
bool | isADCTestVector (void) |
Get the status of the ADC test vector diagnostics function. More... | |
void | setFuseReload (void) |
Set the fuse reload register and trigger a reload. More... | |
bool | getFulseReload (void) |
Get the status of the fuse reload register. More... | |
void | setTestVectorX (uint8_t adctvx) |
Set the test vector x. More... | |
uint8_t | getTestVectorX (void) |
Get the test vector x. More... | |
void | setTestVectorY (uint8_t adctvs) |
Set the test vector s. More... | |
uint8_t | getTestVectorY (void) |
Get the test vector y. More... | |
void | directionClockwise (void) |
Set angle direction clockwise. More... | |
void | directionConterClockwise (void) |
Set angle direction counter clockwise. More... | |
bool | isAngleDirection (void) |
Get the angle direction. More... | |
void | enablePrediction (void) |
Enable the angle prediction based on current speed. More... | |
void | disablePrediction (void) |
disable the angle prediction More... | |
bool | isPrediction (void) |
Get the status of angle perdiction. More... | |
void | setAngleRange (angleRange_t range) |
Set the representation of the angle output value and the speed value. More... | |
angleRange_t | getAngleRange (void) |
Get the representation of the angle range. More... | |
void | setCalibrationMode (calibrationMode_t autocal) |
Set the automatic calibration mode. More... | |
calibrationMode_t | getCalibrationMode (void) |
Get the actual automatic calibration mode. More... | |
void | enableSpikeFilter (void) |
Enable the analog spike filter to filter voltage spikes in IFC, SCK, CS. More... | |
void | disableSpikeFilter (void) |
disable the analog spike filter to filter More... | |
bool | isSpikeFilter (void) |
Get the status of the analog spike filter. More... | |
void | enableSSCOpenDrain (void) |
Enable open drain on SSC interface. More... | |
void | enableSSCPushPull (void) |
Enable push pull on SSC interface. More... | |
bool | isSSCOutputMode (void) |
Get the status of the SSC output mode. More... | |
void | setAngleBase (uint16_t base) |
Set a new value for the angle base calibration. More... | |
uint16_t | getAngleBase (void) |
Get the actual 0° angle position The 0° angle position is factory calibrated parallel to the edge of the chip. More... | |
void | setPadDriver (uint8_t pad) |
Set a new pad driver configuration. More... | |
uint8_t | getPadDriver (void) |
Get the pad driver configuration. More... | |
int16_t | getOffsetX (void) |
Get offset correction x value. More... | |
void | setOffsetX (int16_t offx) |
Set offset correction x value. More... | |
int16_t | getOffsetY (void) |
Get offset correction y value. More... | |
void | setOffsetY (int16_t offy) |
Set offset correction y value. More... | |
void | setAmplitudeSynch (int16_t synch) |
Set amplitude correction value. More... | |
int16_t | getAmplitudeSynch (void) |
Get amplitude correction value. More... | |
void | setFIRUpdateRate (bool fir) |
Set the FIR (Filter Initial Rate) update rate. More... | |
uint8_t | getFIRUpdateRate (void) |
Get the FIR update rate. More... | |
void | enableIFABOpenDrain (void) |
Enable open drain in IFA, IFB and IFC. More... | |
void | enableIFABPushPull (void) |
Enable push pull in IFA, IFB and IFC. More... | |
bool | isIFABOutputMode (void) |
Get the status of the IFA, IFB and IFC output mode. More... | |
void | setOrthogonality (int16_t ortho) |
Set the orthogonality correction of x y components. More... | |
int16_t | getOrthogonality (void) |
Get the orthogonality correction of x y components. More... | |
void | setHysteresisMode (uint8_t hyst) |
Set the hysteresis mode for HSM, or the unit time if in SPC mode (see manual) More... | |
uint8_t | getHysteresisMode (void) |
Get the hysteresis mode for HSM, or the unit time if in SPC mode (see manual) More... | |
void | setInterfaceMode (interfaceType_t ifmd) |
Set the interface Mode on IFA,IFB,IFC. More... | |
interfaceType_t | getInterfaceMode (void) |
Get the interface Mode on IFA,IFB,IFC. More... | |
void | setIFABres (uint8_t res) |
Set multipurpose register, PWM frequency, IIF resolution, SPC frame configuration. More... | |
uint8_t | getIFABres (void) |
Get multipurpose register. More... | |
void | setHSMplp (uint8_t plp) |
Set multipurpose register,. More... | |
uint8_t | getHSMplp (void) |
Get multipurpose register. More... | |
void | setOffsetTemperatureX (int8_t tcox) |
Set offset temperature coefficient for x component. More... | |
int8_t | getOffsetTemperatureX (void) |
Get offset temperature coefficient for x component. More... | |
void | setOffsetTemperatureY (int8_t tcoy) |
Set offset temperature coefficient for y component. More... | |
int8_t | getOffsetTemperatureY (void) |
Get offset temperature coefficient for y component. More... | |
void | enableStartupBist (void) |
Enable startup bist. More... | |
void | disableStartupBist (void) |
Disable startup bist. More... | |
bool | isStartupBist (void) |
Get the status of startup bist. More... | |
void | setCRCpar (uint16_t crc) |
Set CRC of parameters from address 08h to 0Fh. More... | |
uint16_t | getCRCpar (void) |
Get CRC of parameters from address 08h to 0Fh. More... | |
int16_t | getADCx (void) |
Get GMR ADC x value. More... | |
int16_t | getADCy (void) |
Get GMR ADC y value. More... | |
uint16_t | getVectorMagnitude (void) |
Get angle vactor magnitude. More... | |
uint16_t | getTemperatureRAW (void) |
Get Temperature Sensor raw value. More... | |
bool | isTemperatureToggle (void) |
Is there a new Temperature Sensor RAW value. More... | |
uint16_t | getCounterIncrements (void) |
Get Counter value of increments. More... | |
uint16_t | getT25Offset (void) |
Get Temperature 25°C offset value. More... | |
struct Reg::BitField_t |
Bit field parameters.
struct Reg::AddressField_t |
Automatic calibration of offset and amplitude synchronicity for applications with full-turn. Only 1 LSB corrected at each update. CRC check of calibration registers is automatically disabled if AUTOCAL activated.
Enumerator | |
---|---|
noAutoCal | noAutoCal = no auto-calibration |
mode1 | mode1 update every angle update cycle (FIR_MD setting) |
mode2 | mode2 update every 1.5 revolutions |
mode3 | mode3 update every 11.25° |
enum Reg::angleRange_t |
enum Reg::interfaceType_t |
enum Reg::sensorType_t |
enum Reg::Access_t |
Register access type.
enum Reg::Addr_t |
register address enumeration for all sensor registers
Reg::Reg | ( | void * | p | ) |
Construct a new Reg::Reg object.
p | nested pointer to parent |
Reg::~Reg | ( | ) |
Destroy the Reg::Reg object.
bool Reg::isStatusReset | ( | void | ) |
Indication that there was a reset state.
bool Reg::isStatusWatchDog | ( | void | ) |
Permanent check of watchdog.
bool Reg::isStatusVoltage | ( | void | ) |
Permanent check of internal and external supply voltages.
bool Reg::isStatusFuse | ( | void | ) |
Cyclic CRC check of configuration registers and startup CRC.
bool Reg::isStatusDSPU | ( | void | ) |
Check DSPU, CORDIC and CAPCOM at startup.
bool Reg::isStatusOverflow | ( | void | ) |
Cyclic scheck of DSPU (Digital Signal Processing Unit) overflow.
bool Reg::isStatusXYOutOfLimit | ( | void | ) |
Cyclic check of X and > raw values.
bool Reg::isStatusMagnitideOutOfLimit | ( | void | ) |
Vector lengths cyclic check of X,Y values after error compensation.
bool Reg::isStatusADC | ( | void | ) |
Check signal path with test vectors.
bool Reg::isStatusROM | ( | void | ) |
Check of ROM-CRC at statup.
bool Reg::isStatusGMRXY | ( | void | ) |
No valid GMR X,Y values, cyclic check of ADC input.
bool Reg::isStatusGMRA | ( | void | ) |
No value GMR angle value, cyclic check of DSPU output.
bool Reg::isStatusRead | ( | void | ) |
Read status, checks if any status register changed since last readout.
uint8_t Reg::getSlaveNumber | ( | void | ) |
Get the actual slave number of the sensor. Up to four sensors can be selected via this register field.
void Reg::setSlaveNumber | ( | const uint8_t | snr | ) |
Set the slave number of the sensor. Up to four sensors can be selected with this register field.
snr | Slave number between 0 and 3 |
bool Reg::isActivationReset | ( | void | ) |
Hardware reset, will be performed after chip select returns to high.
void Reg::setActivationReset | ( | void | ) |
Set the Activation Reset object Performs a hardware reset.
void Reg::enableWatchdog | ( | void | ) |
Enable the DSPU watchdog.
void Reg::disableWatchdog | ( | void | ) |
disable the DSPU watchdog
bool Reg::isWatchdog | ( | void | ) |
Get the status of the DSPU watchdog.
void Reg::enableVoltageCheck | ( | void | ) |
Enable the voltage regulator check.
void Reg::disableVoltageCheck | ( | void | ) |
disable the voltage regulator check
bool Reg::isVoltageCheck | ( | void | ) |
Get the status of the voltage regulator check.
void Reg::enableFuseCRC | ( | void | ) |
Enable the fuse CRC check.
void Reg::disableFuseCRC | ( | void | ) |
disable the fuse CRC check
bool Reg::isFuseCRC | ( | void | ) |
Get the status of the fuse CRC check.
void Reg::enableDSPUbist | ( | void | ) |
Enable the DSPU bist check.
void Reg::disableDSPUbist | ( | void | ) |
disable the DSPU bist check
bool Reg::isDSPUbist | ( | void | ) |
Get the status of the DSPU bist check.
void Reg::enableDSPUoverflow | ( | void | ) |
Enable the DSPU overflow check.
void Reg::disableDSPUoverflow | ( | void | ) |
disable the DSPU overflow check
bool Reg::isDSPUoverflow | ( | void | ) |
Get the status of the DSPU overflow check.
void Reg::enableXYCheck | ( | void | ) |
Enable the X,Y out of limit check.
void Reg::disableXYCheck | ( | void | ) |
disable the X,Y out of limit check
bool Reg::isXYCheck | ( | void | ) |
Get the status of the X,Y out of limit check.
void Reg::enableGMRCheck | ( | void | ) |
Enable the GMR magnitude check.
void Reg::disableGMRCheck | ( | void | ) |
disable the GMR magnitude check
bool Reg::isGMRCheck | ( | void | ) |
Get the status of the GMR magnitude check.
void Reg::enableADCCheck | ( | void | ) |
Enable the ADC test vector check.
void Reg::disableADCCheck | ( | void | ) |
disable the ADC test vector check
bool Reg::isADCCheck | ( | void | ) |
Get the status of the ADC test vectorGMR magnitude check.
void Reg::activateFirmwareReset | ( | void | ) |
Activate the firmware reset, all configuration registers retain their contents. Will also set the SRST register.
bool Reg::isFirmwareReset | ( | void | ) |
Get the status of the firmware reset register.
bool Reg::isAngleValueNew | ( | void | ) |
Do we have a new calculated angle value since last readout.
uint16_t Reg::getAngleValue | ( | void | ) |
Get a new calculated angle value.
bool Reg::isSpeedValueNew | ( | void | ) |
Do we have a new calculated speed value since last readout.
uint16_t Reg::getSpeedValue | ( | void | ) |
Get a new calculated speed value.
bool Reg::isNumberOfRevolutionsNew | ( | void | ) |
Do we have a new number of revolutions since last readout.
uint16_t Reg::getNumberOfRevolutions | ( | void | ) |
Get a new number of revolutions value.
uint16_t Reg::getFrameCounter | ( | void | ) |
Get the frame counter value. Internal frame counter increments every update period.
void Reg::setFrameCounter | ( | uint16_t | fcnt | ) |
Set the frame counter value.
uint16_t Reg::getFrameSyncCounter | ( | void | ) |
Get the frame synchronisation counter value Internal frame sub counter within one frame.
void Reg::setFrameSyncCounter | ( | uint16_t | fsync | ) |
Set the frame synchronisation counter value.
uint16_t Reg::getTemperatureValue | ( | void | ) |
Get the temperature value as signed offset compensated temperature value Saturated between -30°C and above 140°C.
void Reg::setFilterDecimation | ( | uint8_t | firmd | ) |
Set the filter decimation, update rate setting.
uint8_t Reg::getFilterDecimation | ( | void | ) |
Get the filter decimation, update rate setting.
void Reg::setIIFMod | ( | uint8_t | iifmod | ) |
Set the IIF (Incremental Interfave Mode)
uint8_t Reg::getIIFMod | ( | void | ) |
Get the temperature value as signed offset compensated temperature value Saturated between -30°C and above 140°C.
void Reg::holdDSPU | ( | void | ) |
Set DSPU on hold.
void Reg::releaseDSPU | ( | void | ) |
release DSPU operations
bool Reg::isDSPUhold | ( | void | ) |
Get the status of DSPU operations.
void Reg::setInternalClock | ( | void | ) |
Set the clock source to internal oscillator.
void Reg::setExternalClock | ( | void | ) |
Set clock sourec to external SCK.
bool Reg::statusClockSource | ( | void | ) |
Get the status of the clock source.
void Reg::enableFilterParallel | ( | void | ) |
Enable the Filter parallel diagnostics function.
void Reg::disableFilterParallel | ( | void | ) |
disable the Filter parallel diagnostics function
bool Reg::isFilterParallel | ( | void | ) |
Get the status of the Filter parallel diagnostics function.
void Reg::enableFilterInverted | ( | void | ) |
Enable the Filter inverted diagnostics function.
void Reg::disableFilterInverted | ( | void | ) |
disable the Filter inverted diagnostics function
bool Reg::isFilterInverted | ( | void | ) |
Get the status of the Filter inverted diagnostics function.
void Reg::enableADCTestVector | ( | void | ) |
Enable the ADC test vector diagnostics function.
void Reg::disableADCTestVector | ( | void | ) |
disable the ADC test vector diagnostics function
bool Reg::isADCTestVector | ( | void | ) |
Get the status of the ADC test vector diagnostics function.
void Reg::setFuseReload | ( | void | ) |
Set the fuse reload register and trigger a reload.
bool Reg::getFulseReload | ( | void | ) |
Get the status of the fuse reload register.
void Reg::setTestVectorX | ( | uint8_t | adctvx | ) |
Set the test vector x.
uint8_t Reg::getTestVectorX | ( | void | ) |
Get the test vector x.
void Reg::setTestVectorY | ( | uint8_t | adctvs | ) |
Set the test vector s.
uint8_t Reg::getTestVectorY | ( | void | ) |
Get the test vector y.
void Reg::directionClockwise | ( | void | ) |
Set angle direction clockwise.
void Reg::directionConterClockwise | ( | void | ) |
Set angle direction counter clockwise.
bool Reg::isAngleDirection | ( | void | ) |
Get the angle direction.
void Reg::enablePrediction | ( | void | ) |
Enable the angle prediction based on current speed.
void Reg::disablePrediction | ( | void | ) |
disable the angle prediction
bool Reg::isPrediction | ( | void | ) |
Get the status of angle perdiction.
void Reg::setAngleRange | ( | angleRange_t | range | ) |
Set the representation of the angle output value and the speed value.
Reg::angleRange_t Reg::getAngleRange | ( | void | ) |
Get the representation of the angle range.
void Reg::setCalibrationMode | ( | calibrationMode_t | autocal | ) |
Set the automatic calibration mode.
Reg::calibrationMode_t Reg::getCalibrationMode | ( | void | ) |
Get the actual automatic calibration mode.
void Reg::enableSpikeFilter | ( | void | ) |
Enable the analog spike filter to filter voltage spikes in IFC, SCK, CS.
void Reg::disableSpikeFilter | ( | void | ) |
disable the analog spike filter to filter
bool Reg::isSpikeFilter | ( | void | ) |
Get the status of the analog spike filter.
void Reg::enableSSCOpenDrain | ( | void | ) |
Enable open drain on SSC interface.
void Reg::enableSSCPushPull | ( | void | ) |
Enable push pull on SSC interface.
bool Reg::isSSCOutputMode | ( | void | ) |
Get the status of the SSC output mode.
void Reg::setAngleBase | ( | uint16_t | base | ) |
Set a new value for the angle base calibration.
uint16_t Reg::getAngleBase | ( | void | ) |
Get the actual 0° angle position The 0° angle position is factory calibrated parallel to the edge of the chip.
void Reg::setPadDriver | ( | uint8_t | pad | ) |
Set a new pad driver configuration.
uint8_t Reg::getPadDriver | ( | void | ) |
Get the pad driver configuration.
int16_t Reg::getOffsetX | ( | void | ) |
Get offset correction x value.
void Reg::setOffsetX | ( | int16_t | offx | ) |
Set offset correction x value.
int16_t Reg::getOffsetY | ( | void | ) |
Get offset correction y value.
void Reg::setOffsetY | ( | int16_t | offy | ) |
Set offset correction y value.
void Reg::setAmplitudeSynch | ( | int16_t | synch | ) |
Set amplitude correction value.
int16_t Reg::getAmplitudeSynch | ( | void | ) |
Get amplitude correction value.
void Reg::setFIRUpdateRate | ( | bool | fir | ) |
Set the FIR (Filter Initial Rate) update rate.
uint8_t Reg::getFIRUpdateRate | ( | void | ) |
Get the FIR update rate.
void Reg::enableIFABOpenDrain | ( | void | ) |
Enable open drain in IFA, IFB and IFC.
void Reg::enableIFABPushPull | ( | void | ) |
Enable push pull in IFA, IFB and IFC.
bool Reg::isIFABOutputMode | ( | void | ) |
Get the status of the IFA, IFB and IFC output mode.
void Reg::setOrthogonality | ( | int16_t | ortho | ) |
Set the orthogonality correction of x y components.
int16_t Reg::getOrthogonality | ( | void | ) |
Get the orthogonality correction of x y components.
void Reg::setHysteresisMode | ( | uint8_t | hyst | ) |
Set the hysteresis mode for HSM, or the unit time if in SPC mode (see manual)
uint8_t Reg::getHysteresisMode | ( | void | ) |
Get the hysteresis mode for HSM, or the unit time if in SPC mode (see manual)
void Reg::setInterfaceMode | ( | interfaceType_t | ifmd | ) |
Set the interface Mode on IFA,IFB,IFC.
Reg::interfaceType_t Reg::getInterfaceMode | ( | void | ) |
Get the interface Mode on IFA,IFB,IFC.
void Reg::setIFABres | ( | uint8_t | res | ) |
Set multipurpose register, PWM frequency, IIF resolution, SPC frame configuration.
uint8_t Reg::getIFABres | ( | void | ) |
Get multipurpose register.
void Reg::setHSMplp | ( | uint8_t | plp | ) |
Set multipurpose register,.
uint8_t Reg::getHSMplp | ( | void | ) |
Get multipurpose register.
void Reg::setOffsetTemperatureX | ( | int8_t | tcox | ) |
Set offset temperature coefficient for x component.
int8_t Reg::getOffsetTemperatureX | ( | void | ) |
Get offset temperature coefficient for x component.
void Reg::setOffsetTemperatureY | ( | int8_t | tcoy | ) |
Set offset temperature coefficient for y component.
int8_t Reg::getOffsetTemperatureY | ( | void | ) |
Get offset temperature coefficient for y component.
void Reg::enableStartupBist | ( | void | ) |
Enable startup bist.
void Reg::disableStartupBist | ( | void | ) |
Disable startup bist.
bool Reg::isStartupBist | ( | void | ) |
Get the status of startup bist.
void Reg::setCRCpar | ( | uint16_t | crc | ) |
Set CRC of parameters from address 08h to 0Fh.
uint16_t Reg::getCRCpar | ( | void | ) |
Get CRC of parameters from address 08h to 0Fh.
int16_t Reg::getADCx | ( | void | ) |
Get GMR ADC x value.
int16_t Reg::getADCy | ( | void | ) |
Get GMR ADC y value.
uint16_t Reg::getVectorMagnitude | ( | void | ) |
Get angle vactor magnitude.
uint16_t Reg::getTemperatureRAW | ( | void | ) |
Get Temperature Sensor raw value.
bool Reg::isTemperatureToggle | ( | void | ) |
Is there a new Temperature Sensor RAW value.
uint16_t Reg::getCounterIncrements | ( | void | ) |
Get Counter value of increments.
uint16_t Reg::getT25Offset | ( | void | ) |
Get Temperature 25°C offset value.
void* Reg::p |
uint8_t Reg::BitField_t::regAccess |
Bitfield register access */.
uint16_t Reg::BitField_t::regAddress |
Bitfiled register address */.
uint16_t Reg::BitField_t::mask |
Bitfield mask */.
uint8_t Reg::BitField_t::position |
Bitfiled position */.
uint8_t Reg::BitField_t::resetValue |
Bitfield register reset value */.
uint8_t Reg::BitField_t::posMap |
Bitfield position of register in regMap */.
uint16_t Reg::AddressField_t::regAddress |
Addressfield register address */.
uint8_t Reg::AddressField_t::posMap |
Addressfield register regMap position */.
|
static |
Registers bitfields.
uint16_t Reg::regMap[MAX_NUM_REG] |
Register map */.