Herzog Library 00.00.01  rel_libdev.herzog.00.00.01.10606
led_sfrs.h
Go to the documentation of this file.
1 
12 #ifndef __LED_SFRS_H__
13 #define __LED_SFRS_H__
14 
15 #define E_LED_BITWIDTH 2
16 
20 typedef struct {
21  uint8_t ISEL:4;
22  uint8_t IR:1;
23  uint8_t LEDEN:1;
24  uint8_t :2;
25 } LED_CONFIG_t;
26 
30 typedef struct {
31  uint8_t CTRL;
32  uint8_t RESERVED0[98215];
34 } LED_SFRS_t;
35 
39 #define LED_SFRS ((__IO LED_SFRS_t *) (0x50000062))
40 
46 void f_LED_On(uint8_t pos);
47 
53 void f_LED_Off(uint8_t pos);
54 
61 void f_LED_SetLightLevel(uint8_t pos, uint8_t level);
62 
63 #endif /* __LED_SFRS_H__ */
void f_LED_SetLightLevel(uint8_t pos, uint8_t level)
Set LED light level.
Definition: led_sfrs.c:25
void f_LED_Off(uint8_t pos)
Turn off LED.
Definition: led_sfrs.c:20
A structure to represent LED configuration.
Definition: led_sfrs.h:20
#define E_LED_BITWIDTH
Definition: led_sfrs.h:15
uint8_t CTRL
Definition: led_sfrs.h:31
A structure to represent Special Function Registers for LED.
Definition: led_sfrs.h:30
void f_LED_On(uint8_t pos)
Turn on LED.
Definition: led_sfrs.c:15