Documentation improvements - put driver example code into its own section, fix incorr...
[pub/USBasp.git] / Demos / Device / Incomplete / Sideshow / Lib / SideshowCommon.h
index b801ecf..61696b1 100644 (file)
@@ -1,21 +1,21 @@
 /*
              LUFA Library
      Copyright (C) Dean Camera, 2010.
 /*
              LUFA Library
      Copyright (C) Dean Camera, 2010.
-              
+
   dean [at] fourwalledcubicle [dot] com
   dean [at] fourwalledcubicle [dot] com
-      www.fourwalledcubicle.com
+           www.lufa-lib.org
 */
 
 /*
   Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 
 */
 
 /*
   Copyright 2010  Dean Camera (dean [at] fourwalledcubicle [dot] com)
 
-  Permission to use, copy, modify, distribute, and sell this 
+  Permission to use, copy, modify, distribute, and sell this
   software and its documentation for any purpose is hereby granted
   software and its documentation for any purpose is hereby granted
-  without fee, provided that the above copyright notice appear in 
+  without fee, provided that the above copyright notice appear in
   all copies and that both that the copyright notice and this
   all copies and that both that the copyright notice and this
-  permission notice and warranty disclaimer appear in supporting 
-  documentation, and that the name of the author not be used in 
-  advertising or publicity pertaining to distribution of the 
+  permission notice and warranty disclaimer appear in supporting
+  documentation, and that the name of the author not be used in
+  advertising or publicity pertaining to distribution of the
   software without specific, written prior permission.
 
   The author disclaim all warranties with regard to this
   software without specific, written prior permission.
 
   The author disclaim all warranties with regard to this
 
        /* Includes: */
                #include <avr/io.h>
 
        /* Includes: */
                #include <avr/io.h>
-               #include <string.h>     
-       
+               #include <string.h>
+
                #include <LUFA/Drivers/USB/USB.h>
 
        /* Macros: */
                #define GUID_COMPARE(a, b)                (memcmp(a, b, sizeof(GUID_t)) == 0)
                #include <LUFA/Drivers/USB/USB.h>
 
        /* Macros: */
                #define GUID_COMPARE(a, b)                (memcmp(a, b, sizeof(GUID_t)) == 0)
-       
+
                #define ARRAY_ELEMENTS(x)                 (sizeof(x) / sizeof(x[0]))
                #define ARRAY_ELEMENTS(x)                 (sizeof(x) / sizeof(x[0]))
-               
+
                #define UNICODE_STRING_t(x)               struct                          \
                                                          {                               \
                                                              uint16_t LengthInBytes;     \
                #define UNICODE_STRING_t(x)               struct                          \
                                                          {                               \
                                                              uint16_t LengthInBytes;     \
                {
                        uint32_t         Chunks[4];
                } GUID_t;
                {
                        uint32_t         Chunks[4];
                } GUID_t;
-               
+
                typedef struct
                {
                        uint16_t         LengthInBytes;
                        int              UnicodeString[];
                typedef struct
                {
                        uint16_t         LengthInBytes;
                        int              UnicodeString[];
-               } Unicode_String_t;     
+               } Unicode_String_t;
 
                typedef union
                {
 
                typedef union
                {
 
                                int ErrorCode     : 6;
                                int NAK           : 1;
 
                                int ErrorCode     : 6;
                                int NAK           : 1;
-                               int Response      : 1;                          
-                       };
+                               int Response      : 1;
+                       } TypeFields;
                } SideShowPacketType_t;
                } SideShowPacketType_t;
-       
+
                typedef struct
                {
                        uint32_t               Length;
                typedef struct
                {
                        uint32_t               Length;
                void     SideShow_Write_Unicode_String(void* UnicodeString);
                void     SideShow_Discard_Byte_Stream(void);
 
                void     SideShow_Write_Unicode_String(void* UnicodeString);
                void     SideShow_Discard_Byte_Stream(void);
 
-#endif
\ No newline at end of file
+#endif