deviceaccess.AccessMode

class deviceaccess.AccessMode

Bases: pybind11_object

Access mode flags for register access.

Note:

Using the raw flag makes code dependent on the backend type, since the actual raw data type must be known.

Members:

raw : This access mode disables any possible conversion from the original hardware data type into the given UserType. Obtaining the accessor with a UserType unequal to the actual raw data type will fail and throw an exception.

wait_for_new_data : This access mode makes any read blocking until new data has arrived since the last read. This flag may not be supported by all registers (and backends), in which case an exception will be thrown.

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

Methods

__init__(self, value)

Attributes

name

raw

value

wait_for_new_data

__init__(self: deviceaccess.AccessMode, value: int) None
property name
raw = <AccessMode.raw: 0>
property value
wait_for_new_data = <AccessMode.wait_for_new_data: 1>