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
36
40
52
53
54
55
56
57
58
59
60
61
62
63
64
/* ... */
#ifndef __USBD_APP_H
#define __USBD_APP_H
#ifdef __cplusplus
extern "C" {
#endif
#include "main.h"
#include "usbd_core.h"
#include "usbd_desc.h"
#include "usbd_msc.h"
#include "usbd_storage.h"
#include "stm32412g_discovery.h"
#include "stm32412g_discovery_sd.h"
7 includes Includes
#define CONNECTED 0x00
#define DISCONNECTED 0x01
Exported constants
typedef enum
{
USBD_ERROR_NONE = 0,
USBD_ERROR_IO,
USBD_ERROR_HW,
USBD_ERROR_UNKNOWN,
...}USBD_ErrorTypdef;
Exported types
USBD_ErrorTypdef USBDSTOR_Start(void);
USBD_ErrorTypdef USBDSTOR_Connect(void);
USBD_ErrorTypdef USBDSTOR_Refrech(void);
USBD_ErrorTypdef USBDSTOR_Stop(void);
USBD_ErrorTypdef USBDSTOR_Disconnect(void);
#ifdef __cplusplus
}extern "C" { ... }
#endif
/* ... */
#endif