| BlueNRG-1 SDK drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

SDK_EVAL_Led.h
Go to the documentation of this file.
1
24 /* Define to prevent recursive inclusion -------------------------------------*/
25 #ifndef __SDK_EVAL_LED_H
26 #define __SDK_EVAL_LED_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 LED1 = 0,
55 LED2 = 1,
56 LED3 = 2
57 } SdkEvalLed;
58
68 #define EVAL_BOARD_LEDS (3)
69
73 #define LED_ON Bit_SET
74 #define LED_OFF Bit_RESET
75
93 void SdkEvalLedInit(SdkEvalLed xLed);
94 void SdkEvalLedOn(SdkEvalLed xLed);
95 void SdkEvalLedOff(SdkEvalLed xLed);
96 void SdkEvalLedToggle(SdkEvalLed xLed);
97 FlagStatus SdkEvalLedGetState(SdkEvalLed xLed);
98
114 #ifdef __cplusplus
115 }
116 #endif
117
118 #endif
119
120 /******************* (C) COPYRIGHT 2015 STMicroelectronics *****END OF FILE****/
LED1
Definition: SDK_EVAL_Led.h:54
SDK_EVAL_Config.h
This file contains SDK EVAL configuration and useful defines.
SdkEvalLedInit
void SdkEvalLedInit(SdkEvalLed xLed)
Configures LEDs.
Definition: SDK_EVAL_Led.c:131
SdkEvalLedToggle
void SdkEvalLedToggle(SdkEvalLed xLed)
Toggles the selected LED.
Definition: SDK_EVAL_Led.c:186
SdkEvalLedOff
void SdkEvalLedOff(SdkEvalLed xLed)
Turns selected LED Off.
Definition: SDK_EVAL_Led.c:172
LED3
Definition: SDK_EVAL_Led.h:56
SdkEvalLedGetState
FlagStatus SdkEvalLedGetState(SdkEvalLed xLed)
Returns the status of a specified led.
Definition: SDK_EVAL_Led.c:201
SdkEvalLedOn
void SdkEvalLedOn(SdkEvalLed xLed)
Turns selected LED On.
Definition: SDK_EVAL_Led.c:158
LED2
Definition: SDK_EVAL_Led.h:55
SdkEvalLed
SdkEvalLed
Enumeration of SDK EVAL LEDs.
Definition: SDK_EVAL_Led.h:53