SAM3S8/SD8 Software Package: MSCbw Struct Reference

SAM3S8/SD8 Software Package 1.2
Data Fields

# MSCbw Struct Reference
[USB Massstorage Device Driver]

## Data Fields

uint32_t | dCBWSignature
uint32_t | dCBWTag
uint32_t | dCBWDataTransferLength
uint8_t | bmCBWFlags
uint8_t | bCBWLUN:4
uint8_t | bReserved1:4
uint8_t | bCBWCBLength:5
uint8_t | bReserved2:3
uint8_t | pCommand [16]

## Detailed Description

Definition at line 193 of file MSD.h.

## Field Documentation

uint8_t MSCbw::bCBWCBLength

reserved bits 0->4: bCBWCBLength

Definition at line 210 of file MSD.h.

uint8_t MSCbw::bCBWLUN

bits 0->3: bCBWLUN

Definition at line 207 of file MSD.h.

uint8_t MSCbw::bmCBWFlags

Indicates the directin of the transfer:

- 0x80=IN=device-to-host;
- 0x00=OUT=host-to-device

Definition at line 205 of file MSD.h.

uint32_t MSCbw::dCBWDataTransferLength

Number of bytes transfer

Definition at line 200 of file MSD.h.

uint32_t MSCbw::dCBWSignature

'USBC' 0x43425355 (little endian)

Definition at line 196 of file MSD.h.

uint32_t MSCbw::dCBWTag

Must be the same as dCSWTag

Definition at line 198 of file MSD.h.

uint8_t MSCbw::pCommand[16]

reserved Command block

Definition at line 213 of file MSD.h.

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

- libraries/usb/include/MSD.h

All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines