ad469x

Supported Drivers

The class adi.ad469x supports the following IIO drivers:

ad469x.compatible_parts = ['ad4691', 'ad4692', 'ad4693', 'ad4694', 'ad4695', 'ad4696', 'ad4697', 'ad4698']

Class API

class adi.ad469x(uri='', device_name='')

Bases: rx_chan_comp

AD469x ADC.

Supports the ad4695.c Linux driver family (ad4695/96/97/98) and the ad4691.c Linux driver family (ad4691/92/93/94).

channel = []
to_volts(index, val)

Converts raw value to SI.

Dynamic Attributes

The ad469x class supports a variable number of channels depending on the hardware configuration. Channel attributes are dynamically generated and available on an initiated object as attributes with names voltage0, voltage1, etc.

The channel class is selected automatically based on the device name:

  • ad4695.c family (ad4695/96/97/98): channels are instances of ad4695_channel, which adds offset, calibscale, and calibbias on top of the base attributes.

  • ad4691.c family (ad4691/92/93/94): channels are instances of ad4691_channel, which adds oversampling_ratio, oversampling_ratio_available, and sampling_frequency on top of the base attributes.

class adi.ad469x.ad469x_channel(ctrl, channel_name)

Bases: attribute

AD469x base channel with attributes common to all parts.

property raw

AD469x channel raw value.

property scale

AD469x channel scale.

class adi.ad469x.ad4695_channel(ctrl, channel_name)

Bases: ad469x_channel

AD4695 channel with offset and calibration attributes (ad4695.c family).

property calibbias

AD469x channel calibration bias.

property calibscale

AD469x channel calibration scale.

property offset

AD469x channel offset.

class adi.ad469x.ad4691_channel(ctrl, channel_name)

Bases: ad469x_channel

AD4691 channel with oversampling and sampling frequency (ad4691.c family).

property oversampling_ratio

AD4691 channel oversampling ratio.

property oversampling_ratio_available

List of available oversampling ratios.

property sampling_frequency

AD4691 channel sampling frequency in Hz.

property scale

AD4691 channel scale (device-level, shared by all channels).