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
|
/* hardwre.h */
#ifndef H_ED_HARDWARE_20080107174612
#define H_ED_HARDWARE_20080107174612
#ifdef __cplusplus
extern "C"
{
#endif
#include "lirc.h"
#include "ir_remote_types.h"
struct hardware
{
char *device;
int fd;
unsigned long features;
unsigned long send_mode;
unsigned long rec_mode;
unsigned long code_length;
int (*init_func)(void);
int (*config_func)(struct ir_remote *remotes);
int (*deinit_func)(void);
int (*send_func)(struct ir_remote *remote,struct ir_ncode *code);
char *(*rec_func)(struct ir_remote *remotes);
int (*decode_func)(struct ir_remote *remote,
ir_code *prep,ir_code *codep,ir_code *postp,
int *repeat_flag,lirc_t *remaining_gapp);
int (*ioctl_func)(unsigned int cmd, void *arg);
lirc_t (*readdata)(lirc_t timeout);
char *name;
int resolution;
};
/*struct hardware hardware ;*/
#ifdef __cplusplus
}
#endif
#endif /* guard */
/* Guards added by GUARD (c) ED 2000-2005 Jan 17 2005 Ver. 1.7 */ |
Partager