libm2k
|
Contains the representation of the analogical output segment. More...
![]() |
Classes | |
class | libm2k::analog::M2kAnalogOut |
Controls the analogical output compound. More... | |
Functions | |
virtual std::vector< int > | libm2k::analog::M2kAnalogOut::getOversamplingRatio ()=0 |
Retrieve the global oversampling ratio. More... | |
virtual int | libm2k::analog::M2kAnalogOut::getOversamplingRatio (unsigned int chn)=0 |
Retrieve the oversampling ratio for the given channel. More... | |
virtual std::vector< int > | libm2k::analog::M2kAnalogOut::setOversamplingRatio (std::vector< int > oversampling_ratio)=0 |
Set the value of the oversampling ratio for each channel. More... | |
virtual int | libm2k::analog::M2kAnalogOut::setOversamplingRatio (unsigned int chn, int oversampling_ratio)=0 |
Set the oversampling ratio for the given channel. More... | |
virtual std::vector< double > | libm2k::analog::M2kAnalogOut::getSampleRate ()=0 |
Retrieve the sample rate of both DACs. More... | |
virtual double | libm2k::analog::M2kAnalogOut::getSampleRate (unsigned int chn)=0 |
Retrieve the sample rate for the given channel. More... | |
virtual std::vector< double > | libm2k::analog::M2kAnalogOut::getAvailableSampleRates (unsigned int chn)=0 |
getAvailableSampleRates More... | |
virtual std::vector< double > | libm2k::analog::M2kAnalogOut::setSampleRate (std::vector< double > samplerates)=0 |
Set the sample rate for both channels. More... | |
virtual double | libm2k::analog::M2kAnalogOut::setSampleRate (unsigned int chn, double samplerate)=0 |
Set the sample rate for the given channel. More... | |
virtual void | libm2k::analog::M2kAnalogOut::setCyclic (bool en)=0 |
Enable or disable the cyclic mode for all digital channels. More... | |
virtual void | libm2k::analog::M2kAnalogOut::setCyclic (unsigned int chn, bool en)=0 |
Enable or disable the cyclic mode for all digital channels. More... | |
virtual bool | libm2k::analog::M2kAnalogOut::getCyclic (unsigned int chn)=0 |
Retrieve the value of the cyclic mode. More... | |
virtual double | libm2k::analog::M2kAnalogOut::getScalingFactor (unsigned int chn)=0 |
Retrieve the scaling factor for the given channel. More... | |
virtual double | libm2k::analog::M2kAnalogOut::getFilterCompensation (double samplerate)=0 |
Retrieve the filter compensation for the given sample rate. More... | |
virtual void | libm2k::analog::M2kAnalogOut::pushBytes (unsigned int chnIdx, double *data, unsigned int nb_samples)=0 |
Send the samples to the given channel. More... | |
virtual void | libm2k::analog::M2kAnalogOut::pushRawBytes (unsigned int chnIdx, short *data, unsigned int nb_samples)=0 |
Send the samples to the given channel. More... | |
virtual void | libm2k::analog::M2kAnalogOut::pushInterleaved (double *data, unsigned int nb_channels, unsigned int nb_samples)=0 |
Send samples to all the channels. More... | |
virtual void | libm2k::analog::M2kAnalogOut::pushRawInterleaved (short *data, unsigned int nb_channels, unsigned int nb_samples)=0 |
Send samples to all the channels. More... | |
virtual void | libm2k::analog::M2kAnalogOut::push (unsigned int chnIdx, std::vector< double > const &data)=0 |
Send the samples to the given channel. More... | |
virtual void | libm2k::analog::M2kAnalogOut::pushRaw (unsigned int chnIdx, std::vector< short > const &data)=0 |
Send the samples to the given channel. More... | |
virtual void | libm2k::analog::M2kAnalogOut::push (std::vector< std::vector< double >> const &data)=0 |
Send samples to channels. More... | |
virtual void | libm2k::analog::M2kAnalogOut::pushRaw (std::vector< std::vector< short >> const &data)=0 |
Send samples to channels. More... | |
virtual void | libm2k::analog::M2kAnalogOut::stop ()=0 |
Stop all channels from sending the signals. More... | |
virtual void | libm2k::analog::M2kAnalogOut::stop (unsigned int chn)=0 |
Stop the given channels from sending the signals. More... | |
virtual void | libm2k::analog::M2kAnalogOut::cancelBuffer ()=0 |
Cancel all buffer operations of enabled channels. More... | |
virtual void | libm2k::analog::M2kAnalogOut::cancelBuffer (unsigned int chn)=0 |
Cancel all buffer operations of the given channel. More... | |
virtual void | libm2k::analog::M2kAnalogOut::enableChannel (unsigned int chnIdx, bool enable)=0 |
Enable or disable the given digital channel. More... | |
virtual bool | libm2k::analog::M2kAnalogOut::isChannelEnabled (unsigned int chnIdx)=0 |
Check if the given channel is enabled. More... | |
virtual bool | libm2k::analog::M2kAnalogOut::isPushDone (unsigned int chnIdx) const =0 |
Check if the generation of the signal (only for non-cyclic buffer) is done. More... | |
virtual void | libm2k::analog::M2kAnalogOut::setKernelBuffersCount (unsigned int chnIdx, unsigned int count)=0 |
Set the kernel buffers to a specific value. More... | |
virtual unsigned int | libm2k::analog::M2kAnalogOut::getKernelBuffersCount (unsigned int chnIdx) const =0 |
Get the number of kernel buffers. More... | |
virtual short | libm2k::analog::M2kAnalogOut::convertVoltsToRaw (unsigned int channel, double voltage)=0 |
Convert the volts value of a sample into raw. More... | |
virtual double | libm2k::analog::M2kAnalogOut::convertRawToVolts (unsigned int channel, short raw)=0 |
Convert the raw value of a sample into volts. More... | |
virtual struct IIO_OBJECTS | libm2k::analog::M2kAnalogOut::getIioObjects ()=0 |
Get access to IIO channels, buffers, devices and context. More... | |
virtual unsigned int | libm2k::analog::M2kAnalogOut::getNbChannels ()=0 |
Retrieve the number of analogical channels. More... | |
virtual std::string | libm2k::analog::M2kAnalogOut::getChannelName (unsigned int channel)=0 |
Get the channel name for each DAC channel. More... | |
virtual double | libm2k::analog::M2kAnalogOut::getMaximumSamplerate (unsigned int chn_idx)=0 |
Get the maximum samplerate for the DAC. More... | |
virtual unsigned short | libm2k::analog::M2kAnalogOut::setVoltage (unsigned int chn_idx, double volts)=0 |
Sets the voltage output of the DAC channel. More... | |
virtual unsigned short | libm2k::analog::M2kAnalogOut::setVoltageRaw (unsigned int chn_idx, unsigned short raw)=0 |
Sets the raw output of the DAC channel. More... | |
virtual libm2k::M2kHardwareTrigger * | libm2k::analog::M2kAnalogOut::getTrigger ()=0 |
Get the hardware trigger handler. More... | |
virtual void | libm2k::analog::M2kAnalogOut::setBufferRearmOnTrigger (bool enable)=0 |
Allows sequential output of multiple buffers with each trigger event. More... | |
virtual bool | libm2k::analog::M2kAnalogOut::getBufferRearmOnTrigger () const =0 |
Retrieve the value of the attribute that controls buffer rearm on trigger. More... | |
Contains the representation of the analogical output segment.
|
pure virtual |
Cancel all buffer operations of enabled channels.
|
pure virtual |
Cancel all buffer operations of the given channel.
chn | The index corresponding to the channel |
|
pure virtual |
Convert the raw value of a sample into volts.
channel | The index corresponding to the channel |
raw | The raw value of a sample |
|
pure virtual |
Convert the volts value of a sample into raw.
channel | The index corresponding to the channel |
voltage | The volts value of a sample |
|
pure virtual |
Enable or disable the given digital channel.
chnIdx | The index corresponding to the channel |
enable | A boolean value corresponding to the channel's state |
EXC_OUT_OF_RANGE | No such channel |
|
pure virtual |
getAvailableSampleRates
chn | The index corresponding to the required channel |
|
pure virtual |
Retrieve the value of the attribute that controls buffer rearm on trigger.
|
pure virtual |
Get the channel name for each DAC channel.
channel | - unsigned int representing the index of the channel |
|
pure virtual |
Retrieve the value of the cyclic mode.
chn | The index corresponding to the channel |
|
pure virtual |
Retrieve the filter compensation for the given sample rate.
samplerate | A double value representing the sample rate |
|
pure virtual |
Get access to IIO channels, buffers, devices and context.
|
pure virtual |
Get the number of kernel buffers.
chnIdx | The index corresponding to the channel |
|
pure virtual |
Get the maximum samplerate for the DAC.
chn_idx | - unsigned int representing the index of the channel |
|
pure virtual |
Retrieve the number of analogical channels.
|
pure virtual |
Retrieve the global oversampling ratio.
|
pure virtual |
Retrieve the oversampling ratio for the given channel.
chn | The index corresponding to the channel |
|
pure virtual |
Retrieve the sample rate of both DACs.
|
pure virtual |
Retrieve the sample rate for the given channel.
chn | The index corresponding to the channel |
|
pure virtual |
Retrieve the scaling factor for the given channel.
chn | The index corresponding to the channel |
EXC_OUT_OF_RANGE | No such channel |
|
pure virtual |
Get the hardware trigger handler.
|
pure virtual |
Check if the given channel is enabled.
chnIdx | The index corresponding to the channel |
EXC_OUT_OF_RANGE | No such channel |
|
pure virtual |
Check if the generation of the signal (only for non-cyclic buffer) is done.
chnIdx | The index corresponding to the channel |
|
pure virtual |
Send the samples to the given channel.
chnIdx | The index corresponding to the channel |
data | A list of doubles containing all samples |
EXC_OUT_OF_RANGE | No such channel |
|
pure virtual |
Send samples to channels.
data | A list containing lists of samples |
|
pure virtual |
Send the samples to the given channel.
chnIdx | The index corresponding to the channel |
data | A pointer to the samples |
nb_samples | the number of samples |
EXC_OUT_OF_RANGE | No such channel |
|
pure virtual |
Send samples to all the channels.
data | A pointer to the interleaved data |
nb_channels | the number of channels on which we want to push |
nb_samples | the number of samples total (samples_per_channel * channels) |
|
pure virtual |
Send the samples to the given channel.
chnIdx | The index corresponding to the channel |
data | A list of shorts containing all samples |
EXC_OUT_OF_RANGE | No such channel |
|
pure virtual |
Send samples to channels.
data | A list containing lists of samples |
|
pure virtual |
Send the samples to the given channel.
chnIdx | The index corresponding to the channel |
data | A pointer to the raw samples |
nb_samples | the number of samples |
EXC_OUT_OF_RANGE | No such channel |
|
pure virtual |
Send samples to all the channels.
data | A pointer to the interleaved raw data |
nb_channels | the number of channels on which we want to push |
nb_samples | the number of samples total (samples_per_channel * channels) |
|
pure virtual |
Allows sequential output of multiple buffers with each trigger event.
enable | A boolean value that enables or disables the buffer rearm functionality. |
|
pure virtual |
Enable or disable the cyclic mode for all digital channels.
en | If true, enable cyclic mode |
EXC_OUT_OF_RANGE | No such channel |
|
pure virtual |
Enable or disable the cyclic mode for all digital channels.
chn | The index corresponding to the channel |
en | If true, enable cyclic mode |
EXC_OUT_OF_RANGE | No such channel |
|
pure virtual |
Set the kernel buffers to a specific value.
chnIdx | The index corresponding to the channel |
count | the number of kernel buffers |
|
pure virtual |
Set the value of the oversampling ratio for each channel.
oversampling_ratio | A list containing the ratios for each channel (as integers) |
|
pure virtual |
Set the oversampling ratio for the given channel.
chn | The index corresponding to the channel |
oversampling_ratio | Integer value to set the oversampling ratio to |
|
pure virtual |
Set the sample rate for both channels.
samplerates | A list containing the sample rates of each channel |
|
pure virtual |
Set the sample rate for the given channel.
chn | The index corresponding to the channel |
samplerate | A double value to set the sample rate to |
|
pure virtual |
Sets the voltage output of the DAC channel.
chn_idx | - unsigned int representing the index of the channel |
volts | - actual value to be set |
|
pure virtual |
Sets the raw output of the DAC channel.
chn_idx | - unsigned int representing the index of the channel |
raw | - actual value to be set |
|
pure virtual |
Stop all channels from sending the signals.
|
pure virtual |
Stop the given channels from sending the signals.
chn | The index corresponding to the channel |
EXC_OUT_OF_RANGE | No such channel |