Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Shared constants for remapping sensor axes in the devicetree. More...

Files

file  sensor_axis_align.h
 Devicetree binding constants for sensor axis alignment.

Axis index

Values for the axis-align-x, axis-align-y, and axis-align-z devicetree properties.

#define SENSOR_AXIS_ALIGN_DT_X   0
 X axis.
#define SENSOR_AXIS_ALIGN_DT_Y   1
 Y axis.
#define SENSOR_AXIS_ALIGN_DT_Z   2
 Z axis.

Axis direction

Values for the axis-align-x-sign, axis-align-y-sign, and axis-align-z-sign devicetree properties.

#define SENSOR_AXIS_ALIGN_DT_NEG   0
 Negative direction.
#define SENSOR_AXIS_ALIGN_DT_POS   2
 Positive direction.

Detailed Description

Shared constants for remapping sensor axes in the devicetree.

Macro Definition Documentation

◆ SENSOR_AXIS_ALIGN_DT_NEG

#define SENSOR_AXIS_ALIGN_DT_NEG   0

#include <zephyr/dt-bindings/sensor/sensor_axis_align.h>

Negative direction.

◆ SENSOR_AXIS_ALIGN_DT_POS

#define SENSOR_AXIS_ALIGN_DT_POS   2

#include <zephyr/dt-bindings/sensor/sensor_axis_align.h>

Positive direction.

◆ SENSOR_AXIS_ALIGN_DT_X

#define SENSOR_AXIS_ALIGN_DT_X   0

◆ SENSOR_AXIS_ALIGN_DT_Y

#define SENSOR_AXIS_ALIGN_DT_Y   1

◆ SENSOR_AXIS_ALIGN_DT_Z

#define SENSOR_AXIS_ALIGN_DT_Z   2