AMU Library 3.0
C/C++ library for communicating with AMU (Aerospace Measurement Unit) devices
Loading...
Searching...
No Matches
I2C ADC Commands

I2C Analog-to-Digital Converter control and calibration commands. More...

Enumerations

enum  CMD_ADC_CH_t {
  CMD_ADC_CH_REG = 0x0100 + 0x60+ 0x00 ,
  CMD_ADC_CH_SETUP = 0x0100 + 0x60+ 0x01 ,
  CMD_ADC_CH_FILTER = 0x0100 + 0x60+ 0x02 ,
  CMD_ADC_CH_RATE = 0x0100 + 0x60+ 0x03 ,
  CMD_ADC_CH_PGA = 0x0100 + 0x60+ 0x04 ,
  CMD_ADC_CH_PGA_MAX = 0x0100 + 0x60+ 0x05 ,
  CMD_ADC_CH_PGA_VMAX = 0x0100 + 0x60+ 0x06 ,
  CMD_ADC_CH_PGA_IMAX = 0x0100 + 0x60+ 0x07 ,
  CMD_ADC_CH_SAVE = 0x0100 + 0x60+ 0x08 ,
  CMD_ADC_CH_OFFSET_COEFF = 0x0100 + 0x60+ 0x09 ,
  CMD_ADC_CH_GAIN_COEFF = 0x0100 + 0x60+ 0x0A ,
  CMD_ADC_CH_CAL_INTERNAL = 0x0100 + 0x60+ 0x0B ,
  CMD_ADC_CH_CAL_ZERO_SCALE = 0x0100 + 0x60+ 0x0C ,
  CMD_ADC_CH_CAL_FULL_SCALE = 0x0100 + 0x60+ 0x0D ,
  CMD_ADC_CH_CAL_RESET = 0x0100 + 0x60+ 0x0E ,
  CMD_ADC_CH_CAL_SAVE = 0x0100 + 0x60+ 0x0F
}
 ADC channel configuration command identifiers. More...

Detailed Description

I2C Analog-to-Digital Converter control and calibration commands.

These I2C commands control ADC operation including:

  • Channel configuration (CMD_ADC_CH_*)
  • PGA (Programmable Gain Amplifier) settings
  • Calibration procedures
  • Filter configuration
  • Sample rate control
  • Voltage/current specific calibration

Commands span ranges 0x016x (channel config), 0x021x-0x023x (USB ADC), 0x025x (USB sweep).

Enumeration Type Documentation

◆ CMD_ADC_CH_t

ADC channel configuration command identifiers.

These commands configure individual ADC channels including setup, filtering, gain settings, and calibration procedures. Channel numbers range from 0-15.

Enumerator
CMD_ADC_CH_REG 0x0100 + 0x60+ 0x00 

Sets or queries ADC channel register.

Sets or queries ADC channel register configuration

Parameters
channelChannel number (0-15)
valueRegister configuration value
Returns
Current ADC channel register value
SCPI Equivalent:
ADC:CH#[?] Root command for I2C/USB commands
CMD_ADC_CH_SETUP 0x0100 + 0x60+ 0x01 

Sets or queries ADC channel setup.

Sets or queries ADC channel setup register (input selection, etc.)

Parameters
channelChannel number (0-15)
setupSetup register configuration
Returns
Current ADC channel setup configuration
SCPI Equivalent:
ADC:CH#:SETup[?] Root command for I2C/USB commands
CMD_ADC_CH_FILTER 0x0100 + 0x60+ 0x02 

Sets or queries ADC channel filter.

Sets or queries ADC channel digital filter settings

Parameters
channelChannel number (0-15)
filterDigital filter configuration
Returns
Current ADC channel filter settings
SCPI Equivalent:
ADC:CH#:FILTer[?] Root command for I2C/USB commands
CMD_ADC_CH_RATE 0x0100 + 0x60+ 0x03 

Sets or queries ADC channel sample rate.

Sets or queries ADC channel sample rate in Hz

Parameters
channelChannel number (0-15)
rateSample rate in Hz
Returns
Current ADC channel sample rate
SCPI Equivalent:
ADC:CH#:RATE[?] Root command for I2C/USB commands
CMD_ADC_CH_PGA 0x0100 + 0x60+ 0x04 

Sets or queries ADC channel PGA setting.

