MG32F10x Standard Peripherals Firmware Library

mg32f10x_led.h
浏览该文件的文档.
1
10 /* Define to prevent recursive inclusion -------------------------------------*/
11 #ifndef __MG32F10x_LED_H
12 #define __MG32F10x_LED_H
13
14 #ifdef __cplusplus
15 extern "C" {
16 #endif
17
18 /* Includes ------------------------------------------------------------------*/
19 #include "mg32f10x.h"
20
29 /* Exported types ------------------------------------------------------------*/
30 /* Exported constants --------------------------------------------------------*/
31 /* Exported macro ------------------------------------------------------------*/
32 /* Exported functions --------------------------------------------------------*/
33
34 void LED_DeInit(void);
35 void LED_Cmd(FunctionalState NewState);
36 void LED_SetSegmentCode(uint8_t idx_seg, uint8_t seg_code);
37 uint8_t LED_GetSegmentCode(uint8_t idx_seg);
38
47 #ifdef __cplusplus
48 }
49 #endif
50
51 #endif /* __MG32F10x_LED_H */
LED_DeInit
void LED_DeInit(void)
Deinitializes the LED peripheral registers to their default reset values.
Definition: mg32f10x_led.c:37
LED_GetSegmentCode
uint8_t LED_GetSegmentCode(uint8_t idx_seg)
Get the segment code.
Definition: mg32f10x_led.c:81
LED_SetSegmentCode
void LED_SetSegmentCode(uint8_t idx_seg, uint8_t seg_code)
Set the segment code.
Definition: mg32f10x_led.c:65
LED_Cmd
void LED_Cmd(FunctionalState NewState)
Enables or disables the LED peripheral.
Definition: mg32f10x_led.c:49