Added lirc.
[irreco.git] / lirc-0.8.4a / daemons / hw_livedrive_common.h
blobd546733dd6b24ea53751ee7accc3bab109ae5b5d
1 /*
2 * hw_livedrive.h - lirc routines for a Creative Labs LiveDrive.
4 * Copyright (C) 2003 Stephen Beahm <stephenbeahm@adelphia.net>
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation; either version 2 of
9 * the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public
17 * License along with this program; if not, write to the Free
18 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139,
19 * USA.
22 #ifndef HW_LIVEDRIVE_COMMON_H
23 #define HW_LIVEDRIVE_COMMON_H
25 struct sequencer_packet
27 unsigned char type;
28 unsigned char data;
29 unsigned char device;
30 unsigned char filler;
33 struct midi_packet
35 unsigned char vendor_id[3];
36 unsigned char dev;
37 unsigned char filler[2];
38 unsigned char keygroup;
39 unsigned char remote[2];
40 unsigned char key[2];
41 unsigned char sysex_end;
44 /* midi_packet.dev */
45 #define REMOTE 0x60
46 #define NONREMOTE 0x61
48 int livedrive_decode(struct ir_remote *remote,
49 ir_code * prep, ir_code * codep, ir_code * postp,
50 int *repeat_flagp,
51 lirc_t * min_remaining_gapp,
52 lirc_t * max_remaining_gapp);
53 int livedrive_init(void);
54 int livedrive_deinit(void);
56 extern struct timeval start, end, last;
57 extern ir_code pre, code;
59 #define SYSEX 0xF0
60 #define SYSEX_END 0xF7
62 #endif /* HW_LIVEDRIVE_COMMON_H */