1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #ifndef BACKLIGHT_H
- #define BACKLIGHT_H
- #include <stdint.h>
- #include <stdbool.h>
- typedef union {
- uint8_t raw;
- struct {
- bool enable :1;
- uint8_t level :7;
- };
- } backlight_config_t;
- void backlight_init(void);
- void backlight_increase(void);
- void backlight_decrease(void);
- void backlight_toggle(void);
- void backlight_step(void);
- void backlight_set(uint8_t level);
- void backlight_level(uint8_t level);
- uint8_t get_backlight_level(void);
- #endif
|