|
|
| SCPITwinLanTransport (const std::string &args) |
| |
| virtual std::string | GetConnectionString () override |
| |
|
unsigned short | GetDataPort () |
| |
| virtual size_t | ReadRawData (size_t len, unsigned char *buf, std::function< void(float)> progress=nullptr) override |
| |
| virtual void | SendRawData (size_t len, const unsigned char *buf) override |
| |
|
const Socket & | GetSecondarySocket () |
| |
|
| SCPISocketTransport (const std::string &args) |
| |
|
| SCPISocketTransport (const std::string &hostname, unsigned short port) |
| |
| virtual std::string | GetConnectionString () override |
| |
| virtual void | FlushRXBuffer (void) override |
| |
| virtual bool | SendCommand (const std::string &cmd) override |
| |
| virtual std::string | ReadReply (bool endOnSemicolon=true, std::function< void(float)> progress=nullptr) override |
| |
| virtual size_t | ReadRawData (size_t len, unsigned char *buf, std::function< void(float)> progress=nullptr) override |
| |
| virtual void | SendRawData (size_t len, const unsigned char *buf) override |
| |
| virtual bool | IsCommandBatchingSupported () override |
| |
| virtual bool | IsConnected () override |
| |
|
const std::string & | GetHostname () |
| | Returns the hostname of the connected instrument.
|
| |
|
unsigned short | GetPort () |
| | Returns the port number of the connected instrument.
|
| |
| void | SetTimeouts (unsigned int txUs, unsigned int rxUs) |
| | Sets timeouts for the connection. More...
|
| |
|
virtual std::string | GetConnectionString ()=0 |
| |
|
virtual std::string | GetName ()=0 |
| |
| void | SendCommandQueued (const std::string &cmd) |
| | Pushes a command into the transmit FIFO then returns immediately. More...
|
| |
| std::string | SendCommandQueuedWithReply (std::string cmd, bool endOnSemicolon=true) |
| | Sends a command (flushing any pending/queued commands first), then returns the response. More...
|
| |
|
void | SendCommandImmediate (std::string cmd) |
| | Sends a command (jumping ahead of the queue) which does not require a response.
|
| |
| std::string | SendCommandImmediateWithReply (std::string cmd, bool endOnSemicolon=true) |
| | Sends a command (jumping ahead of the queue), then returns the response. More...
|
| |
|
void * | SendCommandImmediateWithRawBlockReply (std::string cmd, size_t &len) |
| | Sends a command (jumping ahead of the queue) which reads a binary block response.
|
| |
|
bool | FlushCommandQueue () |
| | Pushes all pending commands from SendCommandQueued() calls and blocks until they are all sent.
|
| |
|
std::recursive_mutex & | GetMutex () |
| |
|
virtual void | FlushRXBuffer (void) |
| |
|
virtual bool | SendCommand (const std::string &cmd)=0 |
| |
|
virtual std::string | ReadReply (bool endOnSemicolon=true, std::function< void(float)> progress=nullptr)=0 |
| |
|
virtual size_t | ReadRawData (size_t len, unsigned char *buf, std::function< void(float)> progress=nullptr)=0 |
| |
|
virtual void | SendRawData (size_t len, const unsigned char *buf)=0 |
| |
|
virtual bool | IsCommandBatchingSupported ()=0 |
| |
|
virtual bool | IsConnected ()=0 |
| |
| void | EnableRateLimiting (std::chrono::milliseconds interval) |
| | Enables rate limiting. Rate limiting is only applied to the queued command API. More...
|
| |
| void | DeduplicateCommand (const std::string &cmd) |
| | Adds a command to the set of commands which may be deduplicated in the queue. More...
|
| |
A SCPISocketTransport plus a second socket for waveform data.
Read/WriteRawData methods are directed at the secondary stream, rather than the SCPI socket.