Skip to content

Commit

Permalink
python: Add offset to data format structure
Browse files Browse the repository at this point in the history
Add an 'offset' field, which contains the offset that should be added to
the raw sample values.

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
pcercuei committed Nov 21, 2023
1 parent 7881bb5 commit 65a5a5f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bindings/python/iio.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ class DataFormat(Structure):
("with_scale", c_bool),
("scale", c_double),
("repeat", c_uint),
("offset", c_double),
]


Expand Down

0 comments on commit 65a5a5f

Please sign in to comment.