VSF Documented
vsf_usb_MSC.h
Go to the documentation of this file.
1/*****************************************************************************
2 * Copyright(C)2009-2022 by VSF Team *
3 * *
4 * Licensed under the Apache License, Version 2.0 (the "License"); *
5 * you may not use this file except in compliance with the License. *
6 * You may obtain a copy of the License at *
7 * *
8 * http://www.apache.org/licenses/LICENSE-2.0 *
9 * *
10 * Unless required by applicable law or agreed to in writing, software *
11 * distributed under the License is distributed on an "AS IS" BASIS, *
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. *
13 * See the License for the specific language governing permissions and *
14 * limitations under the License. *
15 * *
16 ****************************************************************************/
17
18#ifndef __VSF_USB_MSC_H__
19#define __VSF_USB_MSC_H__
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25/*============================ INCLUDES ======================================*/
26/*============================ MACROS ========================================*/
27
28#define USB_MSC_CBW_SIGNATURE 0x43425355
29#define USB_MSC_CSW_SIGNATURE 0x53425355
30
31/*============================ MACROFIED FUNCTIONS ===========================*/
32/*============================ TYPES =========================================*/
33
44
52
53typedef enum usb_msc_req_t {
57
63
64/*============================ GLOBAL VARIABLES ==============================*/
65/*============================ PROTOTYPES ====================================*/
66
67#ifdef __cplusplus
68}
69#endif
70
71#endif // __VSF_USB_MSC_H__
unsigned uint32_t
Definition stdint.h:9
unsigned char uint8_t
Definition stdint.h:5
Definition vsf_usb_MSC.h:35
uint32_t dCBWDataTransferLength
Definition vsf_usb_MSC.h:38
uint32_t dCBWTag
Definition vsf_usb_MSC.h:37
uint8_t CBWCB[16]
Definition vsf_usb_MSC.h:42
uint8_t bCBWCBLength
Definition vsf_usb_MSC.h:41
uint8_t bCBWLUN
Definition vsf_usb_MSC.h:40
uint8_t bmCBWFlags
Definition vsf_usb_MSC.h:39
uint32_t dCBWSignature
Definition vsf_usb_MSC.h:36
Definition vsf_usb_MSC.h:46
uint32_t dCSWTag
Definition vsf_usb_MSC.h:48
uint32_t dCSWSignature
Definition vsf_usb_MSC.h:47
uint8_t dCSWStatus
Definition vsf_usb_MSC.h:50
uint32_t dCSWDataResidue
Definition vsf_usb_MSC.h:49
struct usb_msc_cbw_t VSF_CAL_PACKED
usb_msc_req_t
Definition vsf_usb_MSC.h:53
@ USB_MSC_REQ_GET_MAX_LUN
Definition vsf_usb_MSC.h:54
@ USB_MSC_REQ_RESET
Definition vsf_usb_MSC.h:55
usb_msc_csw_status_t
Definition vsf_usb_MSC.h:58
@ USB_MSC_CSW_FAIL
Definition vsf_usb_MSC.h:60
@ USB_MSC_CSW_PHASE_ERROR
Definition vsf_usb_MSC.h:61
@ USB_MSC_CSW_OK
Definition vsf_usb_MSC.h:59