libm2k
|
Contains the representation of the M2K. More...
Classes | |
class | libm2k::context::M2k |
Controls the ADALM2000. More... | |
Functions | |
virtual void | libm2k::context::M2k::reset ()=0 |
Reset the M2K device to default settings: More... | |
virtual bool | libm2k::context::M2k::calibrateADC ()=0 |
Calibrate the ADC. More... | |
virtual bool | libm2k::context::M2k::calibrateDAC ()=0 |
Calibrate the DAC. More... | |
virtual double | libm2k::context::M2k::calibrateFromContext ()=0 |
Calibrate both ADC and DACs using predefined calibration values located in context. More... | |
virtual libm2k::digital::M2kDigital * | libm2k::context::M2k::getDigital ()=0 |
Retrieve the Digital object. More... | |
virtual libm2k::analog::M2kPowerSupply * | libm2k::context::M2k::getPowerSupply ()=0 |
Retrieve the PowerSupply object. More... | |
virtual libm2k::analog::M2kAnalogIn * | libm2k::context::M2k::getAnalogIn ()=0 |
Retrieve the AnalogIn object. More... | |
virtual libm2k::analog::M2kAnalogIn * | libm2k::context::M2k::getAnalogIn (std::string dev_name)=0 |
Retrieve the AnalogIn object of a device. More... | |
virtual libm2k::analog::M2kAnalogOut * | libm2k::context::M2k::getAnalogOut ()=0 |
Retrieve the AnalogOut object. More... | |
virtual bool | libm2k::context::M2k::hasMixedSignal ()=0 |
Check if the mixed signal acquisition is available on the current firmware version. More... | |
virtual void | libm2k::context::M2k::startMixedSignalAcquisition (unsigned int nb_samples)=0 |
Initiate the mixed acquisition. More... | |
virtual void | libm2k::context::M2k::stopMixedSignalAcquisition ()=0 |
Stop the mixed acquisition. More... | |
virtual int | libm2k::context::M2k::getDacCalibrationOffset (unsigned int chn)=0 |
Get the calibration offset of the DAC. More... | |
virtual double | libm2k::context::M2k::getDacCalibrationGain (unsigned int chn)=0 |
Get the calibration gain of the DAC. More... | |
virtual int | libm2k::context::M2k::getAdcCalibrationOffset (unsigned int chn)=0 |
Get the calibration offset of the ADC. More... | |
virtual double | libm2k::context::M2k::getAdcCalibrationGain (unsigned int chn)=0 |
Get the calibration gain of the ADC. More... | |
virtual void | libm2k::context::M2k::setDacCalibrationOffset (unsigned int chn, int offset)=0 |
Set the calibration offset of the DAC. More... | |
virtual void | libm2k::context::M2k::setDacCalibrationGain (unsigned int chn, double gain)=0 |
Set the calibration gain of the DAC. More... | |
virtual void | libm2k::context::M2k::setAdcCalibrationOffset (unsigned int chn, int offset)=0 |
Set the calibration offset of the ADC. More... | |
virtual void | libm2k::context::M2k::setAdcCalibrationGain (unsigned int chn, double gain)=0 |
Set the calibration gain of the ADC. More... | |
virtual bool | libm2k::context::M2k::hasContextCalibration ()=0 |
Check if the calibration based on temperature can be performed. More... | |
virtual std::map< double, std::shared_ptr< struct CALIBRATION_PARAMETERS > > & | libm2k::context::M2k::getLUT ()=0 |
Retrieve the predefined calibration parameter. More... | |
virtual bool | libm2k::context::M2k::isCalibrated ()=0 |
Check if the board was calibrated. More... | |
virtual void | libm2k::context::M2k::setLed (bool on)=0 |
Turn on or off the board's led. More... | |
virtual bool | libm2k::context::M2k::getLed ()=0 |
Retrieve the state of the led. More... | |
Contains the representation of the M2K.
|
pure virtual |
Calibrate the ADC.
|
pure virtual |
Calibrate the DAC.
|
pure virtual |
Calibrate both ADC and DACs using predefined calibration values located in context.
|
pure virtual |
Get the calibration gain of the ADC.
chn | The index corresponding to a channel |
|
pure virtual |
Get the calibration offset of the ADC.
chn | The index corresponding to a channel |
|
pure virtual |
Retrieve the AnalogIn object.
|
pure virtual |
Retrieve the AnalogIn object of a device.
dev_name | The name corresponding to a device |
|
pure virtual |
Retrieve the AnalogOut object.
|
pure virtual |
Get the calibration gain of the DAC.
chn | The index corresponding to a channel |
|
pure virtual |
Get the calibration offset of the DAC.
chn | The index corresponding to a channel |
|
pure virtual |
Retrieve the Digital object.
EXC_INVALID_PARAMETER | No M2K digital device found |
|
pure virtual |
Retrieve the state of the led.
|
pure virtual |
Retrieve the predefined calibration parameter.
|
pure virtual |
Retrieve the PowerSupply object.
EXC_INVALID_PARAMETER | No M2K power supply |
|
pure virtual |
Check if the calibration based on temperature can be performed.
|
pure virtual |
Check if the mixed signal acquisition is available on the current firmware version.
|
pure virtual |
Check if the board was calibrated.
|
pure virtual |
Reset the M2K device to default settings:
Implements libm2k::context::Context.
|
pure virtual |
Set the calibration gain of the ADC.
chn | The index corresponding to a channel |
gain | The calibration gain value |
|
pure virtual |
Set the calibration offset of the ADC.
chn | The index corresponding to a channel |
offset | The calibration offset value |
|
pure virtual |
Set the calibration gain of the DAC.
chn | The index corresponding to a channel |
gain | The calibration gain value |
|
pure virtual |
Set the calibration offset of the DAC.
chn | The index corresponding to a channel |
offset | The calibration offset value |
|
pure virtual |
Turn on or off the board's led.
on | A boolean value corresponding to the state of the led |
|
pure virtual |
Initiate the mixed acquisition.
nb_samples | The number of samples that will be retrieved |
|
pure virtual |
Stop the mixed acquisition.