\r
/* Macros: */\r
/** LED mask for the library LED driver, to indicate that the USB interface is not ready. */\r
- #define LEDMASK_USB_NOTREADY LEDS_LED1\r
+ #define LEDMASK_USB_NOTREADY LEDS_LED1\r
\r
/** LED mask for the library LED driver, to indicate that the USB interface is enumerating. */\r
- #define LEDMASK_USB_ENUMERATING (LEDS_LED2 | LEDS_LED3)\r
+ #define LEDMASK_USB_ENUMERATING (LEDS_LED2 | LEDS_LED3)\r
\r
/** LED mask for the library LED driver, to indicate that the USB interface is ready. */\r
- #define LEDMASK_USB_READY (LEDS_LED2 | LEDS_LED4)\r
+ #define LEDMASK_USB_READY (LEDS_LED2 | LEDS_LED4)\r
\r
/** LED mask for the library LED driver, to indicate that an error has occurred in the USB interface. */\r
- #define LEDMASK_USB_ERROR (LEDS_LED1 | LEDS_LED3)\r
+ #define LEDMASK_USB_ERROR (LEDS_LED1 | LEDS_LED3)\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
+ #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_REQUEST_STATUS_SUCCESS 0x01\r
+ #define TMC_REQUEST_STATUS_PENDING 0x02\r
+ #define TMC_REQUEST_STATUS_FAILED 0x80\r
+ #define TMC_REQUEST_STATUS_NOTRANSFER 0x81\r
+ #define TMC_REQUEST_STATUS_NOCHECKINITIATED 0x82\r
+ #define TMC_REQUEST_STATUS_CHECKINPROGRESS 0x83\r
\r
/* Function Prototypes: */\r
void SetupHardware(void);\r