NetBurner 3.5.7
PDF Version
_usb_host_cbw Struct Reference

MSC Bulk-Only command block wrapper (CBW) More...

#include <usb_host_msd.h>

Public Attributes

uint32_t CBWSignature
 
uint32_t CBWTag
 
uint32_t CBWDataTransferLength
 
uint8_t CBWFlags
 
uint8_t CBWLun
 
uint8_t CBWCBLength
 
uint8_t CBWCB [16]
 

Detailed Description

MSC Bulk-Only command block wrapper (CBW)

Member Data Documentation

◆ CBWCB

uint8_t _usb_host_cbw::CBWCB[16]

The command block to be executed by the device

◆ CBWCBLength

uint8_t _usb_host_cbw::CBWCBLength

The valid length of the CBWCB in bytes. This defines the valid length of the command block. The only legal values are 1 through 16 (01h through 10h).

◆ CBWDataTransferLength

uint32_t _usb_host_cbw::CBWDataTransferLength

The number of bytes of data that the host expects to transfer on the Bulk-In or Bulk-Out endpoint during the execution of this command

◆ CBWFlags

uint8_t _usb_host_cbw::CBWFlags

Bit 7 Direction - the device shall ignore this bit if the dCBWDataTransferLength field is zero, otherwise: 0 = Data-Out from host to the device, 1 = Data-In from the device to the host. Bit 6 Obsolete. The host shall set this bit to zero. Bits 5..0 Reserved - the host shall set these bits to zero.

◆ CBWLun

uint8_t _usb_host_cbw::CBWLun

The device Logical Unit Number (LUN) to which the command block is being sent

◆ CBWSignature

uint32_t _usb_host_cbw::CBWSignature

Signature that helps identify this data packet as a CBW. The signature field shall contain the value 43425355h (little endian), indicating a CBW

◆ CBWTag

uint32_t _usb_host_cbw::CBWTag

A Command Block Tag sent by the host. The device shall echo the contents of this field back to the host in the dCSWTag field of the associated CSW


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