28#ifndef _TUSB_USBTMC_H__
29#define _TUSB_USBTMC_H__
45#define USBTMC_VERSION 0x0100
46#define USBTMC_488_VERSION 0x0100
78 unsigned int EOM : 1 ;
266 unsigned int BulkInFifoBytes : 1;
uint8_t supportsIndicatorPulse
uint8_t UsingTermChar
Support TermChar && Request.TermCharEnabled && last char in transfer is TermChar.
uint8_t canEndBulkInOnTermChar
unsigned int supportsIndicatorPulse
uint8_t EOM
Last byte of transfer is the end of the message.
uint8_t supportsREN_GTL_LLO
unsigned int BulkInFifoBytes
Has queued data or a short packet that is queued.
unsigned int TermCharEnabled
"The Bulk-IN transfer must terminate on the specified TermChar."; CAPABILITIES must list TermChar
unsigned int canEndBulkInOnTermChar
unsigned int EOM
EOM set on last byte.
AUDIO Channel Cluster Descriptor (4.1)
uint8_t USBTMC_status
usbtmc_status_enum
uint8_t MsgID
Message type ID (usbtmc_msgid_enum)
struct TU_ATTR_PACKED::TU_ATTR_PACKED bmDevCapabilities
uint8_t data[CFG_TUD_NCM_IN_NTB_MAX_SIZE]
struct TU_ATTR_PACKED::TU_ATTR_PACKED bmDevCapabilities488
struct TU_ATTR_PACKED::TU_ATTR_PACKED bmIntfcCapabilities488
uint32_t TransferSize
Transfer size; LSB first.
struct TU_ATTR_PACKED::TU_ATTR_PACKED bmIntfcCapabilities
struct TU_ATTR_PACKED::TU_ATTR_PACKED bmClear
struct TU_ATTR_PACKED::TU_ATTR_PACKED bmAbortBulkIn
usbtmc_msg_header_t header
Header.
uint8_t bTagInverse
Complement of the tag.
uint8_t bTag
Transfer ID 1<=bTag<=255.
uint16_t bcdUSBTMC
USBTMC_VERSION.
struct TU_ATTR_PACKED::TU_ATTR_PACKED bmTransferAttributes
uint8_t _reserved
Must be 0x00.
struct TU_ATTR_PACKED usbtmc_check_abort_bulk_rsp_t
struct TU_ATTR_PACKED usbtmc_msg_dev_dep_msg_in_header_t
struct TU_ATTR_PACKED usbtmc_msg_request_dev_dep_in
struct TU_ATTR_PACKED usbtmc_response_capabilities_488_t
struct TU_ATTR_PACKED usbtmc_response_capabilities_t
struct TU_ATTR_PACKED usbtmc_msg_request_vendor_specific_in
struct TU_ATTR_PACKED usbtmc_msg_header_t
Message header (For BULK OUT and BULK IN); 4 bytes.
usbtmc_int_in_payload_format
@ USBTMC_bNOTIFY1_USBTMC_FIRST
@ USBTMC_bNOTIFY1_SUBCLASS_LAST
@ USBTMC_bNOTIFY1_VENDOR_SPECIFIC_FIRST
@ USBTMC_bNOTIFY1_VENDOR_SPECIFIC_LAST
@ USBTMC_bNOTIFY1_SUBCLASS_FIRST
@ USBTMC_bNOTIFY1_USBTMC_LAST
struct TU_ATTR_PACKED usbtmc_read_stb_interrupt_488_t
struct TU_ATTR_PACKED usbtmc_msg_request_dev_dep_out
struct TU_ATTR_PACKED usbtmc_srq_interrupt_488_t
struct TU_ATTR_PACKED usbtmc_msg_generic_t
struct TU_ATTR_PACKED usbtmc_initiate_abort_rsp_t
struct TU_ATTR_PACKED usbtmc_get_clear_status_rsp_t
struct TU_ATTR_PACKED usbtmc_read_stb_rsp_488_t
struct TU_ATTR_PACKED usbtmc_msg_request_vendor_specific_out
@ USBTMC_STATUS_SPLIT_IN_PROGRESS
@ USBTMC_STATUS_SPLIT_NOT_IN_PROGRESS
@ USBTMC_STATUS_TRANSFER_NOT_IN_PROGRESS
@ USB488_STATUS_INTERRUPT_IN_BUSY
@ USBTMC_MSGID_VENDOR_SPECIFIC_MSG_OUT
@ USBTMC_MSGID_USB488_TRIGGER
@ USBTMC_MSGID_DEV_DEP_MSG_OUT
@ USBTMC_MSGID_DEV_DEP_MSG_IN
@ USBTMC_MSGID_VENDOR_SPECIFIC_IN
@ USBTMC_bREQUEST_INDICATOR_PULSE
@ USB488_bREQUEST_GO_TO_LOCAL
@ USBTMC_bREQUEST_GET_CAPABILITIES
@ USBTMC_bREQUEST_CHECK_CLEAR_STATUS
@ USB488_bREQUEST_REN_CONTROL
@ USBTMC_bREQUEST_INITIATE_ABORT_BULK_OUT
@ USB488_bREQUEST_LOCAL_LOCKOUT
@ USBTMC_bREQUEST_INITIATE_CLEAR
@ USBTMC_bREQUEST_CHECK_ABORT_BULK_OUT_STATUS
@ USBTMC_bREQUEST_INITIATE_ABORT_BULK_IN
@ USB488_bREQUEST_READ_STATUS_BYTE
@ USBTMC_bREQUEST_CHECK_ABORT_BULK_IN_STATUS
TU_VERIFY_STATIC(sizeof(usbtmc_msg_request_dev_dep_out)==12u, "struct wrong length")
@ USBTMC_BULK_IN_ERR_INCOMPLETE_HEADER
@ USBTMC_BULK_IN_ERR_DATA_TOO_SHORT
@ USBTMC_BULK_IN_ERR_UNSUPPORTED
@ USBTMC_BULK_IN_ERR_BAD_PARAMETER
@ USBTMC_BULK_IN_ERR_DATA_TOO_LONG