22 lines
588 B
C
22 lines
588 B
C
#ifndef DISPLAY_FILE
|
|
#define DISPLAY_FILE
|
|
|
|
struct optdata_t
|
|
{
|
|
unsigned int x;
|
|
unsigned int y;
|
|
unsigned int invert;
|
|
};
|
|
|
|
#define H1502DISPLAY_MAGIC 'm'
|
|
#define H1502DISPLAY_IOCTL_CLEAR _IO(H1502DISPLAY_MAGIC, 1)
|
|
#define H1502DISPLAY_IOCTL_SETOPT _IOC(_IOC_WRITE, H1502DISPLAY_MAGIC, 2, sizeof(struct optdata_t))
|
|
#define H1502DISPLAY_IOCTL_TIMER _IOC(_IOC_WRITE, H1502DISPLAY_MAGIC, 3, sizeof(unsigned int))
|
|
|
|
int display_open();
|
|
void display_timer(int fd, unsigned int time);
|
|
void display_clear(int fd);
|
|
void display_write(int fd, int ln, int pos, int invert, char *txt);
|
|
|
|
#endif
|