- #define Req_InitiateAbortBulkOut 0x01\r
- #define Req_CheckAbortBulkOutStatus 0x02\r
- #define Req_InitiateAbortBulkIn 0x03\r
- #define Req_CheckAbortBulkInStatus 0x04\r
- #define Req_InitiateClear 0x05\r
- #define Req_CheckClearStatus 0x06\r
- #define Req_GetCapabilities 0x07\r
- #define Req_IndicatorPulse 0x40\r
+ /** LED mask for the library LED driver, to indicate that the USB interface is busy. */\r
+ #define LEDMASK_USB_BUSY LEDS_LED2\r
+\r
+ #define Req_InitiateAbortBulkOut 0x01\r
+ #define Req_CheckAbortBulkOutStatus 0x02\r
+ #define Req_InitiateAbortBulkIn 0x03\r
+ #define Req_CheckAbortBulkInStatus 0x04\r
+ #define Req_InitiateClear 0x05\r
+ #define Req_CheckClearStatus 0x06\r
+ #define Req_GetCapabilities 0x07\r
+ #define Req_IndicatorPulse 0x40\r
+ \r
+ #define TMC_STATUS_SUCCESS 0x01\r
+ #define TMC_STATUS_PENDING 0x02\r
+ #define TMC_STATUS_FAILED 0x80\r
+ #define TMC_STATUS_TRANSFER_NOT_IN_PROGRESS 0x81\r
+ #define TMC_STATUS_SPLIT_NOT_IN_PROGRESS 0x82\r
+ #define TMC_STATUS_SPLIT_IN_PROGRESS 0x83\r
+ \r
+ #define TMC_MESSAGEID_DEV_DEP_MSG_OUT 0x01\r
+ #define TMC_MESSAGEID_DEV_DEP_MSG_IN 0x02\r
+ #define TMC_MESSAGEID_DEV_VENDOR_OUT 0x7E\r
+ #define TMC_MESSAGEID_DEV_VENDOR_IN 0x7F\r
+\r
+ /* Type Defines */\r
+ typedef struct\r
+ {\r
+ uint8_t Status;\r
+ uint8_t Reserved;\r
+\r
+ uint16_t TMCVersion;\r
+ \r
+ struct\r
+ {\r
+ unsigned ListenOnly : 1;\r
+ unsigned TalkOnly : 1;\r
+ unsigned PulseIndicateSupported : 1;\r
+ unsigned Reserved : 5;\r
+ } Interface;\r
+ \r
+ struct\r
+ {\r
+ unsigned SupportsAbortINOnMatch : 1;\r
+ unsigned Reserved : 7;\r
+ } Device;\r
+ \r
+ uint8_t Reserved2[6];\r
+ uint8_t Reserved3[12]; \r
+ } TMC_Capabilities_t;\r