ad717x

Supported Drivers

The class adi.ad717x supports the following IIO drivers:

ad717x.compatible_parts = ['ad4111', 'ad4112', 'ad4113', 'ad4114', 'ad4115', 'ad4116', 'ad7172-2', 'ad7172-4', 'ad7173-8', 'ad7175-2', 'ad7175-8', 'ad7176-2', 'ad7177-2']

Class API

class adi.ad717x(uri='', device_name='', device_index=0)

Bases: rx_chan_comp

AD717x ADC

channel = []
to_volts(index, val)

Converts raw value to SI.

Dynamic Attributes

The ad717x class supports a variable number of channels depending on the hardware configuration. Therefore, the channel property interfaces are dynamically generated. They are available on an initiated object as attributes with names voltage0, voltage1, etc. They will be instances of the ad717x_channel class.

class adi.ad717x.ad717x_channel(ctrl, channel_name)

Bases: attribute

AD717x channel

property offset

AD717x channel offset.

property raw

AD717x channel raw value.

property scale

AD717x channel scale.