Appiko
SDK_EVAL_Button.h
Go to the documentation of this file.
1 
34 /* Define to prevent recursive inclusion -------------------------------------*/
35 #ifndef __SDK_EVAL_BUTTON_H
36 #define __SDK_EVAL_BUTTON_H
37 
38 /* Includes ------------------------------------------------------------------*/
39 #include "cube_hal.h"
40 
41 #ifdef __cplusplus
42 extern "C" {
43 #endif
44 
45 
63 typedef enum
64 {
65  BUTTON_1 = 0,
68 
72 #define BUTTON_2 BUTTON_1
73 #define BUTTON_3 BUTTON_1
74 #define BUTTON_4 BUTTON_1
75 #define BUTTON_5 BUTTON_1
76 #define BUTTON_6 BUTTON_1
77 #define BUTTON_7 BUTTON_1
78 
82 #define BUTTON_KEY BUTTON_1
83 #define BUTTON_RIGHT BUTTON_2
84 #define BUTTON_LEFT BUTTON_3
85 #define BUTTON_UP BUTTON_4
86 #define BUTTON_DOWN BUTTON_5
87 #define BUTTON_SEL BUTTON_6
88 #define BUTTON_SCM_PS BUTTON_7
89 
90 
94 typedef enum
95 {
96  BUTTON_MODE_GPIO = 0,
97  BUTTON_MODE_EXTI = 1
98 
100 
104 typedef enum
105 {
106  JOY_NONE = 0,
107  JOY_SEL = 1,
108  JOY_DOWN = 2,
109  JOY_LEFT = 3,
110  JOY_RIGHT = 4,
111  JOY_UP = 5
112 
114 
143 void SdkEvalPushButtonInit(SdkEvalButton xButton, SdkEvalButtonMode xButtonMode);
144 FlagStatus SdkEvalPushButtonGetState(SdkEvalButton xButton);
145 
161 #ifdef __cplusplus
162 }
163 #endif
164 
165 #endif
166 
167 /******************* (C) COPYRIGHT 2016 STMicroelectronics *****END OF FILE****/
SdkEvalJoyState
Joystick for SDK EVAL enumeration.
SdkEvalButton
Buttons for SDK EVAL enumeration.
void SdkEvalPushButtonInit(SdkEvalButton xButton, SdkEvalButtonMode xButtonMode)
Configures Button GPIO and EXTI Line.
FlagStatus SdkEvalPushButtonGetState(SdkEvalButton xButton)
Returns the selected Button state.
SdkEvalButtonMode
Button Mode for SDK EVAL enumeration.