ad4170

Supported Drivers

The class adi.ad4170 supports the following IIO drivers:

ad4170.compatible_parts = ['ad4170', 'ad4190']

Class API

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

Bases: rx_chan_comp

AD4170 ADC

channel = []
to_volts(index, val)

Converts raw value to SI

Dynamic Attributes

The ad4170 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 ad4170_channel class.

class adi.ad4170.ad4170_channel(ctrl, channel_name)

Bases: attribute

AD4170 channel

property offset

AD4170 channel offset

property raw

AD4170 channel raw value

property scale

AD4170 channel scale