LIRC libraries
LinuxInfraredRemoteControl
ir_remote_types.h File Reference

(88b69b3 2017-04-04 15:17:08 +0200)

Describes and decodes the signals from IR remotes. More...

#include <stdint.h>
#include <sys/time.h>
#include <unistd.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include "media/lirc.h"

Go to the source code of this file.

Classes

struct  ir_code_node
 An ir_code for entering into (singly) linked lists, i.e. More...
 
struct  ir_ncode
 IR Command, corresponding to one (command defining) line of the configuration file. More...
 
struct  decode_ctx_t
 State describing code, pre, post + gap and repeat state. More...
 
struct  ir_remote
 One remote as represented in the configuration file. More...
 

Macros

#define IR_PROTOCOL_MASK   0x07ff
 
#define RAW_CODES   0x0001
 for internal use only
 
#define RC5   0x0002
 IR data follows RC5 protocol.
 
#define SHIFT_ENC   RC5
 IR data is shift encoded (name obsolete)
 
#define RC6   0x0004
 IR data follows RC6 protocol.
 
#define RCMM   0x0008
 IR data follows RC-MM protocol.
 
#define SPACE_ENC   0x0010
 IR data is space encoded.
 
#define SPACE_FIRST   0x0020
 bits are encoded as space+pulse
 
#define GOLDSTAR   0x0040
 encoding found on Goldstar remote
 
#define GRUNDIG   0x0080
 encoding found on Grundig remote
 
#define BO   0x0100
 encoding found on Bang & Olufsen remote
 
#define SERIAL   0x0200
 serial protocol
 
#define XMP   0x0400
 XMP protocol.
 
#define REVERSE   0x0800
 
#define NO_HEAD_REP   0x1000
 no header for key repeats
 
#define NO_FOOT_REP   0x2000
 no foot for key repeats
 
#define CONST_LENGTH   0x4000
 signal length+gap is always constant
 
#define REPEAT_HEADER   0x8000
 header is also sent before repeat code
 
#define COMPAT_REVERSE   0x00010000
 compatibility mode for REVERSE flag
 
#define REPEAT_MAX_DEFAULT   600
 stop repeating after 600 signals (approx. More...
 
#define DEFAULT_FREQ   38000
 
#define IR_PARITY_NONE   0
 
#define IR_PARITY_EVEN   1
 
#define IR_PARITY_ODD   2
 

Typedefs

typedef uint64_t ir_code
 Denotes an internal coded representation for an IR transmission. More...
 

Detailed Description

Describes and decodes the signals from IR remotes.

Definition in file ir_remote_types.h.

Macro Definition Documentation

#define REPEAT_MAX_DEFAULT   600

stop repeating after 600 signals (approx.

1 minute) update technical.html when changing this value

Definition at line 133 of file ir_remote_types.h.

Typedef Documentation

typedef uint64_t ir_code

Denotes an internal coded representation for an IR transmission.

Note that there may be more than one ir_code in one ir_ncode.

Definition at line 47 of file ir_remote_types.h.