SAMV71 Xplained Ultra Software Package 1.3

MSD.h File Reference

#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  MSCbw
struct  MSCsw

Defines

#define MSD_BULK_ONLY_RESET   0xFF
#define MSD_GET_MAX_LUN   0xFE
#define MSD_SUBCLASS_RBC   0x01
#define MSD_SUBCLASS_SFF_MCC   0x02
#define MSD_SUBCLASS_QIC   0x03
#define MSD_SUBCLASS_UFI   0x04
#define MSD_SUBCLASS_SFF   0x05
#define MSD_SUBCLASS_SCSI   0x06
#define MSD_PROTOCOL_CBI_COMPLETION   0x00
#define MSD_PROTOCOL_CBI   0x01
#define MSD_PROTOCOL_BULK_ONLY   0x50
#define MSD_CBW_SIZE   31
#define MSD_CBW_SIGNATURE   0x43425355
#define MSD_CBW_DEVICE_TO_HOST   (1 << 7)
#define MSD_CBW_DEVICE_TO_DEVICE   (0 << 7)
#define MSD_CSW_SIZE   13
#define MSD_CSW_SIGNATURE   0x53425355
#define MSD_CSW_COMMAND_PASSED   0
#define MSD_CSW_COMMAND_FAILED   1
#define MSD_CSW_PHASE_ERROR   2

Detailed Description

Purpose

Mass Storage class definitions.

See

Usage

  1. Uses "MSD Requests" to check incoming requests from USB Host.
  2. Uses "MSD Subclass Codes" and "MSD Protocol Codes" to fill device interface descriptors for a MSD device.
  3. Handle the incoming Bulk data with "MSD CBW Definitions" and MSCbw structure.
  4. Prepare the outgoing Bulk data with "MSD CSW Definitions" and MSCsw structure.

Definition in file MSD.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines