Corrected AudioInput and AudioOutput demos, to fix endpoint underflows due to roundin...
[pub/USBasp.git] / Demos / Host / MassStorageHost / MassStoreCommands.h
index d3ddfee..97bbe29 100644 (file)
@@ -54,7 +54,7 @@
                /** Command Block Wrapper signature byte, for verification of valid CBW blocks */\r
                #define CBW_SIGNATURE                    0x43425355UL\r
 \r
-               /** Command Statuc Wrapper signature byte, for verification of valid CSW blocks */\r
+               /** Command Static Wrapper signature byte, for verification of valid CSW blocks */\r
                #define CSW_SIGNATURE                    0x53425355UL\r
                \r
                /** Data direction mask for the Flags field of a CBW, indicating Host-to-Device transfer direction */\r
                {\r
                        uint32_t Signature; /**< Command status signature, always equal to CSW_SIGNATURE */\r
                        uint32_t Tag; /**< Current CBW tag, to positively associate a CBW with a CSW */\r
-                       uint32_t DataTransferResidue; /**< Length of data not transfered */\r
+                       uint32_t DataTransferResidue; /**< Length of data not transferred */\r
                        uint8_t  Status; /**< Command status, a value from the MassStorageHost_CommandStatusCodes_t enum */\r
                } CommandStatusWrapper_t;\r
                \r
                /** Type define for a SCSI Sense structure. Structures of this type are filled out by the\r
                 *  device via the MassStore_RequestSense() function, indicating the current sense data of the\r
-                *  device (giving explitic error codes for the last issued command). For details of the\r
+                *  device (giving explicit error codes for the last issued command). For details of the\r
                 *  structure contents, refer to the SCSI specifications.\r
                 */\r
                typedef struct\r
                {\r
-                       unsigned int ReponseCode         : 7;\r
-                       unsigned int Valid               : 1;\r
+                       unsigned char ReponseCode         : 7;\r
+                       unsigned char Valid               : 1;\r
                        \r
                        uint8_t      SegmentNumber;\r
                        \r
-                       unsigned int SenseKey            : 4;\r
-                       unsigned int _RESERVED1          : 1;\r
-                       unsigned int ILI                 : 1;\r
-                       unsigned int EOM                 : 1;\r
-                       unsigned int FileMark            : 1;\r
+                       unsigned char SenseKey            : 4;\r
+                       unsigned char _RESERVED1          : 1;\r
+                       unsigned char ILI                 : 1;\r
+                       unsigned char EOM                 : 1;\r
+                       unsigned char FileMark            : 1;\r
                        \r
                        uint8_t      Information[4];\r
                        uint8_t      AdditionalLength;\r