| 70da0206 | 08-Sep-2025 |
Antoniu Miclaus <antoniu.miclaus@analog.com> |
iio: add power and energy measurement modifiers
Add new IIO modifiers to support power and energy measurement devices:
Power modifiers: - IIO_MOD_ACTIVE: Real power consumed by the load - IIO_MOD_R
iio: add power and energy measurement modifiers
Add new IIO modifiers to support power and energy measurement devices:
Power modifiers: - IIO_MOD_ACTIVE: Real power consumed by the load - IIO_MOD_REACTIVE: Power that oscillates between source and load - IIO_MOD_APPARENT: Magnitude of complex power
Signal quality modifiers: - IIO_MOD_RMS: Root Mean Square value
Additionally adds: - IIO_CHAN_INFO_POWERFACTOR: Power factor channel info type for representing the ratio of active power to apparent power
These modifiers enable proper representation of power measurement devices like energy meters and power analyzers.
Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
show more ...
|
| 2d3dff57 | 03-Oct-2023 |
Matti Vaittinen <mazziesaccount@gmail.com> |
tools: iio: iio_generic_buffer ensure alignment
The iio_generic_buffer can return garbage values when the total size of scan data is not a multiple of the largest element in the scan. This can be de
tools: iio: iio_generic_buffer ensure alignment
The iio_generic_buffer can return garbage values when the total size of scan data is not a multiple of the largest element in the scan. This can be demonstrated by reading a scan, consisting, for example of one 4-byte and one 2-byte element, where the 4-byte element is first in the buffer.
The IIO generic buffer code does not take into account the last two padding bytes that are needed to ensure that the 4-byte data for next scan is correctly aligned.
Add the padding bytes required to align the next sample with the scan size.
Signed-off-by: Matti Vaittinen <mazziesaccount@gmail.com> Fixes: e58537ccce73 ("staging: iio: update example application.") Link: https://lore.kernel.org/r/ZRvlm4ktNLu+qmlf@dc78bmyyyyyyyyyyyyydt-3.rev.dnainternet.fi Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
show more ...
|
| 06790d4c | 19-Sep-2023 |
Basavaraj Natikar <Basavaraj.Natikar@amd.com> |
iio: Add channel type for chromaticity
In most cases, ambient color sensors also support the x and y light colors, which represent the coordinates on the CIE 1931 chromaticity diagram. Thus, add cha
iio: Add channel type for chromaticity
In most cases, ambient color sensors also support the x and y light colors, which represent the coordinates on the CIE 1931 chromaticity diagram. Thus, add channel type for chromaticity.
Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com> Link: https://lore.kernel.org/r/20230919081054.2050714-7-Basavaraj.Natikar@amd.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
show more ...
|
| 94a39f2c | 08-Aug-2023 |
Ramona Bolboaca <ramona.bolboaca@analog.com> |
iio: Add IIO_DELTA_VELOCITY channel type
The delta velocity is defined as a piece-wise integration of acceleration data. The delta velocity represents the linear velocity change between two consecut
iio: Add IIO_DELTA_VELOCITY channel type
The delta velocity is defined as a piece-wise integration of acceleration data. The delta velocity represents the linear velocity change between two consecutive measurements and it is measured in m / s (meters per second).
In order to track the total linear velocity change during a desired period of time, simply sum-up the delta velocity samples acquired during that time.
IIO currently does not offer a suitable channel type for this type of measurements hence this patch adds it.
Signed-off-by: Ramona Bolboaca <ramona.bolboaca@analog.com> Reviewed-by: Nuno Sa <nuno.sa@analog.com> Link: https://lore.kernel.org/r/20230808075059.645525-3-ramona.bolboaca@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
show more ...
|
| ab9d343d | 07-Sep-2022 |
Andrea Merello <andrea.merello@iit.it> |
iio: event_monitor: add pitch, yaw and roll modifiers
Following the introduction of pitch, yaw and roll IIO modifiers, update the event_monitor tool accordingly.
Signed-off-by: Andrea Merello <andr
iio: event_monitor: add pitch, yaw and roll modifiers
Following the introduction of pitch, yaw and roll IIO modifiers, update the event_monitor tool accordingly.
Signed-off-by: Andrea Merello <andrea.merello@iit.it> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20220907132205.28021-7-andrea.merello@iit.it Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
show more ...
|