USB_Host_Shield_2.0
|
#include <inttypes.h>
#include <avr/pgmspace.h>
#include "avrpins.h"
#include "max3421e.h"
#include "usbhost.h"
#include "usb_ch9.h"
#include "Usb.h"
#include "Arduino.h"
#include "printhex.h"
#include "hexdump.h"
#include "message.h"
#include "confdescparser.h"
Go to the source code of this file.
Classes | |
struct | Capacity |
struct | InquiryResponse |
struct | CommandBlockWrapper |
struct | CommandStatusWrapper |
struct | RequestSenseResponce |
class | BulkOnly |
#define bmREQ_MASSIN USB_SETUP_DEVICE_TO_HOST|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE |
Definition at line 27 of file masstorage.h.
#define bmREQ_MASSOUT USB_SETUP_HOST_TO_DEVICE|USB_SETUP_TYPE_CLASS|USB_SETUP_RECIPIENT_INTERFACE |
Definition at line 26 of file masstorage.h.
#define MASS_CBW_SIGNATURE 0x43425355 |
Definition at line 54 of file masstorage.h.
#define MASS_CMD_DIR_IN (1 << 7) |
Definition at line 58 of file masstorage.h.
#define MASS_CMD_DIR_OUT (0 << 7) |
Definition at line 57 of file masstorage.h.
#define MASS_CSW_SIGNATURE 0x53425355 |
Definition at line 55 of file masstorage.h.
#define MASS_ERR_DEVICE_DISCONNECTED 0x11 |
Definition at line 75 of file masstorage.h.
#define MASS_ERR_GENERAL_USB_ERROR 0xFF |
Definition at line 77 of file masstorage.h.
#define MASS_ERR_PHASE_ERROR 0x01 |
Definition at line 74 of file masstorage.h.
#define MASS_ERR_SUCCESS 0x00 |
Definition at line 73 of file masstorage.h.
#define MASS_ERR_UNABLE_TO_RECOVER 0x12 |
Definition at line 76 of file masstorage.h.
#define MASS_MAX_ENDPOINTS 3 |
Definition at line 183 of file masstorage.h.
#define MASS_PROTO_BBB 0x50 |
Definition at line 44 of file masstorage.h.
#define MASS_PROTO_CBI 0x00 |
Definition at line 41 of file masstorage.h.
#define MASS_PROTO_CBI_NO_INT 0x01 |
Definition at line 42 of file masstorage.h.
#define MASS_PROTO_OBSOLETE 0x02 |
Definition at line 43 of file masstorage.h.
#define MASS_PROTO_UAS 0x62 |
Definition at line 45 of file masstorage.h.
#define MASS_REQ_ADSC 0x00 |
Definition at line 48 of file masstorage.h.
#define MASS_REQ_BOMSR 0xFF |
Definition at line 52 of file masstorage.h.
#define MASS_REQ_GET 0xFC |
Definition at line 49 of file masstorage.h.
#define MASS_REQ_GET_MAX_LUN 0xFE |
Definition at line 51 of file masstorage.h.
#define MASS_REQ_PUT 0xFD |
Definition at line 50 of file masstorage.h.
#define MASS_SUBCLASS_ATAPI 0x02 |
Definition at line 32 of file masstorage.h.
#define MASS_SUBCLASS_IEEE1667 0x08 |
Definition at line 38 of file masstorage.h.
#define MASS_SUBCLASS_LSDFS 0x07 |
Definition at line 37 of file masstorage.h.
#define MASS_SUBCLASS_OBSOLETE1 0x03 |
Definition at line 33 of file masstorage.h.
#define MASS_SUBCLASS_OBSOLETE2 0x05 |
Definition at line 35 of file masstorage.h.
#define MASS_SUBCLASS_RBC 0x01 |
Definition at line 31 of file masstorage.h.
#define MASS_SUBCLASS_SCSI 0x06 |
Definition at line 36 of file masstorage.h.
#define MASS_SUBCLASS_SCSI_NOT_REPORTED 0x00 |
Definition at line 30 of file masstorage.h.
#define MASS_SUBCLASS_UFI 0x04 |
Definition at line 34 of file masstorage.h.
#define MASS_TRANS_FLG_CALLBACK 0x01 |
Definition at line 79 of file masstorage.h.
#define MASS_TRANS_FLG_NO_PHASE_CHECK 0x04 |
Definition at line 81 of file masstorage.h.
#define MASS_TRANS_FLG_NO_STALL_CHECK 0x02 |
Definition at line 80 of file masstorage.h.
#define SCSI_CMD_FORMAT_UNIT 0x04 |
Definition at line 63 of file masstorage.h.
#define SCSI_CMD_INQUIRY 0x12 |
Definition at line 60 of file masstorage.h.
#define SCSI_CMD_MODE_SENSE_10 0x5A |
Definition at line 71 of file masstorage.h.
#define SCSI_CMD_MODE_SENSE_6 0x1A |
Definition at line 70 of file masstorage.h.
#define SCSI_CMD_READ_10 0x28 |
Definition at line 65 of file masstorage.h.
#define SCSI_CMD_READ_6 0x08 |
Definition at line 64 of file masstorage.h.
#define SCSI_CMD_READ_CAPACITY_10 0x25 |
Definition at line 66 of file masstorage.h.
#define SCSI_CMD_REPORT_LUNS 0xA0 |
Definition at line 61 of file masstorage.h.
#define SCSI_CMD_REQUEST_SENSE 0x03 |
Definition at line 62 of file masstorage.h.
#define SCSI_CMD_TEST_UNIT_READY 0x00 |
Definition at line 67 of file masstorage.h.
#define SCSI_CMD_WRITE_10 0x2A |
Definition at line 69 of file masstorage.h.
#define SCSI_CMD_WRITE_6 0x0A |
Definition at line 68 of file masstorage.h.
#define SWAP | ( | a, | |
b | |||
) | (((a) ^= (b)), ((b) ^= (a)), ((a) ^= (b))) |
Definition at line 24 of file masstorage.h.