@@ -79,6 +79,8 @@ SCPITransport* SCPITransport::CreateTransport(const string& transport, const str
79
79
@brief Pushes a command into the transmit FIFO then returns immediately.
80
80
81
81
This command will actually be sent the next time FlushCommandQueue() is called.
82
+
83
+ @param cmd Command to be sent
82
84
@param settle_time Rate limiting time for this specific command, see `EnableRateLimiting()´
83
85
*/
84
86
void SCPITransport::SendCommandQueued (const string& cmd, std::chrono::milliseconds settle_time)
@@ -222,7 +224,11 @@ bool SCPITransport::FlushCommandQueue()
222
224
@brief Sends a command (flushing any pending/queued commands first), then returns the response.
223
225
224
226
This is an atomic operation requiring no mutexing at the caller side.
227
+
228
+ @param cmd Command to be sent
225
229
@param settle_time Rate limiting time for this specific command, see `EnableRateLimiting()´
230
+
231
+ @return A string with the reply
226
232
*/
227
233
string SCPITransport::SendCommandQueuedWithReply (string cmd, bool endOnSemicolon, std::chrono::milliseconds settle_time)
228
234
{
@@ -234,7 +240,11 @@ string SCPITransport::SendCommandQueuedWithReply(string cmd, bool endOnSemicolon
234
240
@brief Sends a command (jumping ahead of the queue), then returns the response.
235
241
236
242
This is an atomic operation requiring no mutexing at the caller side.
243
+
244
+ @param cmd Command to be sent
237
245
@param settle_time Rate limiting time for this specific command, see `EnableRateLimiting()´
246
+
247
+ @return A string with the reply
238
248
*/
239
249
string SCPITransport::SendCommandImmediateWithReply (string cmd, bool endOnSemicolon, std::chrono::milliseconds settle_time)
240
250
{
@@ -250,6 +260,8 @@ string SCPITransport::SendCommandImmediateWithReply(string cmd, bool endOnSemico
250
260
251
261
/* *
252
262
@brief Sends a command (jumping ahead of the queue) which does not require a response.
263
+
264
+ @param cmd Command to be sent
253
265
@param settle_time Rate limiting time for this specific command, see `EnableRateLimiting()´
254
266
*/
255
267
void SCPITransport::SendCommandImmediate (string cmd, std::chrono::milliseconds settle_time)
@@ -264,7 +276,12 @@ void SCPITransport::SendCommandImmediate(string cmd, std::chrono::milliseconds s
264
276
265
277
/* *
266
278
@brief Sends a command (jumping ahead of the queue) which reads a binary block response
279
+
280
+ @param cmd Command to be sent
281
+ @param len A reference to a size_t that will get the number of bytes received written to it.
267
282
@param settle_time Rate limiting time for this specific command, see `EnableRateLimiting()´
283
+
284
+ @return A pointer to the reply buffer. This will need to be deleted manually.
268
285
*/
269
286
void * SCPITransport::SendCommandImmediateWithRawBlockReply (string cmd, size_t & len, std::chrono::milliseconds settle_time)
270
287
{
0 commit comments