91 std::string
getGateName(
unsigned int gate,
unsigned int channel = 0);
187 [[nodiscard]]
virtual IdType
215 [[nodiscard]]
virtual IdType
245 [[nodiscard]]
bool isInitialized()
const;
297 NotifyProc _paramNotifyProcedure;
299 NotifyProc _resultNotifyProcedure;
301 void* _paramNotifyData;
303 void* _resultNotifyData;
#define SF_DECL_IFACE(InterfaceType, ParamType, FuncName)
Declares a public static function in the class where it is used. Where: InterfaceType: Global typenam...
Definition TClassRegistration.h:71
Dialog containing multiple property pages.
Definition qt/PropertySheetDialog.h:14
Base class for the repetitive signal acquisition interface.
Definition RsaInterface.h:19
std::string getGateName(unsigned int gate, unsigned int channel=0)
Gets the name of the passed gate and channel.
unsigned getGateCount(unsigned channel)
Gets the amount of gates for this channels' implementation.
bool uninitialize()
Un-initializes the implementation. Calls doInitialize.
bool storeSettings(bool read)
Writes the non exported parameters to profile.
virtual IdType getParamId(EDefaultParam param, unsigned gate=UINT_MAX, unsigned channel=UINT_MAX) const =0
Gets the ID of the parameter for the specified gate.
virtual void addPropertyPages(PropertySheetDialog *sheet)
Adds controller specific property pages to the passed sheet.
bool getParamInfo(IdType id, ParamInfo &info) const
bool getParam(IdType id, Value &value) const
Gets the value of the specified parameter id. When the ID does not exist it returns false.
bool paramSetGet(IdType id, Value &value, bool skip_event)
Sets and immediately gets the same value again clipped or not.
unsigned getChannelCount()
Gets the amount of channels for this implementation.
bool getResultBuffer(IdType id, BufferInfo &bufInfo)
Gets the result buffer associated with the result id passed in the result hook at the time of the cal...
bool setParam(EDefaultParam param, unsigned gate, unsigned ch, const Value &value, bool skip_event)
Same as setParam() but the ID is formed by getParamId()
int getError() const
Gets the error value.
EAcquisitionType getType() const
bool initialize()
Initializes the implementation for operation. Calls doInitialize.
void callParamHook(IdType id)
Calls the hooked function when it exists.
bool isInitialized() const
For testing initialization by the implementation.
Definition RsaInterface.h:313
virtual bool handleParam(IdType id, ParamInfo *info, const Value *setval, Value *getval)=0
Pure virtual method to be overridden in a derived class. This method handles the interface parameters...
bool getResultInfo(IdType id, ResultInfo &info)
Retrieve information about the passed id.
virtual bool getRunMode() const =0
Gets the current run mode of a derived class.
bool getParam(EDefaultParam param, unsigned gate, unsigned ch, Value &value) const
Same as getParam() but the ID is formed by getParamId()
virtual bool handleResult(IdType id, ResultInfo *info, BufferInfo *bufInfo)=0
Handles results.
virtual bool doInitialize(bool init)
Must be overridden by a derived class. Should check the hardware configuration.
Definition RsaInterface.h:267
bool setPopManual(int channel, EPopManual pm)
Sets the pop manual state for a channel.
void setParamHook(NotifyProc proc, void *data)
Sets a procedure hook for the interface implementation to be called when the value changes as a resul...
virtual ~RsaInterface()
Virtual destructor for derived classes.
bool setType(EAcquisitionType at)
Sets the implementation type of the implementation used by the server side. Only allowed before and d...
EPopManual getPopManual(int channel) const
Gets the pop-manual state on a channel.
virtual bool setRunMode(bool on, bool clear)=0
Sets the implementation in hold or Run mode.
void setResultHook(NotifyProc proc, void *data)
Sets a procedure hook for the interface implementation to be called when there ias data result has da...
bool setParam(IdType id, const Value &value, bool skip_event)
Sets the value of the specified parameter id. When the ID does not exist it returns false.
virtual IdType getResultId(EDefaultResult result, unsigned gate=UINT_MAX, unsigned channel=UINT_MAX) const =0
Returns the ID of the result for the specified gate.
RsaInterface(const Parameters &)
Constructor for passing general structure for derived classes.
std::string getProfilePath() const
Returns the path of the static configuration of the driver.
void callResultHook(IdType id)
Calls the hooked function when it exists.
virtual bool enumParamIds(IdList &ids)=0
Gets all interface parameters ids.
virtual bool enumResultIds(IdList &ids)=0
Gets interface results ids.
Counted vector having additional methods and operators for ease of usage.
Definition TVector.h:25
Value container class able to performing arithmetic functions.
Definition Value.h:19
Definition Application.h:10
class _MISC_CLASS PropertySheetDialog
Definition gen/PropertySheetDialog.h:18
#define _RSA_CLASS
Definition rsa/iface/global.h:35
Parameters structure passed to an RSA implementation class.
Definition RsaInterface.h:25
Parameters(int mode)
Definition RsaInterface.h:26
int _mode
Definition RsaInterface.h:30
Definition RsaTypes.h:328
Structure to hold parameter information.
Definition RsaTypes.h:121
Definition RsaTypes.h:232
Type holding all types for the RsaInterface in a single namespaced structure.
Definition RsaTypes.h:22
EDefaultResult
Definition RsaTypes.h:471
EDefaultParam
Definition RsaTypes.h:384
unsigned long long IdType
Type for gathering parameter ID's.
Definition RsaTypes.h:26
EAcquisitionType
Definition RsaTypes.h:372
EPopManual
Enumerate for the pop manual function.
Definition RsaTypes.h:506