| 881 |
theseven |
1 |
#ifndef __INTERFACE_BACKLIGHT_MANAGER_BACKLIGHT_MANAGER_H__
|
|
|
2 |
#define __INTERFACE_BACKLIGHT_MANAGER_BACKLIGHT_MANAGER_H__
|
|
|
3 |
|
|
|
4 |
#include "global.h"
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
struct __attribute__((packed,aligned(4))) backlight_manager_instance;
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
struct __attribute__((packed,aligned(4))) backlight_manager_driver
|
|
|
11 |
{
|
|
|
12 |
void (*init)(const struct backlight_manager_instance* instance);
|
|
|
13 |
void (*set_brightness)(const struct backlight_manager_instance* instance, uint8_t brightness);
|
|
|
14 |
void (*set_fade)(const struct backlight_manager_instance* instance, uint8_t fade);
|
|
|
15 |
};
|
|
|
16 |
|
|
|
17 |
struct __attribute__((packed,aligned(4))) backlight_manager_instance
|
|
|
18 |
{
|
|
|
19 |
const struct backlight_manager_driver* driver;
|
|
|
20 |
const void* driver_config;
|
|
|
21 |
void* driver_state;
|
|
|
22 |
};
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
#endif
|