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 "stm32469i_discovery.h"
#include "stm32469i_discovery_lcd.h"
#include "lcd_log.h"
#include "usbh_cdc.h"
Exported types
CDC_Demo_State
CDC_Send_State
CDC_Receive_State
_DemoStateMachine
CDC_DEMO_SelectMode
CDC_ApplicationTypeDef
hUSBHost;
Appli_state;
CdcDemo;
Exported functions
Toggle_Leds();
Menu_Init();
CDC_Handle_Send_Menu();
CDC_Handle_Receive_Menu();
CDC_MenuProcess();
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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file USB_Host/CDC_Standalone/Inc/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 "stm32469i_discovery.h" #include "stm32469i_discovery_lcd.h" #include "lcd_log.h" #include "usbh_cdc.h" 6 includes Includes/* Exported constants --------------------------------------------------------*/ /* Exported types ------------------------------------------------------------*/ typedef enum { CDC_DEMO_IDLE = 0, CDC_DEMO_WAIT, CDC_DEMO_SEND, CDC_DEMO_RECEIVE, ...}CDC_Demo_State; typedef enum { CDC_SEND_IDLE = 0, CDC_SEND_WAIT, ...}CDC_Send_State; typedef enum { CDC_RECEIVE_IDLE = 0, CDC_RECEIVE_WAIT, CDC_RECEIVE_RECEIVE, ...}CDC_Receive_State; typedef struct _DemoStateMachine { __IO CDC_Demo_State state; __IO CDC_Send_State Send_state; __IO CDC_Receive_State Receive_state; __IO uint8_t select; __IO uint8_t lock; ...}CDC_DEMO_StateMachine; typedef enum { CDC_SELECT_MENU = 0, CDC_SELECT_FILE , CDC_SELECT_CONFIG, ...}CDC_DEMO_SelectMode; typedef enum { APPLICATION_IDLE = 0, APPLICATION_DISCONNECT, APPLICATION_START, APPLICATION_READY, APPLICATION_RUNNING, ...}CDC_ApplicationTypeDef; extern USBH_HandleTypeDef hUSBHost; extern CDC_ApplicationTypeDef Appli_state; extern CDC_DEMO_StateMachine CdcDemo; Exported types /* Exported constants --------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Exported macro ------------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ void Toggle_Leds(void); void Menu_Init(void); void CDC_Handle_Send_Menu(void); void CDC_Handle_Receive_Menu(void); void CDC_MenuProcess(void); Exported functions /* ... */#endif /* __MAIN_H */
Details