1 /* $Id: hardware.h,v 5.11 2007/07/29 18:20:06 lirc Exp $ */
3 /****************************************************************************
4 ** hardware.h **************************************************************
5 ****************************************************************************
7 * hardware.h - internal hardware interface
9 * Copyright (C) 1999 Christoph Bartelmus <lirc@bartelmus.de>
16 #include "drivers/lirc.h"
17 #include "ir_remote_types.h"
23 unsigned long features
;
24 unsigned long send_mode
;
25 unsigned long rec_mode
;
26 unsigned long code_length
;
27 int (*init_func
)(void);
28 int (*config_func
)(struct ir_remote
*remotes
);
29 int (*deinit_func
)(void);
30 int (*send_func
)(struct ir_remote
*remote
,struct ir_ncode
*code
);
31 char *(*rec_func
)(struct ir_remote
*remotes
);
32 int (*decode_func
)(struct ir_remote
*remote
,
33 ir_code
*prep
,ir_code
*codep
,ir_code
*postp
,
35 lirc_t
*min_remaining_gapp
,
36 lirc_t
*max_remaining_gapp
);
37 int (*ioctl_func
)(unsigned int cmd
, void *arg
);
38 lirc_t (*readdata
)(lirc_t timeout
);
44 extern struct hardware hw
;