diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-07-23 09:12:26 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-07-23 09:12:26 +0000 |
commit | 3a79548dc2bfd08f13a387b5533d8598ba0078d7 (patch) | |
tree | a4de970fd4a5be169509971fac3ae7e47fed0689 /Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h | |
parent | eb8a708b5379755cbcdac900eb32f3c484bde58c (diff) | |
download | lufa-3a79548dc2bfd08f13a387b5533d8598ba0078d7.tar.gz lufa-3a79548dc2bfd08f13a387b5533d8598ba0078d7.tar.bz2 lufa-3a79548dc2bfd08f13a387b5533d8598ba0078d7.zip |
Add TMC device capabilities to the incomplete TMC demo.
Diffstat (limited to 'Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h')
-rw-r--r-- | Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h b/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h index 0a4a629a5..bd9aee689 100644 --- a/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h +++ b/Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h @@ -71,6 +71,32 @@ #define TMC_REQUEST_STATUS_NOTRANSFER 0x81
#define TMC_REQUEST_STATUS_NOCHECKINITIATED 0x82
#define TMC_REQUEST_STATUS_CHECKINPROGRESS 0x83
+
+ /* Type Defines */
+ typedef struct
+ {
+ uint8_t Status;
+ uint8_t _RESERVED1;
+
+ uint16_t TMCVersion;
+
+ struct
+ {
+ unsigned char ListenOnly : 1;
+ unsigned char TalkOnly : 1;
+ unsigned char PulseIndicateSupported : 1;
+ unsigned char _RESERVED : 5;
+ } Interface;
+
+ struct
+ {
+ unsigned char SupportsAbortINOnMatch : 1;
+ unsigned char _RESERVED : 7;
+ } Device;
+
+ uint8_t _RESERVED2[6];
+ uint8_t _RESERVED3[12];
+ } TMC_Capabilities_t;
/* Function Prototypes: */
void SetupHardware(void);
|