ad738x

Supported Drivers

The class adi.ad738x supports the following IIO drivers:

ad738x.compatible_parts = ['ad7381', 'ad7380', 'ad7380-4', 'ad7389-4', 'ad7381-4', 'ad7383', 'ad7384', 'ad7386', 'ad7387', 'ad7388', 'ad4680', 'ad4681', 'ad4682', 'ad4683']

Class API

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

Bases: rx_chan_comp

AD738x ADC

to_volts(index, val)

Converts raw value to SI.

Dynamic Attributes

The ad738x 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 ad738x_channel class.

class adi.ad738x.ad738x_channel(ctrl, channel_name)

Bases: attribute

AD738x channel

property offset

AD738x channel offset.

property raw

AD738x channel raw value.

property scale

AD738x channel scale.