Kamcho Library 02.00.03  lib.kamcho.02.00.03.287
led_sfrs.h
Go to the documentation of this file.
1 
12 #ifndef __LED_SFRS_H__
13 #define __LED_SFRS_H__
14 
18 typedef struct {
19  uint8_t CTRL;
20  uint8_t RESERVED0[6];
21  uint8_t MODE;
22  uint8_t RESERVED[98210];
23  uint8_t READEN;
24  union {
25  struct {
26  uint8_t NIBBLEL:4;
27  uint8_t NIBBLEH:4;
28  };
29  uint8_t BYTE;
30  } TRIM;
31 } LED_SFRS_t;
32 
36 #define LED_SFRS ((__IO LED_SFRS_t *) (0x50000064))
37 
43 void f_LED_On(uint8_t pos);
44 
50 void f_LED_Off(uint8_t pos);
51 
58 void f_LED_SetLightLevel(uint8_t pos, uint8_t level);
59 
60 #endif /* __LED_SFRS_H__ */
void f_LED_SetLightLevel(uint8_t pos, uint8_t level)
Set LED light level.
Definition: led_sfrs.c:46
void f_LED_Off(uint8_t pos)
Turn off LED.
Definition: led_sfrs.c:33
uint8_t CTRL
Definition: led_sfrs.h:19
uint8_t READEN
Definition: led_sfrs.h:23
uint8_t MODE
Definition: led_sfrs.h:21
uint8_t BYTE
Definition: led_sfrs.h:29
A structure to represent Special Function Registers for LED.
Definition: led_sfrs.h:18
void f_LED_On(uint8_t pos)
Turn on LED.
Definition: led_sfrs.c:20