Lightweight USB stack  1.0
USB TMC class

This module contains USB Device Test and Measurement Class definitions. More...

Data Structures

struct  usb_tmc_get_capabilities_response
 
union  usb_tmc_bulk_header_specific
 
struct  usb_tmc_bulk_header
 

USB TMC class, subclass and protocol definitions

#define USB_CLASS_TMC   0xFE
 
#define USB_TMC_SUBCLASS_TMC   0x03
 
#define USB_TMC_PROTO_NONE   0x00
 
#define USB_TMC_PROTO_USB488   0x01
 

USBTMC requests

#define USB_TMC_REQ_INITIATE_ABORT_BULK_OUT   1
 
#define USB_TMC_REQ_CHECK_ABORT_BULK_OUT_STATUS   2
 
#define USB_TMC_REQ_INITIATE_ABORT_BULK_IN   3
 
#define USB_TMC_REQ_CHECK_ABORT_BULK_IN_STATUS   4
 
#define USB_TMC_REQ_INITIATE_CLEAR   5
 
#define USB_TMC_REQ_CHECK_CLEAR_STATUS   6
 
#define USB_TMC_REQ_GET_CAPABILITIES   7
 
#define USB_TMC_REQ_INDICATOR_PULSE   64
 

USBTMC status values

#define USB_TMC_STATUS_SUCCESS   0x01
 
#define USB_TMC_STATUS_PENDING   0x02
 
#define USB_TMC_STATUS_FAILED   0x80
 
#define USB_TMC_STATUS_TRANSFER_NOT_IN_PROGRESS   0x81
 
#define USB_TMC_STATUS_SPLIT_NOT_IN_PROGRESS   0x82
 
#define USB_TMC_STATUS_SPLIT_IN_PROGRESS   0x83
 

MsgId values

#define USB_TMC_DEV_DEP_MSG_OUT   1
 
#define USB_TMC_REQUEST_DEV_DEP_MSG_IN   2
 
#define USB_TMC_DEV_DEP_MSG_IN   2
 
#define USB_TMC_VENDOR_SPECIFIC_OUT   126
 
#define USB_TMC_REQUEST_VENDOR_SPECIFIC_IN   127
 
#define USB_TMC_VENDOR_SPECIFIC_IN   127
 

Transfer Attributes

#define USB_TMC_TRANSFER_ATTR_EOM   0x01
 
#define USB_TMC_TRANSFER_ATTR_TERM_CHAR   0x02
 

Detailed Description

This module contains USB Device Test and Measurement Class definitions.

This module based on USB Device Test and Measurement Class Specification, Revision 1.0

Macro Definition Documentation

◆ USB_TMC_PROTO_NONE

#define USB_TMC_PROTO_NONE   0x00

No subclass specification applies.

Definition at line 36 of file usb_tmc.h.

◆ USB_TMC_PROTO_USB488

#define USB_TMC_PROTO_USB488   0x01

USBTMC USB488 subclass interface.

Definition at line 37 of file usb_tmc.h.

◆ USB_TMC_TRANSFER_ATTR_EOM

#define USB_TMC_TRANSFER_ATTR_EOM   0x01

The last USBTMC message data byte in the transfer is the last byte of the USBTMC message.

Definition at line 86 of file usb_tmc.h.

◆ USB_TMC_TRANSFER_ATTR_TERM_CHAR

#define USB_TMC_TRANSFER_ATTR_TERM_CHAR   0x02

The Bulk-IN transfer must terminate on the specified TermChar. The Host may only set this bit if the USBTMC interface indicates it supports TermChar in the GET_CAPABILITIES response packet

Definition at line 90 of file usb_tmc.h.