X-Git-Url: http://git.linex4red.de/pub/USBasp.git/blobdiff_plain/ed031c1df2f5b053b9cd9f48c63e66a42b7c049e..ecaf872177e771b6b7e331b47a5b68832b5dd126:/Demos/Host/MassStorageHost/MassStoreCommands.h?ds=sidebyside diff --git a/Demos/Host/MassStorageHost/MassStoreCommands.h b/Demos/Host/MassStorageHost/MassStoreCommands.h index d3ddfeeb9..97bbe29b2 100644 --- a/Demos/Host/MassStorageHost/MassStoreCommands.h +++ b/Demos/Host/MassStorageHost/MassStoreCommands.h @@ -54,7 +54,7 @@ /** Command Block Wrapper signature byte, for verification of valid CBW blocks */ #define CBW_SIGNATURE 0x43425355UL - /** Command Statuc Wrapper signature byte, for verification of valid CSW blocks */ + /** Command Static Wrapper signature byte, for verification of valid CSW blocks */ #define CSW_SIGNATURE 0x53425355UL /** Data direction mask for the Flags field of a CBW, indicating Host-to-Device transfer direction */ @@ -98,27 +98,27 @@ { uint32_t Signature; /**< Command status signature, always equal to CSW_SIGNATURE */ uint32_t Tag; /**< Current CBW tag, to positively associate a CBW with a CSW */ - uint32_t DataTransferResidue; /**< Length of data not transfered */ + uint32_t DataTransferResidue; /**< Length of data not transferred */ uint8_t Status; /**< Command status, a value from the MassStorageHost_CommandStatusCodes_t enum */ } CommandStatusWrapper_t; /** Type define for a SCSI Sense structure. Structures of this type are filled out by the * device via the MassStore_RequestSense() function, indicating the current sense data of the - * device (giving explitic error codes for the last issued command). For details of the + * device (giving explicit error codes for the last issued command). For details of the * structure contents, refer to the SCSI specifications. */ typedef struct { - unsigned int ReponseCode : 7; - unsigned int Valid : 1; + unsigned char ReponseCode : 7; + unsigned char Valid : 1; uint8_t SegmentNumber; - unsigned int SenseKey : 4; - unsigned int _RESERVED1 : 1; - unsigned int ILI : 1; - unsigned int EOM : 1; - unsigned int FileMark : 1; + unsigned char SenseKey : 4; + unsigned char _RESERVED1 : 1; + unsigned char ILI : 1; + unsigned char EOM : 1; + unsigned char FileMark : 1; uint8_t Information[4]; uint8_t AdditionalLength;