irioCoreCpp Library Module  2.1.0
terminalsCommon.h
1 #pragma once
2 
3 #include <string>
4 
5 #include "terminals/terminalsBase.h"
6 
7 namespace irio {
8 
15  public:
26  TerminalsCommon(ParserManager *parserManager, const NiFpga_Session &session);
27 
34  std::string getFPGAVIversion() const;
35 
42  std::uint32_t getFref() const;
43 
52  bool getInitDone() const;
53 
62  std::uint8_t getDevQualityStatus() const;
63 
72  std::int16_t getDevTemp() const;
73 
83  bool getDAQStartStop() const;
84 
94  bool getDebugMode() const;
95 
102  void setDAQStart() const;
103 
110  void setDAQStop() const;
111 
120  void setDAQStartStop(const bool &start) const;
121 
130  void setDebugMode(const bool &debug) const;
131 
137  double getMinSamplingRate() const;
138 
144  double getMaxSamplingRate() const;
145 };
146 
147 } // namespace irio
Responsible for managing the parsing of resources for a bitfile.
Definition: parserManager.h:76
Base class for all terminals.
Definition: terminalsBase.h:21
Class managing terminals common to all profiles.
void setDebugMode(const bool &debug) const
Enables or disables the debug mode.
bool getDAQStartStop() const
Reads the TERMINAL_DAQSTARTSTOP terminal.
std::uint8_t getDevQualityStatus() const
Reads the TERMINAL_DEVQUALITYSTATUS terminal.
double getMinSamplingRate() const
Returns the minimum valid value for the FPGA sampling rate.
void setDAQStart() const
Starts the data acquisition.
std::uint32_t getFref() const
Returns the reference clock of the FPGA for sampling rate.
double getMaxSamplingRate() const
Returns the maximum valid value for the FPGA sampling rate.
void setDAQStartStop(const bool &start) const
Allows starting or stopping the data acquisition.
void setDAQStop() const
Stops the data acquisition.
std::string getFPGAVIversion() const
Returns the parsed TERMINAL_FPGAVIVERSION read from the FPGA.
bool getDebugMode() const
Reads the TERMINAL_DEBUGMODE terminal.
bool getInitDone() const
Reads the TERMINAL_INITDONE terminal from the FPGA and return its value.
TerminalsCommon(ParserManager *parserManager, const NiFpga_Session &session)
Manages finding the related common terminals.
std::int16_t getDevTemp() const
Reads the TERMINAL_DEVTEMP terminal.