37 #define INCLUDE_FROM_SCSI_C
50 .PeripheralQualifier = 0,
56 .ResponseDataFormat = 2,
61 .AdditionalLength = 0x1F,
67 .WideBus16Bit =
false,
68 .WideBus32Bit =
false,
72 .ProductID =
"Dataflash Disk",
73 .RevisionID = {
'0',
'.',
'0',
'0'},
84 .AdditionalLength = 0x0A,
102 uint16_t AllocationLength =
104 uint16_t BytesTransferred =
MIN(AllocationLength,
sizeof(
InquiryData));
107 if ((MSInterfaceInfo->
State.
CommandBlock.SCSICommandData[1] & ((1 << 0) | (1 << 1))) ||
134 uint8_t AllocationLength = MSInterfaceInfo->
State.
CommandBlock.SCSICommandData[4];
135 uint8_t BytesTransferred =
MIN(AllocationLength,
sizeof(
SenseData));
183 const bool IsDataRead)
186 uint16_t TotalBlocks;
233 uint16_t blocks, dummyblocks;
237 dummyblocks = TotalBlocks;
239 else if (blocks < TotalBlocks) {
240 dummyblocks = TotalBlocks - blocks;
242 else {dummyblocks = 0; }
271 bool CommandSuccess =
false;
307 CommandSuccess =
true;
320 if (CommandSuccess) {