summaryrefslogtreecommitdiff
path: root/src/class/usbtmc/usbtmc_device.h
diff options
context:
space:
mode:
authorHiFiPhile <[email protected]>2024-04-27 17:12:00 +0200
committerHiFiPhile <[email protected]>2024-04-27 17:12:00 +0200
commitfdb431b5c70ff605eebda8988e1728e7118b4ab4 (patch)
tree908579da904feb38846ef3723231991a908efea4 /src/class/usbtmc/usbtmc_device.h
parent98e85a296deb89dbcc05033bda26e3c9581d535b (diff)
Buffer int msg to ensure alignment and placement correctness.
Diffstat (limited to 'src/class/usbtmc/usbtmc_device.h')
-rw-r--r--src/class/usbtmc/usbtmc_device.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/class/usbtmc/usbtmc_device.h b/src/class/usbtmc/usbtmc_device.h
index 2f3c91dbd..af7ea6ec9 100644
--- a/src/class/usbtmc/usbtmc_device.h
+++ b/src/class/usbtmc/usbtmc_device.h
@@ -86,21 +86,16 @@ TU_ATTR_WEAK bool tud_usbtmc_msg_trigger_cb(usbtmc_msg_generic_t* msg);
//TU_ATTR_WEAK bool tud_usbtmc_app_go_to_local_cb();
#endif
-/*******************************************
- * Called from app
- *
- * We keep a reference to the buffer, so it MUST not change until the app is
- * notified that the transfer is complete.
- ******************************************/
-
+// Called from app
+//
+// We keep a reference to the buffer, so it MUST not change until the app is
+// notified that the transfer is complete.
bool tud_usbtmc_transmit_dev_msg_data(
const void * data, size_t len,
bool endOfMessage, bool usingTermChar);
-// Buffers a notification to be sent to the host. The buffer must be
-// valid until the tud_usbtmc_notification_complete_cb callback. The
-// data starts with the bNotify1 field, see the USBTMC Specification,
-// Table 13.
+// Buffers a notification to be sent to the host. The data starts
+// with the bNotify1 field, see the USBTMC Specification, Table 13.
//
// If the previous notification data has not yet been sent, this
// returns false.