irioCoreCpp Library Module
2.1.0
|
Class managing all terminals related to the signal generation functionality of the RIO device. More...
#include <terminalsSignalGeneration.h>
Public Member Functions | |
TerminalsSignalGeneration (ParserManager *parserManager, const NiFpga_Session &session, const Platform &platform) | |
Manages finding the related signal generation terminals in the parsed bitfile and reading their values from the FPGA if required. More... | |
std::uint8_t | getSGNo () const |
Returns the number of signal generators in the FPGA implementation. More... | |
std::uint32_t | getSGFref (const std::uint32_t n) const |
Returns the reference clock for a specified signal generator. More... | |
std::vector< std::uint32_t > | getVectorSGFrefs () const |
Returns a vector with the reference clocks for all the signal generators in the system. More... | |
std::uint8_t | getSGSignalType (const std::uint32_t n) const |
Returns the signal type generated for a specific signal generator. More... | |
std::uint32_t | getSGAmp (const std::uint32_t n) const |
Returns the amplitude of the signal for a specific signal generator. More... | |
std::uint32_t | getSGFreq (const std::uint32_t n) const |
Returns the frequency of the signal for a specific signal generator. More... | |
std::uint32_t | getSGPhase (const std::uint32_t n) const |
Returns the phase of the signal for a specific signal generator. More... | |
std::uint32_t | getSGUpdateRate (const std::uint32_t n) const |
Returns the update rate of a specific signal generator. More... | |
void | setSGSignalType (const std::uint32_t n, const std::uint8_t value) const |
Configures the signal type for a specific signal generator. More... | |
void | setSGAmp (const std::uint32_t n, const std::uint32_t value) const |
Configures the amplitude for a specific signal generator. More... | |
void | setSGFreqDecimation (const std::uint32_t n, const std::uint32_t value) const |
Configures the decimation to apply to a specific signal generator. More... | |
void | setSGPhase (const std::uint32_t n, const std::uint32_t value) const |
Configures the phase for a specific signal generator. More... | |
void | setSGUpdateRateDecimation (const std::uint32_t n, const std::uint32_t value) const |
Configures the update rate decimation for a specific signal generator. More... | |
Public Member Functions inherited from irio::TerminalsBase | |
TerminalsBase (std::shared_ptr< TerminalsBaseImpl > impl) | |
Base class used for terminals. More... | |
Additional Inherited Members | |
Protected Attributes inherited from irio::TerminalsBase | |
std::shared_ptr< TerminalsBaseImpl > | m_impl |
Smart pointer with the terminal implementation. | |
Class managing all terminals related to the signal generation functionality of the RIO device.
Definition at line 14 of file terminalsSignalGeneration.h.
irio::TerminalsSignalGeneration::TerminalsSignalGeneration | ( | ParserManager * | parserManager, |
const NiFpga_Session & | session, | ||
const Platform & | platform | ||
) |
Manages finding the related signal generation terminals in the parsed bitfile and reading their values from the FPGA if required.
irio::errors::NiFpgaError | Error occurred in an FPGA operation |
parserManager | Pointer to class managing parsing the bitfile and finding its resources |
session | NiFpga_Session to be used in NiFpga related functions |
platform | Platform that is using the terminals. Used to know the maximum number of terminals that can be found. |
std::uint32_t irio::TerminalsSignalGeneration::getSGAmp | ( | const std::uint32_t | n | ) | const |
Returns the amplitude of the signal for a specific signal generator.
irio::errors::NiFpgaError | Error occurred in an FPGA operation |
irio::errors::ResourceNotFoundError | Resource specified not found |
n | Number of the signal generator |
std::uint32_t irio::TerminalsSignalGeneration::getSGFref | ( | const std::uint32_t | n | ) | const |
Returns the reference clock for a specified signal generator.
irio::errors::ResourceNotFoundError | The specified signal generator does not exists |
n | Number of the signal generator |
std::uint32_t irio::TerminalsSignalGeneration::getSGFreq | ( | const std::uint32_t | n | ) | const |
Returns the frequency of the signal for a specific signal generator.
irio::errors::NiFpgaError | Error occurred in an FPGA operation |
irio::errors::ResourceNotFoundError | Resource specified not found |
n | Number of the signal generator |
std::uint8_t irio::TerminalsSignalGeneration::getSGNo | ( | ) | const |
Returns the number of signal generators in the FPGA implementation.
std::uint32_t irio::TerminalsSignalGeneration::getSGPhase | ( | const std::uint32_t | n | ) | const |
Returns the phase of the signal for a specific signal generator.
irio::errors::NiFpgaError | Error occurred in an FPGA operation |
irio::errors::ResourceNotFoundError | Resource specified not found |
n | Number of the signal generator |
std::uint8_t irio::TerminalsSignalGeneration::getSGSignalType | ( | const std::uint32_t | n | ) | const |
Returns the signal type generated for a specific signal generator.
irio::errors::NiFpgaError | Error occurred in an FPGA operation |
irio::errors::ResourceNotFoundError | Resource specified not found |
n | Number of the signal generator |
std::uint32_t irio::TerminalsSignalGeneration::getSGUpdateRate | ( | const std::uint32_t | n | ) | const |
Returns the update rate of a specific signal generator.
irio::errors::NiFpgaError | Error occurred in an FPGA operation |
irio::errors::ResourceNotFoundError | Resource specified not found |
n | Number of the signal generator |
std::vector<std::uint32_t> irio::TerminalsSignalGeneration::getVectorSGFrefs | ( | ) | const |
Returns a vector with the reference clocks for all the signal generators in the system.
void irio::TerminalsSignalGeneration::setSGAmp | ( | const std::uint32_t | n, |
const std::uint32_t | value | ||
) | const |
Configures the amplitude for a specific signal generator.
irio::errors::NiFpgaError | Error occurred in an FPGA operation |
irio::errors::ResourceNotFoundError | Resource specified not found |
n | Number of the signal generator |
value | Amplitude to configure |
void irio::TerminalsSignalGeneration::setSGFreqDecimation | ( | const std::uint32_t | n, |
const std::uint32_t | value | ||
) | const |
Configures the decimation to apply to a specific signal generator.
irio::errors::NiFpgaError | Error occurred in an FPGA operation |
irio::errors::ResourceNotFoundError | Resource specified not found |
n | Number of the signal generator |
value | Decimation to configure |
void irio::TerminalsSignalGeneration::setSGPhase | ( | const std::uint32_t | n, |
const std::uint32_t | value | ||
) | const |
Configures the phase for a specific signal generator.
irio::errors::NiFpgaError | Error occurred in an FPGA operation |
irio::errors::ResourceNotFoundError | Resource specified not found |
n | Number of the signal generator |
value | Phase to configure |
void irio::TerminalsSignalGeneration::setSGSignalType | ( | const std::uint32_t | n, |
const std::uint8_t | value | ||
) | const |
Configures the signal type for a specific signal generator.
irio::errors::NiFpgaError | Error occurred in an FPGA operation |
irio::errors::ResourceNotFoundError | Resource specified not found |
n | Number of the signal generator |
value | Signal type to configure |
void irio::TerminalsSignalGeneration::setSGUpdateRateDecimation | ( | const std::uint32_t | n, |
const std::uint32_t | value | ||
) | const |
Configures the update rate decimation for a specific signal generator.
The update rate configured can be calculated as Fref/value
irio::errors::NiFpgaError | Error occurred in an FPGA operation |
irio::errors::ResourceNotFoundError | Resource specified not found |
n | Number of the signal generator |
value | Decimation to configure |