SIde-Channel Analysis toolKit (SICAK)
Software toolkit for side-channel analysis
Public Member Functions | Protected Attributes | List of all members
ScpiDevice Class Reference

SCPI device interface, using either USBTMC Linux module or VISA library. More...

#include <scpidevice.h>

Collaboration diagram for ScpiDevice:
Collaboration graph

Public Member Functions

virtual void init (const char *filename)
 Initialize the device, using either USBTMC device filename (e.g. /dev/usbtmc0) on Linux, or using VISA address (e.g. USBInstrument1) on Windows.
 
virtual void deInit ()
 Deinitialize the device.
 
virtual size_t sendString (const std::string &data)
 Send string to the device.
 
virtual size_t receiveString (std::string &data)
 Receive string from the device and store in data.
 
virtual size_t queryString (const std::string &query, std::string &response)
 Send query string, wait for the answer and store in response.
 
virtual size_t sendIEEEBlock (const std::string &command, const char *data, size_t len)
 Send binary block of data to the device, using IEEE-488.2 data format.
 
virtual size_t receiveIEEEBlock (char *data, size_t len)
 Receive binary block of data from the device, using IEEE-488.2 data format.
 
virtual size_t queryIEEEBlock (const std::string &query, char *response, size_t responseLen)
 Send query string, wait for the IEEE-488.2 data block answer.
 
virtual int checkForInstrumentErrors (std::string &response)
 Check for instrument errors.
 

Protected Attributes

int m_osHandle
 
bool m_opened
 

Detailed Description

SCPI device interface, using either USBTMC Linux module or VISA library.


The documentation for this class was generated from the following files: