📄 hardware.h
字号:
/* $Id: hardware.h,v 5.7 2002/07/13 09:30:17 ranty Exp $ *//**************************************************************************** ** hardware.h ************************************************************** **************************************************************************** * * hardware.h - internal hardware interface * * Copyright (C) 1999 Christoph Bartelmus <lirc@bartelmus.de> * */ #ifndef _HARDWARE_H#define _HARDWARE_H#include "drivers/lirc.h"#include "ir_remote.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); lirc_t (*readdata)(lirc_t timeout); char *name;};extern struct hardware hw;#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -