ATMEL: usb_commun_ms.h File Reference

- Main Page
- Modules
- Data Structures
- Files
- Related Pages

# usb_commun_ms.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Defines

Global Class, SubClass & Protocol constants for Mass Storage
#define | MS_CLASS 0x08
| Mass Storage Class.
#define | MS_SUB_CLASS1 0x01
| Reduced Block Commands (RBC) T10, project 1240-D.
#define | MS_SUB_CLASS2 0x02
| SFF-8020i or MMC-2 (ATAPI) command blocks.
#define | MS_SUB_CLASS3 0x03
| Typically, a tape device uses QIC-157 command blocks.
#define | MS_SUB_CLASS4 0x04
| (UFI) Typically, a floppy disk drive (FDD) device
#define | MS_SUB_CLASS5 0x05
| SFF-8070i command blocks.
#define | MS_SUB_CLASS6 0x06
| SCSI transparent Command Set.
#define | MS_PRO_CTRLBULKINT_COMP 0x00
#define | MS_PRO_CTRLBULKINT_NOCOMP 0x01
#define | MS_PROTOCOL_BULK_ONLY 0x50
| Bulk-Only Transport.
#define | MS_PROTOCOL MS_PROTOCOL_BULK_ONLY
Specific setup requests from Mass Storage
#define | SETUP_MASS_STORAGE_GET_MAX_LUN 0xFE
#define | SETUP_MASS_STORAGE_RESET 0xFF

## Detailed Description

This file contains the usb MassStorage definition constant parameters - Compiler: IAR EWAVR and GNU GCC for AVR

Author:
  Atmel Corporation: http://www.atmel.com
  Support and FAQ: http://support.atmel.no/

Definition in file usb_commun_ms.h.

## Define Documentation

#define MS_CLASS 0x08

Mass Storage Class.

Definition at line 48 of file usb_commun_ms.h.

Referenced by host_mem_install().

#define MS_SUB_CLASS1 0x01

Reduced Block Commands (RBC) T10, project 1240-D.

Definition at line 58 of file usb_commun_ms.h.

#define MS_SUB_CLASS2 0x02

SFF-8020i or MMC-2 (ATAPI) command blocks.

Definition at line 59 of file usb_commun_ms.h.

#define MS_SUB_CLASS3 0x03

Typically, a tape device uses QIC-157 command blocks.

Definition at line 60 of file usb_commun_ms.h.

#define MS_SUB_CLASS4 0x04

(UFI) Typically, a floppy disk drive (FDD) device

Definition at line 61 of file usb_commun_ms.h.

#define MS_SUB_CLASS5 0x05

SFF-8070i command blocks.

Definition at line 62 of file usb_commun_ms.h.

#define MS_SUB_CLASS6 0x06

SCSI transparent Command Set.

Definition at line 63 of file usb_commun_ms.h.

#define MS_PRO_CTRLBULKINT_COMP 0x00

Definition at line 68 of file usb_commun_ms.h.

#define MS_PRO_CTRLBULKINT_NOCOMP 0x01

Definition at line 69 of file usb_commun_ms.h.

#define MS_PROTOCOL_BULK_ONLY 0x50

Bulk-Only Transport.

Definition at line 70 of file usb_commun_ms.h.

#define MS_PROTOCOL MS_PROTOCOL_BULK_ONLY

Definition at line 71 of file usb_commun_ms.h.

#define SETUP_MASS_STORAGE_GET_MAX_LUN 0xFE

Definition at line 76 of file usb_commun_ms.h.

Referenced by usb_user_read_request().

#define SETUP_MASS_STORAGE_RESET 0xFF

Definition at line 77 of file usb_commun_ms.h.

Referenced by usb_user_read_request().