Select one of the symbols to view example projects that use it.
 
Outline
#define __USBD_MSC_BOT_H
#include "usbd_core.h"
#define USBD_BOT_IDLE
#define USBD_BOT_DATA_OUT
#define USBD_BOT_DATA_IN
#define USBD_BOT_LAST_DATA_IN
#define USBD_BOT_SEND_DATA
#define USBD_BOT_NO_DATA
#define USBD_BOT_CBW_SIGNATURE
#define USBD_BOT_CSW_SIGNATURE
#define USBD_BOT_CBW_LENGTH
#define USBD_BOT_CSW_LENGTH
#define USBD_BOT_MAX_DATA
#define USBD_CSW_CMD_PASSED
#define USBD_CSW_CMD_FAILED
#define USBD_CSW_PHASE_ERROR
#define USBD_BOT_STATUS_NORMAL
#define USBD_BOT_STATUS_RECOVERY
#define USBD_BOT_STATUS_ERROR
#define USBD_DIR_IN
#define USBD_DIR_OUT
#define USBD_BOTH_DIR
USBD_MSC_BOT_CBWTypeDef
USBD_MSC_BOT_CSWTypeDef
MSC_BOT_Init(USBD_HandleTypeDef *);
MSC_BOT_Reset(USBD_HandleTypeDef *);
MSC_BOT_DeInit(USBD_HandleTypeDef *);
MSC_BOT_DataIn(USBD_HandleTypeDef *, uint8_t);
MSC_BOT_DataOut(USBD_HandleTypeDef *, uint8_t);
MSC_BOT_SendCSW(USBD_HandleTypeDef *, uint8_t);
MSC_BOT_CplClrFeature(USBD_HandleTypeDef *, uint8_t);
Files
loading...
CodeScopeSTM32 Libraries and SamplesSTM32_USB_Device_LibraryClass/MSC/Inc/usbd_msc_bot.h
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file usbd_msc_bot.h * @author MCD Application Team * @brief Header for the usbd_msc_bot.c file ****************************************************************************** * @attention * * Copyright (c) 2015 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Define to prevent recursive inclusion -------------------------------------*/ #ifndef __USBD_MSC_BOT_H #define __USBD_MSC_BOT_H #ifdef __cplusplus extern "C" { #endif /* Includes ------------------------------------------------------------------*/ #include "usbd_core.h" /** @addtogroup STM32_USB_DEVICE_LIBRARY * @{ *//* ... */ /** @defgroup MSC_BOT * @brief This file is the Header file for usbd_msc_bot.c * @{ *//* ... */ /** @defgroup USBD_CORE_Exported_Defines * @{ *//* ... */ #define USBD_BOT_IDLE 0U /* Idle state */ #define USBD_BOT_DATA_OUT 1U /* Data Out state */ #define USBD_BOT_DATA_IN 2U /* Data In state */ #define USBD_BOT_LAST_DATA_IN 3U /* Last Data In Last */ #define USBD_BOT_SEND_DATA 4U /* Send Immediate data */ #define USBD_BOT_NO_DATA 5U /* No data Stage */ #define USBD_BOT_CBW_SIGNATURE 0x43425355U #define USBD_BOT_CSW_SIGNATURE 0x53425355U #define USBD_BOT_CBW_LENGTH 31U #define USBD_BOT_CSW_LENGTH 13U #define USBD_BOT_MAX_DATA 256U /* CSW Status Definitions */ #define USBD_CSW_CMD_PASSED 0x00U #define USBD_CSW_CMD_FAILED 0x01U #define USBD_CSW_PHASE_ERROR 0x02U /* BOT Status */ #define USBD_BOT_STATUS_NORMAL 0U #define USBD_BOT_STATUS_RECOVERY 1U #define USBD_BOT_STATUS_ERROR 2U #define USBD_DIR_IN 0U #define USBD_DIR_OUT 1U #define USBD_BOTH_DIR 2U 20 defines /** * @} *//* ... */ /** @defgroup MSC_CORE_Private_TypesDefinitions * @{ *//* ... */ typedef struct { uint32_t dSignature; uint32_t dTag; uint32_t dDataLength; uint8_t bmFlags; uint8_t bLUN; uint8_t bCBLength; uint8_t CB[16]; uint8_t ReservedForAlign; ...} USBD_MSC_BOT_CBWTypeDef; typedef struct { uint32_t dSignature; uint32_t dTag; uint32_t dDataResidue; uint8_t bStatus; uint8_t ReservedForAlign[3]; ...} USBD_MSC_BOT_CSWTypeDef; /** * @} *//* ... */ /** @defgroup USBD_CORE_Exported_Types * @{ *//* ... */ /** * @} *//* ... */ /** @defgroup USBD_CORE_Exported_FunctionsPrototypes * @{ *//* ... */ void MSC_BOT_Init(USBD_HandleTypeDef *pdev); void MSC_BOT_Reset(USBD_HandleTypeDef *pdev); void MSC_BOT_DeInit(USBD_HandleTypeDef *pdev); void MSC_BOT_DataIn(USBD_HandleTypeDef *pdev, uint8_t epnum); void MSC_BOT_DataOut(USBD_HandleTypeDef *pdev, uint8_t epnum); void MSC_BOT_SendCSW(USBD_HandleTypeDef *pdev, uint8_t CSW_Status); void MSC_BOT_CplClrFeature(USBD_HandleTypeDef *pdev, uint8_t epnum); /** * @} *//* ... */ #ifdef __cplusplus }extern "C" { ... } #endif /* ... */ #endif /* __USBD_MSC_BOT_H */ /** * @} *//* ... */ /** * @} *//* ... */