Class daisy::Tlv493d¶
Device support for TLV493D Magnetic Sensor. More...
#include <tlv493d.h>
Classes¶
Type | Name |
---|---|
struct | AccessMode_t |
struct | Config |
struct | RegMask_t |
Public Types¶
Type | Name |
---|---|
enum | AccessMode_e |
enum | Registers_e |
enum | Result |
Public Attributes¶
Type | Name |
---|---|
const RegMask_t | RegMasks = /* multi line expression */ |
const AccessMode_t | accModes = /* multi line expression */ |
Public Functions¶
Type | Name |
---|---|
void | CalcParity () |
int16_t | ConcatResults (uint8_t upperByte, uint8_t lowerByte, bool upperFull) |
void | EnableTemp (bool enable) |
float | GetAmount () |
float | GetAzimuth () |
uint16_t | GetMeasurementDelay () |
float | GetPolar () |
uint8_t | GetRegBits (uint8_t regMaskIndex) |
float | GetTemp () |
float | GetX () |
float | GetY () |
float | GetZ () |
Result | Init (Config config) |
void | ReadOut () |
void | SetAccessMode (AccessMode_e mode) |
void | SetInterrupt (bool enable) |
void | SetRegBits (uint8_t regMaskIndex, uint8_t data) |
Tlv493d () |
|
void | UpdateData () |
void | WriteOut () |
~Tlv493d () |
Detailed Description¶
Author:
beserge
Date:
December 2021
Public Types Documentation¶
enum AccessMode_e¶
enum daisy::Tlv493d::AccessMode_e {
POWERDOWNMODE = 0,
FASTMODE,
LOWPOWERMODE,
ULTRALOWPOWERMODE,
MASTERCONTROLLEDMODE
};
enum Registers_e¶
enum daisy::Tlv493d::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 Result¶
Public Attributes Documentation¶
variable RegMasks¶
variable accModes¶
Public Functions Documentation¶
function CalcParity¶
function ConcatResults¶
inline int16_t daisy::Tlv493d::ConcatResults (
uint8_t upperByte,
uint8_t lowerByte,
bool upperFull
)
function EnableTemp¶
function GetAmount¶
function GetAzimuth¶
function GetMeasurementDelay¶
function GetPolar¶
function GetRegBits¶
function GetTemp¶
function GetX¶
function GetY¶
function GetZ¶
function Init¶
Initialize the TLV493D device
Parameters:
config
Configuration settings
function ReadOut¶
function SetAccessMode¶
function SetInterrupt¶
function SetRegBits¶
function Tlv493d¶
function UpdateData¶
function WriteOut¶
function ~Tlv493d¶
The documentation for this class was generated from the following file external-docs/libDaisy/src/dev/tlv493d.h