Zephyr API Documentation 4.0.0
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
tmag5273.h File Reference

Go to the source code of this file.

Macros

#define TMAG5273_ANGLE_CALC_NONE   0
 Supported values.
 
#define TMAG5273_ANGLE_CALC_XY   1
 
#define TMAG5273_ANGLE_CALC_YZ   2
 
#define TMAG5273_ANGLE_CALC_XZ   3
 

Enumerations

enum  tmag5273_sensor_channel { TMAG5273_CHAN_MAGNITUDE = SENSOR_CHAN_PRIV_START , TMAG5273_CHAN_MAGNITUDE_MSB , TMAG5273_CHAN_ANGLE_MAGNITUDE }
 Additional channels supported by the TMAG5273. More...
 
enum  tmag5273_attribute { TMAG5273_ATTR_ANGLE_MAG_AXIS = SENSOR_ATTR_PRIV_START }
 Additional attributes supported by the TMAG5273. More...
 

Macro Definition Documentation

◆ TMAG5273_ANGLE_CALC_NONE

#define TMAG5273_ANGLE_CALC_NONE   0

Supported values.

◆ TMAG5273_ANGLE_CALC_XY

#define TMAG5273_ANGLE_CALC_XY   1

◆ TMAG5273_ANGLE_CALC_XZ

#define TMAG5273_ANGLE_CALC_XZ   3

◆ TMAG5273_ANGLE_CALC_YZ

#define TMAG5273_ANGLE_CALC_YZ   2

Enumeration Type Documentation

◆ tmag5273_attribute

Additional attributes supported by the TMAG5273.

Enumerator
TMAG5273_ATTR_ANGLE_MAG_AXIS 

Define axis relation measurements.

Supported values are:

  • TMAG5273_DT_ANGLE_MAG_NONE (0)
  • TMAG5273_DT_ANGLE_MAG_XY (1)
  • TMAG5273_DT_ANGLE_MAG_YZ (2)
  • TMAG5273_DT_ANGLE_MAG_XZ (3)

Only available if calculation source can be changed during runtime.

◆ tmag5273_sensor_channel

Additional channels supported by the TMAG5273.

Enumerator
TMAG5273_CHAN_MAGNITUDE 

Magnitude measurement result between two axis in Gs.

TMAG5273_CHAN_MAGNITUDE_MSB 

Magnitude measurement MSB as returned by the sensor.

TMAG5273_CHAN_ANGLE_MAGNITUDE 

Angle result in deg, magnitude result in Gs and magnitude MSB between two axis.