# usb_msc_cbw Struct Reference

A Command Block Wrapper (CBW). More...

`#include <msc_protocol.h>`

## Data Fields
le32_t | dCBWSignature
| Must contain 'USBC'.
le32_t | dCBWTag
| Unique command ID.
le32_t | dCBWDataTransferLength
| Number of bytes to transfer.
uint8_t | bmCBWFlags
| Direction in bit 7.
uint8_t | bCBWLUN
| Logical Unit Number.
uint8_t | bCBWCBLength
| Number of valid CDB bytes.
uint8_t | CDB [16]
| SCSI Command Descriptor Block.

## Detailed Description

A Command Block Wrapper (CBW).

Definition at line 98 of file msc_protocol.h.

## Field Documentation

uint8_t usb_msc_cbw::bCBWCBLength

Number of valid CDB bytes.

Definition at line 104 of file msc_protocol.h.

uint8_t usb_msc_cbw::bCBWLUN

Logical Unit Number.

Definition at line 103 of file msc_protocol.h.

uint8_t usb_msc_cbw::bmCBWFlags

Direction in bit 7.

Definition at line 102 of file msc_protocol.h.

uint8_t usb_msc_cbw::CDB[16]

SCSI Command Descriptor Block.

Definition at line 105 of file msc_protocol.h.

le32_t usb_msc_cbw::dCBWDataTransferLength

Number of bytes to transfer.

Definition at line 101 of file msc_protocol.h.

Referenced by msc_do_read().

le32_t usb_msc_cbw::dCBWSignature

Must contain 'USBC'.

Definition at line 99 of file msc_protocol.h.

le32_t usb_msc_cbw::dCBWTag

Unique command ID.

Definition at line 100 of file msc_protocol.h.

The documentation for this struct was generated from the following file:

- include/usb/msc_protocol.h