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,
22 #ifndef HW_LIVEDRIVE_COMMON_H
23 #define HW_LIVEDRIVE_COMMON_H
25 struct sequencer_packet
35 unsigned char vendor_id
[3];
37 unsigned char filler
[2];
38 unsigned char keygroup
;
39 unsigned char remote
[2];
41 unsigned char sysex_end
;
46 #define NONREMOTE 0x61
48 int livedrive_decode(struct ir_remote
*remote
,
49 ir_code
* prep
, ir_code
* codep
, ir_code
* postp
,
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
;
60 #define SYSEX_END 0xF7
62 #endif /* HW_LIVEDRIVE_COMMON_H */