Add TMC device capabilities to the incomplete TMC demo.
[pub/USBasp.git] / Demos / Device / Incomplete / TestAndMeasurement / TestAndMeasurement.h
index 0a4a629..bd9aee6 100644 (file)
                #define TMC_REQUEST_STATUS_NOTRANSFER         0x81\r
                #define TMC_REQUEST_STATUS_NOCHECKINITIATED   0x82\r
                #define TMC_REQUEST_STATUS_CHECKINPROGRESS    0x83\r
+\r
+       /* Type Defines */\r
+               typedef struct\r
+               {\r
+                       uint8_t  Status;\r
+                       uint8_t  _RESERVED1;\r
+\r
+                       uint16_t TMCVersion;\r
+                       \r
+                       struct\r
+                       {\r
+                               unsigned char ListenOnly             : 1;\r
+                               unsigned char TalkOnly               : 1;\r
+                               unsigned char PulseIndicateSupported : 1;\r
+                               unsigned char _RESERVED              : 5;\r
+                       } Interface;\r
+                       \r
+                       struct\r
+                       {\r
+                               unsigned char SupportsAbortINOnMatch : 1;\r
+                               unsigned char _RESERVED              : 7;\r
+                       } Device;\r
+                       \r
+                       uint8_t _RESERVED2[6];\r
+                       uint8_t _RESERVED3[12];                 \r
+               } TMC_Capabilities_t;\r
                \r
        /* Function Prototypes: */\r
                void SetupHardware(void);\r