Select one of the symbols to view example projects that use it.
 
Outline
#define __MAIN_H
Includes
#include "stdio.h"
#include "stm32469i_discovery.h"
#include "stm32469i_discovery_lcd.h"
#include "lcd_log.h"
#include "usbh_core.h"
#include "usbh_msc.h"
#include "ff.h"
#include "usbh_hid.h"
#include "usbh_hid_parser.h"
#include "ff_gen_drv.h"
#include "usbh_diskio_dma.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
DS_ApplicationTypeDef
HID_Demo_State
HID_mouse_State
HID_keyboard_State
_DemoStateMachine
MSC_Demo_State
_MSC_DemoStateMachine
USBH_fatfs;
Appli_state;
hUSBHost;
mouse_info;
DEMO_MOUSE_menu;
hid_demo;
msc_demo;
Exported functions
DS_MenuProcess();
Toggle_Leds();
Menu_Init();
Explore_Disk(char *, uint8_t);
MSC_File_Operations();
MSC_MenuProcess();
HID_MenuProcess();
HID_MouseMenuProcess();
HID_KeyboardMenuProcess();
HID_MOUSE_ButtonReleased(uint8_t);
HID_MOUSE_ButtonPressed(uint8_t);
USR_MOUSE_ProcessData(HID_MOUSE_Info_TypeDef *);
USR_KEYBRD_ProcessData(uint8_t);
Files
loading...
CodeScopeSTM32 Libraries and SamplesDynamicSwitch_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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file USB_Host/DynamicSwitch_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 "stm32469i_discovery.h" #include "stm32469i_discovery_lcd.h" #include "lcd_log.h" #include "usbh_core.h" #include "usbh_msc.h" #include "ff.h" #include "usbh_hid.h" #include "usbh_hid_parser.h" #include "ff_gen_drv.h" #include "usbh_diskio_dma.h" 11 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 { APPLICATION_IDLE = 0, APPLICATION_DISCONNECT, APPLICATION_MSC, APPLICATION_HID, APPLICATION_AUDIO, APPLICATION_RUNNING, ...}DS_ApplicationTypeDef; typedef enum { HID_DEMO_START = 0, HID_DEMO_MOUSE, HID_DEMO_KEYBOARD, ...}HID_Demo_State; typedef enum { HID_MOUSE_IDLE = 0, HID_MOUSE_WAIT, HID_MOUSE_START, ...}HID_mouse_State; typedef enum { HID_KEYBOARD_IDLE = 0, HID_KEYBOARD_WAIT, HID_KEYBOARD_START, ...}HID_keyboard_State; typedef struct _DemoStateMachine { __IO HID_Demo_State state; __IO HID_mouse_State mouse_state; __IO HID_keyboard_State keyboard_state; __IO uint8_t select; __IO uint8_t lock; ...}HID_DEMO_StateMachine; typedef enum { MSC_DEMO_START = 0, MSC_DEMO_FILE_OPERATIONS, MSC_DEMO_EXPLORER, MSC_REENUMERATE, ...}MSC_Demo_State; typedef struct _MSC_DemoStateMachine { __IO MSC_Demo_State state; __IO uint8_t select; ...}MSC_DEMO_StateMachine; extern FATFS USBH_fatfs; extern DS_ApplicationTypeDef Appli_state; extern USBH_HandleTypeDef hUSBHost; extern HID_MOUSE_Info_TypeDef mouse_info; extern uint8_t *DEMO_MOUSE_menu[]; extern HID_DEMO_StateMachine hid_demo; extern MSC_DEMO_StateMachine msc_demo; Exported types /* Exported constants --------------------------------------------------------*/ /* Exported macro ------------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ void DS_MenuProcess(void); void Toggle_Leds(void); void Menu_Init(void); FRESULT Explore_Disk(char *path, uint8_t recu_level); void MSC_File_Operations(void); void MSC_MenuProcess(void); void HID_MenuProcess(void); void HID_MouseMenuProcess(void); void HID_KeyboardMenuProcess(void); void HID_MOUSE_ButtonReleased(uint8_t button_idx); void HID_MOUSE_ButtonPressed(uint8_t button_idx); void USR_MOUSE_ProcessData(HID_MOUSE_Info_TypeDef *data); void USR_KEYBRD_ProcessData(uint8_t data); Exported functions /* ... */#endif /* __MAIN_H */