Zephyr Project API 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
tmag5273.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 Intel Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
12#ifndef ZEPHYR_INCLUDE_DRIVERS_SENSOR_TMAG5273_H_
13#define ZEPHYR_INCLUDE_DRIVERS_SENSOR_TMAG5273_H_
14
22#ifdef __cplusplus
23extern "C" {
24#endif
25
27
28/* --- Additional TMAG5273 definitions */
29
47
62
67#define TMAG5273_ANGLE_CALC_NONE 0
68#define TMAG5273_ANGLE_CALC_XY 1
69#define TMAG5273_ANGLE_CALC_YZ 2
70#define TMAG5273_ANGLE_CALC_XZ 3
73#ifdef __cplusplus
74}
75#endif
76
81#endif /* ZEPHYR_INCLUDE_DRIVERS_SENSOR_TMAG5273_H_ */
@ SENSOR_ATTR_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:376
@ SENSOR_CHAN_PRIV_START
This and higher values are sensor specific.
Definition sensor.h:221
tmag5273_sensor_channel
Additional channels supported by the TMAG5273.
Definition tmag5273.h:31
tmag5273_attribute
Additional attributes supported by the TMAG5273.
Definition tmag5273.h:49
@ TMAG5273_CHAN_ANGLE_MAGNITUDE
Angle result in deg, magnitude result in Gs and magnitude MSB between two axis.
Definition tmag5273.h:45
@ TMAG5273_CHAN_MAGNITUDE_MSB
Magnitude measurement MSB as returned by the sensor.
Definition tmag5273.h:40
@ TMAG5273_CHAN_MAGNITUDE
Magnitude measurement result between two axis in Gs.
Definition tmag5273.h:35
@ TMAG5273_ATTR_ANGLE_MAG_AXIS
Define axis relation measurements.
Definition tmag5273.h:60
Public APIs for the sensor driver.