Sets or queries programmable gain amplifier setting (1, 2, 4, 8, 16, 32, 64, 128)

Parameters
channelChannel number (0-15)
gainPGA gain setting (1, 2, 4, 8, 16, 32, 64, 128)
Returns
Current ADC channel PGA setting
SCPI Equivalent:
ADC:CH#:PGA[?] Root command for I2C/USB commands
CMD_ADC_CH_PGA_MAX 0x0100 + 0x60+ 0x05 

Queries maximum input range for current PGA.

Queries maximum input range for current PGA setting

Parameters
channelChannel number (0-15)
Returns
Maximum input range for current PGA setting
SCPI Equivalent:
ADC:CH#:MAX? Root command for I2C/USB commands
CMD_ADC_CH_PGA_VMAX 0x0100 + 0x60+ 0x06 

Queries maximum voltage range for PGA.

Queries maximum voltage range for specified PGA setting

Parameters
pgaPGA gain setting
Returns
Maximum voltage range for specified PGA setting
SCPI Equivalent:
ADC:VOLTage:MAX:PGA#? Root command for I2C/USB commands
CMD_ADC_CH_PGA_IMAX 0x0100 + 0x60+ 0x07 

Queries maximum current range for PGA.

Queries maximum current range for specified PGA setting

Parameters
pgaPGA gain setting
Returns
Maximum current range for specified PGA setting
SCPI Equivalent:
ADC:CURRent:MAX:PGA#? Root command for I2C/USB commands
CMD_ADC_CH_SAVE 0x0100 + 0x60+ 0x08 

Saves ADC channel configuration.

Saves current channel configuration to EEPROM

Parameters
channelChannel number (0-15)
SCPI Equivalent:
ADC:CH#:SAVE Root command for I2C/USB commands
CMD_ADC_CH_OFFSET_COEFF 0x0100 + 0x60+ 0x09 

Sets or queries ADC channel offset coefficient.

Sets or queries ADC channel offset calibration coefficient

Parameters
channelChannel number (0-15)
coefficientOffset calibration coefficient
Returns
Current offset calibration coefficient
SCPI Equivalent:
ADC:CH#:OFFset[?] Root command for I2C/USB commands
CMD_ADC_CH_GAIN_COEFF 0x0100 + 0x60+ 0x0A 

Sets or queries ADC channel gain coefficient.

Sets or queries ADC channel gain calibration coefficient

Parameters
channelChannel number (0-15)
coefficientGain calibration coefficient
Returns
Current gain calibration coefficient
SCPI Equivalent:
ADC:CH#:GAIN[?] Root command for I2C/USB commands
CMD_ADC_CH_CAL_INTERNAL 0x0100 + 0x60+ 0x0B 

Performs internal ADC channel calibration.

Performs internal calibration for the specified channel

Parameters
channelChannel number (0-15)
SCPI Equivalent:
ADC:CH#:CALibrate:INTernal Root command for I2C/USB commands
CMD_ADC_CH_CAL_ZERO_SCALE 0x0100 + 0x60+ 0x0C 

Performs zero-scale ADC calibration.

Performs zero-scale calibration for the specified channel

Parameters
channelChannel number (0-15)
SCPI Equivalent:
ADC:CH#:CALibrate:ZERO Root command for I2C/USB commands
CMD_ADC_CH_CAL_FULL_SCALE 0x0100 + 0x60+ 0x0D 

Performs full-scale ADC calibration.

Performs full-scale calibration for the specified channel

Parameters
channelChannel number (0-15)
SCPI Equivalent:
ADC:CH#:CALibrate:FULL Root command for I2C/USB commands
CMD_ADC_CH_CAL_RESET 0x0100 + 0x60+ 0x0E 

Resets ADC channel calibration.

Resets channel calibration to factory defaults

Parameters
channelChannel number (0-15)
SCPI Equivalent:
ADC:CH#:CALibrate:RESet Root command for I2C/USB commands
CMD_ADC_CH_CAL_SAVE 0x0100 + 0x60+ 0x0F 

Saves ADC channel calibration.

Saves channel calibration coefficients to EEPROM

Parameters
channelChannel number (0-15)
SCPI Equivalent:
ADC:CH#:CALibrate:SAVe Root command for I2C/USB commands

Definition at line 798 of file amu_commands.h.