1.. _sensor-channel:
2
3Sensor Channels
4###############
5
6:dfn:`Channels`, enumerated in :c:enum:`sensor_channel`, are quantities that
7a sensor device can measure.
8
9Sensors may have multiple channels, either to represent different axes of
10the same physical property (e.g. acceleration); or because they can measure
11different properties altogether (ambient temperature, pressure and
12humidity). Sensors may have multiple channels of the same measurement type to
13enable measuring many readings of perhaps temperature, light intensity, amperage,
14voltage, or capacitance for example.
15
16A channel is specified in Zephyr using a :c:struct:`sensor_chan_spec` which is a
17pair containing both the channel type (:c:enum:`sensor_channel`) and channel index.
18At times only :c:enum:`sensor_channel` is used but this should be considered
19historical since the introduction of :c:struct:`sensor_chan_spec` for Zephyr 3.7.
20