GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||
GeezerVison is showing lirc.org — LIRC libraries: /home/columbus/software/lirc-doc/lib/driver.h (157f68d 2017-05-16 12:47:44 +0200) Source File
AllClassesFilesFunctionsVariablesTypedefsEnumerationsMacrosModulesPages
driver.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** driver.h **************************************************************
3 ****************************************************************************
4 *
5 * Copyright (C) 1999 Christoph Bartelmus <[email protected]>
6 *
7 */
8
20 #ifndef _HARDWARE_H
21 #define _HARDWARE_H
22
23 #include <glob.h>
24 #include <stdint.h>
25
26 #ifdef HAVE_KERNEL_LIRC_H
27 #include <linux/lirc.h>
28 #else
29 #include "media/lirc.h"
30 #endif
31
32 #include "lirc/ir_remote_types.h"
33 #include "lirc/curl_poll.h"
34
35 #ifndef MAXPATHLEN
36 #define MAXPATHLEN 4096
37 #endif
38
40 #define HAVE_SERVER_VERSION 1
41
44
45
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49
51 #define DRV_ERR_NOT_IMPLEMENTED 1
52
55
58
61
64 char key[32];
65 char value[64];
66 };
67
73
74
76 #define DRVCTL_GET_STATE 1
77
79 #define DRVCTL_SEND_SPACE 2
80
82 #define DRVCTL_SET_OPTION 3
83
88 #define DRVCTL_GET_RAW_CODELENGTH 4
89
99 #define DRVCTL_GET_DEVICES 5
100
102 #define DRVCTL_FREE_DEVICES 6
103
109 #define DRVCTL_NOTIFY_DECODE 7
110
112 #define DRVCTL_MAX 128
113
115 #define DRV_ERR_NOT_IMPLEMENTED 1
116
118 #define DRV_ERR_BAD_STATE 2
119
121 #define DRV_ERR_BAD_OPTION 3
122
124 #define DRV_ERR_BAD_VALUE 4
125
127 #define DRV_ERR_ENUM_EMPTY 5
128
130 #define DRV_ERR_INTERNAL 6
131
137 // Old-style implicit API version 1:
138
144
147
150
156
162
165
173
179
185
194
202
208
214
223
229
235
236 /* API version 2 addons: */
237
244 /* API version 3 addons: */
260 };
261
264 #ifdef IN_DRIVER
265
267 #endif
268
271
272
273 #ifdef __cplusplus
274 }
275 #endif
276
277 #endif
int(*const send_func)(struct ir_remote *remote, struct ir_ncode *code) Send data to the remote. Definition: driver.h:192 int(*const open_func)(const char *device) Function called to do basic driver setup. Definition: driver.h:172 char *(*const rec_func)(struct ir_remote *remotes) Receive data from remote. Definition: driver.h:201 const struct driver *const curr_driver Read-only access to drv for application. Definition: driver.c:34 unsigned int resolution The resolution in microseconds of the recorded durations when reading signals. Definition: driver.h:234 lirc_t(*const readdata)(lirc_t timeout) Get length of next pulse/space from hardware. Definition: driver.h:222 int(*const drvctl_func)(unsigned int cmd, void *arg) Generic driver control function with semantics as defined by driver Returns 0 on success, else a positive error code. Definition: driver.h:213 uint32_t rec_mode Possible values are: LIRC_MODE_RAW, LIRC_MODE_PULSE, LIRC_MODE_MODE2, LIRC_MODE_LIRCCODE. Definition: driver.h:161 uint32_t features Code for the features of the present device, valid after init(). Definition: driver.h:149 int(*const deinit_func)(void) Function called when transmitting/receiving stops. Definition: driver.h:184 int default_drvctl(unsigned int cmd, void *arg) Return DRV_ERR_NOTIMPLEMENTED. Definition: driver.c:57 uint32_t send_mode Possible values are: LIRC_MODE_RAW, LIRC_MODE_PULSE, LIRC_MODE_MODE2, LIRC_MODE_LIRCCODE. Definition: driver.h:155 IR Command, corresponding to one (command defining) line of the configuration file. Definition: ir_remote_types.h:64 State describing code, pre, post + gap and repeat state. Definition: ir_remote_types.h:142 int drv_handle_options(const char *options) Parse an option string "key:value;key:value..." and invoke drvctl DRV_SET_OPTION as appropriate... Definition: driver.c:63 const char *const device_hint device_hint is a mean for config tools to autodetect devices. Definition: driver.h:259 int(*const init_func)(void) Function called for initializing the driver and the hardware. Definition: driver.h:178 const char * name Driver name, as listed by -H help and used as argument to i –driver. Definition: driver.h:228 int(*const decode_func)(struct ir_remote *remote, struct decode_ctx_t *ctx) TODO. Definition: driver.h:206 int get_server_version(void) Return numeric server version, m.v.r => 10000 * m + 100 * v + r. Definition: driver.c:22 | ||
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |