-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathad1000.h
46 lines (36 loc) · 1.24 KB
/
ad1000.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/* */
/* Constants */
/* */
/* Device files */
#define DEV_DIR "/dev/ad1000/"
#define DEV_LED1 DEV_DIR "led1"
#define DEV_LED2 DEV_DIR "led2"
#define DEV_LED3 DEV_DIR "led3"
#define DEV_DISP DEV_DIR "disp"
#define DEV_DISP_BRIGHTNESS DEV_DIR "disp_brightness"
/* key scanning timings */
#define DELAY_TIME 10000 /* 0.01 second */
#define MIN_SLEEP 170000 /* 0.17 second */
#define MAX_SLEEP 1000000 /* 1 second */
#define KEY_SCAN_LOW 10000000 /* 10 seconds */
/* LIRC packet size */
#define PACKET_SIZE 256
/* media_info methods */
#define METHOD_AUDIO 1
#define METHOD_VIDEO 2
/* */
/* function definitions */
/* */
/* function to exit each daemon */
extern void init_exit(int signum);
/* create/remove device files */
extern int create_devs();
extern int remove_devs();
/* SPI start/stop functions */
extern int spi_init();
extern void spi_end();
/* Send update to display/leds over SPI bus */
extern void spi_update();
/* Set Display on/off */
extern void setDisplayOn(int brightness);
extern void setDisplayOff();