| 
    irioCoreCpp Library Module
    2.1.0
    
   | 
 
Manage conversion information for the ADC/DAC of a module. More...
#include <modules.h>
Public Member Functions | |
| Module (const ModulesType &id=ModulesType::NoModule) | |
| Constructor.  More... | |
| void | setCouplingMode (const CouplingMode &mode) | 
| Sets a new coupling mode, changing the conversion constants accordingly.  More... | |
| CouplingMode | getCouplingMode () const | 
| Returns the actual configured coupling mode.  More... | |
| double | getCVADC () const | 
| Conversion to Volts of analog inputs.  More... | |
| double | getCVDAC () const | 
| Conversion from Volts for analog outputs.  More... | |
| double | getMaxValAO () const | 
| Maximum value to be written in an analog output.  More... | |
| double | getMinValAO () const | 
| Minimum value to be written in an analog output.  More... | |
Public Attributes | |
| const ModulesType | moduleID | 
| Module identifier.  | |
Protected Member Functions | |
| void | addConfig (const CouplingMode &mode, const ConfigParams &config) | 
| Adds a configuration for a specific coupling mode.  More... | |
Private Attributes | |
| std::unordered_map< CouplingMode, const ConfigParams > | m_availableConfigs | 
| A map that stores available configurations for different coupling modes.  | |
| CouplingMode | m_couplingMode = CouplingMode::None | 
| Current coupling mode.  | |
| ConfigParams | m_currentConfig | 
| Current config values for the selected coupling mode.  | |
      
  | 
  explicit | 
Constructor.
Set parameters for all supported coupling modes and identifies the module
| id | Module identifier | 
      
  | 
  protected | 
Adds a configuration for a specific coupling mode.
| mode | The coupling mode. | 
| config | The configuration parameters. | 
| CouplingMode irio::Module::getCouplingMode | ( | ) | const | 
Returns the actual configured coupling mode.
| double irio::Module::getCVADC | ( | ) | const | 
Conversion to Volts of analog inputs.
| double irio::Module::getCVDAC | ( | ) | const | 
Conversion from Volts for analog outputs.
| double irio::Module::getMaxValAO | ( | ) | const | 
Maximum value to be written in an analog output.
| double irio::Module::getMinValAO | ( | ) | const | 
Minimum value to be written in an analog output.
| void irio::Module::setCouplingMode | ( | const CouplingMode & | mode | ) | 
Sets a new coupling mode, changing the conversion constants accordingly.
| irio::errors::UnsupportedAICouplingForModule | The mode is not supported by the module | 
| mode | New mode to configure |