deviceaccess.DataValidity

class deviceaccess.DataValidity

Bases: pybind11_object

The current state of the data.

Note:

This is a flag to describe the validity of the data. It should be used to signalize whether or not to trust the data currently. It MUST NOT be used to signalize any communication errors with a device, rather to signalize the consumer after such an error that the data is currently not trustable, because we are performing calculations with the last known valid data, for example.

Members:

ok : The data is considered valid.

faulty : The data is not considered valid.

__init__(self: deviceaccess.DataValidity, value: int) None

Methods

__init__(self, value)

Attributes

faulty

name

ok

value

__init__(self: deviceaccess.DataValidity, value: int) None
faulty = <DataValidity.faulty: 1>
property name
ok = <DataValidity.ok: 0>
property value