| BlueNRG-1 SDK drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

SDK_EVAL_Button.h
Go to the documentation of this file.
1
24 /* Define to prevent recursive inclusion -------------------------------------*/
25 #ifndef __SDK_EVAL_BUTTON_H
26 #define __SDK_EVAL_BUTTON_H
27
28 /* Includes ------------------------------------------------------------------*/
29 #include "BlueNRG1.h"
30 #include "BlueNRG1_conf.h"
31 #include "SDK_EVAL_Config.h"
32
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36
37
53 typedef enum {
54 BUTTON_1 = 0,
55 BUTTON_2
56 } SdkEvalButton;
57
58
62 typedef enum {
63 IRQ_ON_FALLING_EDGE = 0,
64 IRQ_ON_RISING_EDGE,
65 IRQ_ON_BOTH_EDGE
66 } SdkEvalButtonIrq;
67
68
77 #define EVAL_BOARD_BUTTONS (2)
78
97 void SdkEvalPushButtonInit(SdkEvalButton xButton);
98 void SdkEvalPushButtonIrq(SdkEvalButton xButton, SdkEvalButtonIrq xButtonIrq);
99 FlagStatus SdkEvalPushButtonGetState(SdkEvalButton xButton);
100 FlagStatus SdkEvalPushButtonGetITPendingBit(SdkEvalButton xButton);
101 void SdkEvalPushButtonClearITPendingBit(SdkEvalButton xButton);
102
118 #ifdef __cplusplus
119 }
120 #endif
121
122 #endif
123
124 /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/
SdkEvalPushButtonGetITPendingBit
FlagStatus SdkEvalPushButtonGetITPendingBit(SdkEvalButton xButton)
Get the pending bit state.
Definition: SDK_EVAL_Button.c:197
SdkEvalButton
SdkEvalButton
Enumeration of SDK EVAL Buttons.
Definition: SDK_EVAL_Button.h:53
SDK_EVAL_Config.h
This file contains SDK EVAL configuration and useful defines.
BUTTON_1
Definition: SDK_EVAL_Button.h:54
IRQ_ON_RISING_EDGE
Definition: SDK_EVAL_Button.h:64
IRQ_ON_FALLING_EDGE
Definition: SDK_EVAL_Button.h:63
SdkEvalPushButtonInit
void SdkEvalPushButtonInit(SdkEvalButton xButton)
Configures Buttons.
Definition: SDK_EVAL_Button.c:115
BUTTON_2
Definition: SDK_EVAL_Button.h:55
SdkEvalPushButtonGetState
FlagStatus SdkEvalPushButtonGetState(SdkEvalButton xButton)
Returns the selected Button state.
Definition: SDK_EVAL_Button.c:179
SdkEvalButtonIrq
SdkEvalButtonIrq
Enumeration of SDK EVAL Buttons IRQ mode.
Definition: SDK_EVAL_Button.h:62
IRQ_ON_BOTH_EDGE
Definition: SDK_EVAL_Button.h:65
SdkEvalPushButtonClearITPendingBit
void SdkEvalPushButtonClearITPendingBit(SdkEvalButton xButton)
Clear the pending bit state.
Definition: SDK_EVAL_Button.c:211
SdkEvalPushButtonIrq
void SdkEvalPushButtonIrq(SdkEvalButton xButton, SdkEvalButtonIrq xButtonIrq)
Configures buttons IRQ mode.
Definition: SDK_EVAL_Button.c:145