maxm86161

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

Bases: rx_chan_comp

MAXM86161 Integrated Optical Data Acquisition System (PPG AFE)

Args:
uri:

URI of the IIO context (e.g. serial:/dev/ttyACM0,115200,8n1 or serial:COM149,115200,8n1 for Windows).

device_name:

Name of the IIO device (default: maxm86161).

device_index:

Index of the device when multiple devices share the same name.

property adc_range

Get/set PPG ADC full-scale range selection.

0=4uA, 1=8uA, 2=16uA, 3=32uA.

property add_offset

Get/set ADC add-offset enable flag.

property alc_disable

Get/set ambient-light cancellation disable flag (0=ALC on).

property buffer_enable

Get/set data capture (exit/enter shutdown and reset buffer).

property burst_enable

Get/set burst-sampling enable flag.

property burst_rate

Get/set burst-sampling rate selection.

0=8Hz, 1=32Hz, 2=84Hz, 3=256Hz.

channel = []
compatible_parts = ['maxm86161']
property die_temperature

Get die temperature in micro-degrees Celsius (read-only).

property dig_filter

Get/set PPG digital-filter selection (0=CDM, 1=FDM).

property fifo_a_full_type

Get/set FIFO almost-full interrupt assertion behavior.

property fifo_count

Get number of samples currently in the FIFO (read-only).

property fifo_overflow_count

Get number of samples lost to FIFO overflow (read-only).

property fifo_rollover

Get/set FIFO roll-over-on-full enable (0=stop, 1=overwrite).

property fifo_watermark

Get/set FIFO almost-full watermark threshold.

get_led_pa(led)

Get the pulse amplitude (drive current code) of an LED.

Args:
led:

LED number (1=green, 2=IR, 3=red).

get_led_range(led)

Get the full-scale current range of an LED driver.

Args:
led:

LED number (1=green, 2=IR, 3=red).

get_led_sequence(slot)

Get the LED/measurement source for a sequence slot.

Args:
slot:

Sequence slot number (1-6).

Source codes: 0=none, 1=green, 2=IR, 3=red, 8=pilot green, 9=direct ambient.

property integration_time

Get/set PPG ADC integration-time selection.

0=14.8us, 1=29.4us, 2=58.7us, 3=117.3us.

property interrupt_status

Get combined 16-bit interrupt status (read-only, hex string).

property led_pilot_pa

Get/set pilot LED pulse amplitude used in proximity mode.

property led_settling

Get/set LED settling-time selection.

0=4us, 1=6us, 2=8us, 3=12us.

property low_power_mode

Get/set low-power-mode enable flag (for <=256 sps).

property part_id

Get device part ID (read-only, hex string, expected 0x36).

property pd_bias

Get/set photodiode bias selection.

1=0-65pF, 5=65-130pF, 6=130-260pF, 7=260-520pF.

property picket_fence_enable

Get/set picket-fence detect-and-replace enable flag.

property picket_fence_iir_init

Get/set picket-fence IIR initialization value.

property picket_fence_iir_tc

Get/set picket-fence IIR time-constant selection.

property picket_fence_order

Get/set picket-fence ordering flag.

property picket_fence_threshold_sigma

Get/set picket-fence threshold sigma multiplier.

property prox_threshold

Get/set proximity-mode entry threshold.

property rev_id

Get device revision ID (read-only, hex string).

property sample_averaging

Get/set number of samples averaged per FIFO data point.

0=1, 1=2, 2=4, 3=8, 4=16, 5=32, 6=64, 7=128.

property sample_rate

Get/set PPG sample-rate selection code.

set_led_pa(led, value)

Set the pulse amplitude (drive current code) of an LED.

Args:
led:

LED number (1=green, 2=IR, 3=red).

value:

8-bit pulse-amplitude code (0-255).

set_led_range(led, value)

Set the full-scale current range of an LED driver.

Args:
led:

LED number (1=green, 2=IR, 3=red).

value:

Range code (0=31mA, 1=62mA, 2=93mA, 3=124mA).

set_led_sequence(slot, value)

Set the LED/measurement source for a sequence slot.

Args:
slot:

Sequence slot number (1-6).

value:

LED source code (0=none, 1=green, 2=IR, 3=red, 8=pilot green, 9=direct ambient).

property shutdown

Get/set device shutdown (power-down) state.