ad7124

Supported Drivers

The class adi.ad7124 supports the following IIO drivers:

ad7124.compatible_parts = ['ad7124-8', 'ad7124-4']

Class API

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

Bases: rx_chan_comp

AD7124 ADC

property sample_rate

Sets sampling frequency of the AD7124

property scale_available

Provides all available scale(gain) settings for the AD7124 channels

to_volts(index, val)

Converts raw value to SI

Dynamic Attributes

The ad7124 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-voltage0, voltage1-voltage1, etc. They will be instances of the ad7124_channel class.

class adi.ad7124.ad7124_channel(ctrl, channel_name)

Bases: attribute

AD7124 channel

property offset

AD7124 channel offset

property raw

AD7124 channel raw value

property scale

AD7124 channel scale(gain)