19 #ifndef IR_REMOTE_TYPES_H 20 #define IR_REMOTE_TYPES_H 26 #if defined(__linux__) 27 #include <sys/types.h> 32 typedef int16_t __s16;
33 typedef uint16_t __u16;
34 typedef int32_t __s32;
35 typedef uint32_t __u32;
36 typedef int64_t __s64;
37 typedef uint64_t __u64;
45 #if defined(__linux__) 46 #include <linux/types.h> 49 #ifdef HAVE_KERNEL_LIRC_H 50 #include <linux/lirc.h> 52 #include "include/media/lirc.h" 111 #define IR_PROTOCOL_MASK 0x07ff 116 #define RAW_CODES 0x0001 118 #define SHIFT_ENC RC5 125 #define SPACE_ENC 0x0010 126 #define SPACE_FIRST 0x0020 127 #define GOLDSTAR 0x0040 128 #define GRUNDIG 0x0080 130 #define SERIAL 0x0200 134 #define REVERSE 0x0800 135 #define NO_HEAD_REP 0x1000 136 #define NO_FOOT_REP 0x2000 137 #define CONST_LENGTH 0x4000 138 #define REPEAT_HEADER 0x8000 140 #define COMPAT_REVERSE 0x00010000 145 #define REPEAT_MAX_DEFAULT 600 147 #define DEFAULT_FREQ 38000 149 #define IR_PARITY_NONE 0 150 #define IR_PARITY_EVEN 1 151 #define IR_PARITY_ODD 2 237 ir_code toggle_bit_mask_state;
238 int toggle_mask_state;
239 int repeat_countdown;
243 struct timeval last_send;
251 lirc_t min_pulse_length, max_pulse_length;
252 lirc_t min_space_length, max_space_length;
lirc_t min_total_signal_length
lirc_t max_total_signal_length
struct ir_ncode * toggle_code
struct ir_code_node * next
struct ir_ncode * last_code
struct ir_code_node * current
struct ir_code_node * transmit_state
struct ir_ncode * next_ncode
unsigned int min_code_repeat
unsigned int bits_in_byte