Select one of the symbols to view example projects that use it.
 
Outline
#define __MAIN_H
Includes
#include "stdio.h"
#include "usbh_core.h"
#include "usbh_cdc.h"
#include "stm324xg_eval_io.h"
#include "stm324xg_eval_sd.h"
#include "lcd_log.h"
#include "ff_gen_drv.h"
#include "sd_diskio.h"
Exported constants
#define FILEMGR_LIST_DEPDTH
#define FILEMGR_FILE_NAME_SIZE
#define FILEMGR_FULL_PATH_SIZE
#define FILEMGR_MAX_LEVEL
#define FILETYPE_DIR
#define FILETYPE_FILE
Exported types
CDC_Demo_State
CDC_Send_State
CDC_Receive_State
CDC_Configuration_State
_DemoStateMachine
_DemoSettings
_DemoSettingStateMachine
CDC_DEMO_SelectMode
CDC_ApplicationTypeDef
_FILELIST_LineTypeDef
_FILELIST_FileTypeDef
hUSBHost;
Appli_state;
DEMO_CONFIGURATION_menu;
CdcSelectMode;
CdcSettingsState;
CdcDemo;
PrevSelect;
FileList;
DEMO_SEND_menu;
Exported functions
Toggle_Leds();
Menu_Init();
CDC_SelectItem(uint8_t **, uint8_t);
CDC_Handle_Send_Menu();
CDC_Handle_Receive_Menu();
CDC_Handle_Configuration_Menu();
CDC_ChangeSelectMode(CDC_DEMO_SelectMode);
CDC_AdjustSettingMenu();
CDC_SelectItem(uint8_t **, uint8_t);
CDC_ChangeSelectMode(CDC_DEMO_SelectMode);
CDC_SelectSettingsItem(uint8_t);
CDC_MenuProcess();
CDC_Settings_ProbeKey(JOYState_TypeDef);
CDC_SendFile_ProbeKey(JOYState_TypeDef);
SD_StorageInit();
SD_StorageParse();
LCD_ClearTextZone();
GetDefaultConfiguration();
Files
loading...
SourceVuSTM32 Libraries and SamplesCDC_StandaloneInc/main.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
147
148
149
150
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file USB_Host/CDC_Standalone/Src/main.h * @author MCD Application Team * @brief Header for main.c module ****************************************************************************** * @attention * * Copyright (c) 2017 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 __MAIN_H #define __MAIN_H /* Includes ------------------------------------------------------------------*/ #include "stdio.h" #include "usbh_core.h" #include "usbh_cdc.h" #include "stm324xg_eval_io.h" #include "stm324xg_eval_sd.h" #include "lcd_log.h" #include "ff_gen_drv.h" #include "sd_diskio.h" 8 includes Includes/* Exported constants --------------------------------------------------------*/ #define FILEMGR_LIST_DEPDTH 24 #define FILEMGR_FILE_NAME_SIZE 40 #define FILEMGR_FULL_PATH_SIZE 256 #define FILEMGR_MAX_LEVEL 4 #define FILETYPE_DIR 0 #define FILETYPE_FILE 1 6 defines Exported constants/* Exported types ------------------------------------------------------------*/ typedef enum { CDC_DEMO_IDLE = 0, CDC_DEMO_WAIT, CDC_DEMO_SEND, CDC_DEMO_RECEIVE, CDC_DEMO_CONFIGURATION, CDC_DEMO_REENUMERATE, ...}CDC_Demo_State; typedef enum { CDC_SEND_IDLE = 0, CDC_SEND_WAIT, CDC_SEND_SELECT_FILE, CDC_SEND_TRANSMIT_FILE, ...}CDC_Send_State; typedef enum { CDC_RECEIVE_IDLE = 0, CDC_RECEIVE_WAIT, CDC_RECEIVE_RECEIVE, ...}CDC_Receive_State; typedef enum { CDC_CONFIGURATION_IDLE = 0, CDC_CONFIGURATION_WAIT, CDC_CONFIGURATION_SET_BAUD_RATE, CDC_CONFIGURATION_SET_DATA_BITS, CDC_CONFIGURATION_SET_PARITY, CDC_CONFIGURATION_SET_STOP_BIT, ...}CDC_Configuration_State; typedef struct _DemoStateMachine { __IO CDC_Demo_State state; __IO CDC_Send_State Send_state; __IO CDC_Receive_State Receive_state; __IO CDC_Configuration_State Configuration_state; __IO uint8_t select; __IO uint8_t lock; ...}CDC_DEMO_StateMachine; typedef struct _DemoSettings { __IO uint8_t BaudRateIdx; __IO uint8_t DataBitsIdx; __IO uint8_t ParityIdx; __IO uint8_t StopBitsIdx; ...}CDC_DEMO_Settings; typedef struct _DemoSettingStateMachine { CDC_DEMO_Settings settings; __IO uint8_t select; __IO uint8_t lock; ...}CDC_DEMO_SETTING_StateMachine; typedef enum { CDC_SELECT_MENU = 0, CDC_SELECT_FILE , CDC_SELECT_CONFIG, ...}CDC_DEMO_SelectMode; typedef enum { APPLICATION_IDLE = 0, APPLICATION_START, APPLICATION_READY, APPLICATION_RUNNING, APPLICATION_DISCONNECT, ...}CDC_ApplicationTypeDef; typedef struct _FILELIST_LineTypeDef { uint8_t type; uint8_t name[FILEMGR_FILE_NAME_SIZE]; ...}FILELIST_LineTypeDef; typedef struct _FILELIST_FileTypeDef { FILELIST_LineTypeDef file[FILEMGR_LIST_DEPDTH] ; uint16_t ptr; ...}FILELIST_FileTypeDef; extern USBH_HandleTypeDef hUSBHost; extern CDC_ApplicationTypeDef Appli_state; extern uint8_t *DEMO_CONFIGURATION_menu[]; extern CDC_DEMO_SelectMode CdcSelectMode; extern CDC_DEMO_SETTING_StateMachine CdcSettingsState; extern CDC_DEMO_StateMachine CdcDemo; extern uint8_t PrevSelect; extern FILELIST_FileTypeDef FileList; extern uint8_t *DEMO_SEND_menu[]; Exported types /* Exported constants --------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Exported macro ------------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ void Toggle_Leds(void); void Menu_Init(void); void CDC_SelectItem(uint8_t **menu, uint8_t item); void CDC_Handle_Send_Menu(void); void CDC_Handle_Receive_Menu(void); void CDC_Handle_Configuration_Menu(void); void CDC_ChangeSelectMode(CDC_DEMO_SelectMode select_mode); void CDC_AdjustSettingMenu(void); void CDC_SelectItem(uint8_t **menu, uint8_t item); void CDC_ChangeSelectMode(CDC_DEMO_SelectMode select_mode); void CDC_SelectSettingsItem(uint8_t item); void CDC_MenuProcess(void); void CDC_Settings_ProbeKey(JOYState_TypeDef state); void CDC_SendFile_ProbeKey(JOYState_TypeDef state); uint8_t SD_StorageInit(void); FRESULT SD_StorageParse(void); void LCD_ClearTextZone(void); void GetDefaultConfiguration(void);Exported functions /* ... */#endif /* __MAIN_H */
Details
Show:
from
Types: Columns:
This file uses the notable symbols shown below. Click anywhere in the file to view more details.