| 881 |
theseven |
1 |
#ifndef __INTERFACE_LCDIF_LCDIF_H__
|
|
|
2 |
#define __INTERFACE_LCDIF_LCDIF_H__
|
|
|
3 |
|
|
|
4 |
#include "global.h"
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
struct __attribute__((packed,aligned(4))) lcdif_instance;
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
struct __attribute__((packed,aligned(4))) lcdif_driver
|
|
|
11 |
{
|
|
|
12 |
void (*init)(const struct lcdif_instance* instance);
|
|
|
13 |
void (*send_cmd)(const struct lcdif_instance* instance, uint32_t cmd);
|
|
|
14 |
void (*send_data)(const struct lcdif_instance* instance, uint32_t data);
|
|
|
15 |
void (*send_bulk)(const struct lcdif_instance* instance, void* data, int count);
|
|
|
16 |
void (*send_repeat)(const struct lcdif_instance* instance, uint32_t data, int words);
|
|
|
17 |
};
|
|
|
18 |
|
|
|
19 |
struct __attribute__((packed,aligned(4))) lcdif_instance
|
|
|
20 |
{
|
|
|
21 |
const struct lcdif_driver* driver;
|
|
|
22 |
const void* driver_config;
|
|
|
23 |
void* driver_state;
|
|
|
24 |
};
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
#endif
|