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_eval.h"
#include "stm32469i_eval_io.h"
#include "stm32469i_eval_lcd.h"
#include "lcd_log.h"
#include "usbh_hid.h"
#include "usbh_hid_parser.h"
Exported types
HID_Demo_State
HID_mouse_State
HID_keyboard_State
_DemoStateMachine
HID_ApplicationTypeDef
hUSBHost;
Appli_state;
mouse_info;
DEMO_MOUSE_menu;
hid_demo;
prev_select;
Exported functions
HID_SelectItem(uint8_t **, uint8_t);
HID_MenuInit();
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 SamplesHID_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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file USB_Host/HID_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_eval.h" #include "stm32469i_eval_io.h" #include "stm32469i_eval_lcd.h" #include "lcd_log.h" #include "usbh_hid.h" #include "usbh_hid_parser.h" 8 includes Includes/* Exported types ------------------------------------------------------------*/ typedef enum { HID_DEMO_IDLE = 0, HID_DEMO_WAIT, HID_DEMO_START, HID_DEMO_MOUSE, HID_DEMO_KEYBOARD, HID_DEMO_REENUMERATE, ...}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 { APPLICATION_IDLE = 0, APPLICATION_DISCONNECT, APPLICATION_START, APPLICATION_READY, APPLICATION_RUNNING, ...}HID_ApplicationTypeDef; extern USBH_HandleTypeDef hUSBHost; extern HID_ApplicationTypeDef Appli_state; extern HID_MOUSE_Info_TypeDef mouse_info; extern uint8_t *DEMO_MOUSE_menu[]; extern HID_DEMO_StateMachine hid_demo; extern uint8_t prev_select; Exported types /* Exported constants --------------------------------------------------------*/ /* Exported macro ------------------------------------------------------------*/ /* Exported functions ------------------------------------------------------- */ void HID_SelectItem(uint8_t **menu, uint8_t item); void HID_MenuInit(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 */