From 65a5a5f4c3a1d06089f71e9fe165c561b20b7e2c Mon Sep 17 00:00:00 2001 From: Paul Cercueil Date: Wed, 15 Nov 2023 15:11:42 +0100 Subject: [PATCH] python: Add offset to data format structure Add an 'offset' field, which contains the offset that should be added to the raw sample values. Signed-off-by: Paul Cercueil --- bindings/python/iio.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bindings/python/iio.py b/bindings/python/iio.py index 266c3e2ea..aae654f9a 100644 --- a/bindings/python/iio.py +++ b/bindings/python/iio.py @@ -137,6 +137,7 @@ class DataFormat(Structure): ("with_scale", c_bool), ("scale", c_double), ("repeat", c_uint), + ("offset", c_double), ]