maxm86161
- class adi.maxm86161.maxm86161(uri='', device_name='', device_index=0)
Bases:
rx_chan_compMAXM86161 Integrated Optical Data Acquisition System (PPG AFE)
- Args:
- uri:
URI of the IIO context (e.g.
serial:/dev/ttyACM0,115200,8n1orserial:COM149,115200,8n1for Windows).- device_name:
Name of the IIO device (default:
maxm86161).- device_index:
Index of the device when multiple devices share the same name.
- 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 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.
- 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).