Added lirc.
[irreco.git] / lirc-0.8.4a / drivers / lirc_cmdir / commandir.h
blob90a297f98ab23a2e967b6bc3f9bad347f7433064
1 /*
2 * commandir.h
3 */
5 #define ASCII0 48
7 /* transmitter channel control */
8 #define MAX_DEVICES 8
9 #define MAX_CHANNELS 32
10 #define TX1_ENABLE 0x80
11 #define TX2_ENABLE 0x40
12 #define TX3_ENABLE 0x20
13 #define TX4_ENABLE 0x10
15 /* command types */
16 #define cNothing 0
17 #define cRESET 1
18 #define cFLASH 2
19 #define cLCD 3
20 #define cRX 4
22 /* CommandIR control codes */
23 #define MCU_CTRL_SIZE 3
24 #define FREQ_HEADER 2
25 #define RESET_HEADER 3
26 #define FLASH_HEADER 4
27 #define LCD_HEADER 5
28 #define TX_HEADER 7
29 #define TX_HEADER_NEW 8
31 /* Queue buffering constants */
32 #define SEND_IDLE 0
33 #define SEND_ACTIVE 1
35 #define QUEUELENGTH 256
37 extern int cmdir_write(unsigned char *buffer, int count,
38 void *callback_fct, int u);
39 extern ssize_t cmdir_read(unsigned char *buffer, size_t count);
40 extern int set_tx_channels(unsigned int next_tx);