34 #ifndef TLI493D_H_INCLUDED 35 #define TLI493D_H_INCLUDED 42 #define NO_POWER_PIN -1 103 int resetPin = NO_POWER_PIN,
104 bool powerLevel = HIGH);
112 bool powerLevel = HIGH,
138 uint8_t oneByteRead);
335 void setRegBits(uint8_t regMaskIndex, uint8_t data);
352 float mBMult = TLI493D_B_MULT_FULL;
357 void calcParity(uint8_t regMaskIndex);
362 int16_t concatResults(uint8_t upperByte, uint8_t lowerByte,
bool isB);
float getTemp(void)
Definition: Tli493d.cpp:446
uint8_t getRegBits(uint8_t regMaskIndex)
Returns the value of a register field.
Definition: Tli493d.cpp:503
void begin(void)
Starts the sensor.
Definition: Tli493d.cpp:35
void resetSensor(void)
Resets the sensor.
Definition: Tli493d.cpp:469
AccessMode_e
Definition: Tli493d.h:67
float getNorm(void)
Definition: Tli493d.cpp:451
void enableWakeUp(void)
Enables the Wake Up functionality of the sensor. Following conditions must be fulfilled: ...
Definition: Tli493d.cpp:366
void enableInterrupt(void)
Enables interrupts.
Definition: Tli493d.cpp:162
void disableTemp(void)
Disables temperature measurement to reduce power consumption.
Definition: Tli493d.cpp:197
bool setMeasurementRange(Range_e range)
Sets the magnetic range that can be measured. The smaller the range, the higher the sensitivity...
Definition: Tli493d.cpp:388
float getX(void)
Definition: Tli493d.cpp:431
~Tli493d(void)
Destructor.
Definition: Tli493d.cpp:30
bool wakeUpEnabled(void)
Checks if WA bit is set. When not interrupt configuration is as specified by the CA and INT bits...
Definition: Tli493d.cpp:361
Definition: BusInterface.h:12
void enableCollisionAvoidance(void)
Enables collision avoidance. When Interrupt is deactivated, clock stretching is active. For clock stretching: SCL and INT pins must be shorted.
Definition: Tli493d.cpp:176
bool setWakeUpThresholdMT(float xh, float xl, float yh, float yl, float zh, float zl)
The Wake Up threshold range disabling /INT pulses between upper threshold and lower threshold is limi...
Definition: Tli493d.cpp:313
void disableInterrupt(void)
Disables interrupts; When Collision Avoidance is activated, Sensor read-outs are suppressed during on...
Definition: Tli493d.cpp:169
Range_e
Definition: Tli493d.h:82
tli493d::BusInterface_t mInterface
Definition: Tli493d.h:329
Tli493d_Error
Definition: Tli493d.h:44
void disableWakeUp(void)
Disables the Wake Up functionality of the sensor.
Definition: Tli493d.cpp:373
float getY(void)
Definition: Tli493d.cpp:436
void setUpdateRate(uint8_t updateRate)
Sets the update rate in low power mode.
Definition: Tli493d.cpp:380
float getPolar(void)
Definition: Tli493d.cpp:461
Tli493d_Error updateData(void)
Reads measurement results from sensor.
Definition: Tli493d.cpp:414
bool setWakeUpThresholdLSB(int16_t xh, int16_t xl, int16_t yh, int16_t yl, int16_t zh, int16_t zl)
The Wake Up threshold range disabling /INT pulses between upper threshold and lower threshold is limi...
Definition: Tli493d.cpp:265
void readDiagnosis(uint8_t(&diag)[7])
Definition: Tli493d.cpp:484
void setRegBits(uint8_t regMaskIndex, uint8_t data)
Stores new values into the bus interface; for this function to take effect the function writeOut() sh...
Definition: Tli493d.cpp:495
bool setWakeUpThreshold(float xh, float xl, float yh, float yl, float zh, float zl)
The Wake Up threshold range disabling /INT pulses between upper threshold and lower threshold is limi...
Definition: Tli493d.cpp:218
float getAzimuth(void)
Definition: Tli493d.cpp:456
float getZ(void)
Definition: Tli493d.cpp:441
TypeAddress_e
Definition: Tli493d.h:54
void disableCollisionAvoidance(void)
Disables collision avoidance; readouts may collide with ADC conversion.
Definition: Tli493d.cpp:183
enum Tli493d_Error Tli493d_Error_t
bool setAccessMode(AccessMode_e mode)
Sets the operating mode of the sensor.
Definition: Tli493d.cpp:114
void enableBz(void)
Enables BZ measurement; by default already enabled.
Definition: Tli493d.cpp:204
void disableBz(void)
Disables Bz measurement to reduce power consumption. This only works, when temperature measurement is...
Definition: Tli493d.cpp:211
Tli493d(AccessMode_e mode=MASTERCONTROLLEDMODE, TypeAddress_e productType=TLI493D_A0, int resetPin=NO_POWER_PIN, bool powerLevel=HIGH)
Constructor of the sensor class.
Definition: Tli493d.cpp:14
void setTrigger(uint8_t trigger)
Sets when new measurements are triggered in MASTERCONTROLLEDMODE. If invalid argument or sensor mode ...
Definition: Tli493d.cpp:145
void enableTemp(void)
Enables temperature measurement; by default already enabled.
Definition: Tli493d.cpp:190