Device support for TLV493D Magnetic Sensor. More...
Device support for TLV493D Magnetic Sensor.
#include <tlv493d.h>
Classes | |
struct | AccessMode_t |
struct | Config |
struct | RegMask_t |
Public Types | |
enum | Registers_e { R_BX1 = 0 , R_BX2 , R_BY1 , R_BY2 , R_BZ1 , R_BZ2 , R_TEMP1 , R_TEMP2 , R_FRAMECOUNTER , R_CHANNEL , R_POWERDOWNFLAG , R_RES1 , R_RES2 , R_RES3 , W_PARITY , W_ADDR , W_INT , W_FAST , W_LOWPOWER , W_TEMP_NEN , W_LP_PERIOD , W_PARITY_EN , W_RES1 , W_RES2 , W_RES3 } |
enum | AccessMode_e { POWERDOWNMODE = 0 , FASTMODE , LOWPOWERMODE , ULTRALOWPOWERMODE , MASTERCONTROLLEDMODE } |
enum | Result { OK = 0 , ERR } |
Public Member Functions | |
Tlv493d () | |
~Tlv493d () | |
Result | Init (Config config) |
void | ReadOut () |
void | WriteOut () |
void | SetRegBits (uint8_t regMaskIndex, uint8_t data) |
uint8_t | GetRegBits (uint8_t regMaskIndex) |
void | UpdateData () |
void | SetInterrupt (bool enable) |
void | EnableTemp (bool enable) |
float | GetX () |
float | GetY () |
float | GetZ () |
float | GetTemp () |
float | GetAmount () |
float | GetAzimuth () |
float | GetPolar () |
uint16_t | GetMeasurementDelay () |
void | SetAccessMode (AccessMode_e mode) |
void | CalcParity () |
int16_t | ConcatResults (uint8_t upperByte, uint8_t lowerByte, bool upperFull) |
Public Attributes | |
const AccessMode_t | accModes [5] |
const RegMask_t | RegMasks [25] |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Initialize the TLV493D device
config | Configuration settings |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
const AccessMode_t daisy::Tlv493d< Transport >::accModes[5] |