irioCoreCpp Library Module  2.1.0
terminalsAnalog.h
1 #pragma once
2 
3 #include <terminals/terminalsBase.h>
4 #include <modules.h>
5 
6 namespace irio {
14  public:
27  TerminalsAnalog(ParserManager *parserManager, const NiFpga_Session &session,
28  const Platform &platform);
29 
39  std::int32_t getAI(const std::uint32_t n) const;
40 
50  std::int32_t getAO(const std::uint32_t n) const;
51 
61  std::int32_t getAOEnable(const std::uint32_t n) const;
62 
68  size_t getNumAI() const;
69 
75  size_t getNumAO() const;
76 
86  void setAO(const std::uint32_t n, const std::int32_t value) const;
87 
98  void setAOEnable(const std::uint32_t n, const bool value) const;
99 
109 
116  double getCVADC() const;
117 
124  double getCVDAC() const;
125 
132  double getMaxValAO() const;
133 
140  double getMinValAO() const;
141 
148 
158  void setAICouplingMode(const CouplingMode &mode) const;
159 };
160 } // namespace irio
Responsible for managing the parsing of resources for a bitfile.
Definition: parserManager.h:76
Generic Platform class.
Definition: platforms.h:23
Class managing all terminals related to the analog functionality of the RIO device.
void setAOEnable(const std::uint32_t n, const bool value) const
Enables or disables a specific AO terminal.
ModulesType getModuleConnected() const
Returns the module connected to the device.
double getMinValAO() const
Module's minimum value to be written in an analog output for the coupling selected.
size_t getNumAO() const
Returns number of AO terminals found.
CouplingMode getAICouplingMode() const
Module's configured coupling mode.
double getCVDAC() const
Module's conversion value from Volts for analog inputs for the coupling selected.
std::int32_t getAOEnable(const std::uint32_t n) const
Returns the value of an AOEnable terminal.
void setAICouplingMode(const CouplingMode &mode) const
Sets a new coupling mode, changing the conversion constants accordingly.
double getMaxValAO() const
Module's maximum value to be written in an analog output for the coupling selected.
std::int32_t getAI(const std::uint32_t n) const
Returns the value of an AI terminal.
std::int32_t getAO(const std::uint32_t n) const
Returns the value of an AO terminal.
double getCVADC() const
Module's conversion value to Volts of analog inputs for the coupling selected.
TerminalsAnalog(ParserManager *parserManager, const NiFpga_Session &session, const Platform &platform)
Manages finding the related analog terminals in the parsed bitfile and reading their values from the ...
size_t getNumAI() const
Returns number of AI terminals found.
void setAO(const std::uint32_t n, const std::int32_t value) const
Writes to a specific AO terminal a value.
Base class for all terminals.
Definition: terminalsBase.h:21
ModulesType
Possible types of modules.
Definition: modules.h:56
CouplingMode
Coupling AI mode.
Definition: modules.h:70