From 3a79548dc2bfd08f13a387b5533d8598ba0078d7 Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Fri, 23 Jul 2010 09:12:26 +0000 Subject: Add TMC device capabilities to the incomplete TMC demo. --- .../TestAndMeasurement/TestAndMeasurement.h | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'Demos/Device/Incomplete/TestAndMeasurement/TestAndMeasurement.h') 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); -- cgit v1.2.3