U盘BOT存储UFI协议WRITE(10)命令:0x2A
2022-05-23
1556
2
WRITE(10)命令要求UFI设备将主机传输的数据写入介质。
#define WRITE_DATA 0x2a
UFI WRITE(10)命令格式
- DPO:为0
- FUA:为0
- RelAdr:为0
typedef struct _READ_CMD
{
#pragma pack(1)
UCHAR cmd;
UCHAR Reserved : 5;
UCHAR LogicalUnitNum : 3;
ULONG LogicalBlockAddress;
UCHAR Reserved2;
USHORT TransferLength;
UCHAR Reserved3[3];
#pragma pack()
}READ_CMD;
typedef struct _READ_CMD WRITE_CMD;
WRITE_CMD* pWriteCmd = (WRITE_CMD*)deviceExtension->cbw.CBWCB;
USHORT len = SwapUSHORT(pWriteCmd->TransferLength);
HID人机交互QQ群:564808376
UAC音频QQ群:218581009
UVC相机QQ群:331552032
BOT&UASP大容量存储QQ群:258159197
STC-USB单片机QQ群:315457461
USB技术交流QQ群2:580684376
USB技术交流QQ群:952873936