Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
ir-nec-decoder.c File Reference
#include <linux/bitrev.h>
#include <linux/module.h>
#include "rc-core-priv.h"

Go to the source code of this file.

Macros

#define NEC_NBITS   32
 
#define NEC_UNIT   562500 /* ns */
 
#define NEC_HEADER_PULSE   (16 * NEC_UNIT)
 
#define NECX_HEADER_PULSE   (8 * NEC_UNIT) /* Less common NEC variant */
 
#define NEC_HEADER_SPACE   (8 * NEC_UNIT)
 
#define NEC_REPEAT_SPACE   (4 * NEC_UNIT)
 
#define NEC_BIT_PULSE   (1 * NEC_UNIT)
 
#define NEC_BIT_0_SPACE   (1 * NEC_UNIT)
 
#define NEC_BIT_1_SPACE   (3 * NEC_UNIT)
 
#define NEC_TRAILER_PULSE   (1 * NEC_UNIT)
 
#define NEC_TRAILER_SPACE   (10 * NEC_UNIT) /* even longer in reality */
 
#define NECX_REPEAT_BITS   1
 

Enumerations

enum  nec_state {
  STATE_INACTIVE, STATE_HEADER_SPACE, STATE_BIT_PULSE, STATE_BIT_SPACE,
  STATE_TRAILER_PULSE, STATE_TRAILER_SPACE
}
 

Functions

 module_init (ir_nec_decode_init)
 
 module_exit (ir_nec_decode_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Mauro Carvalho Chehab <[email protected]>")
 
 MODULE_AUTHOR ("Red Hat Inc. (http://www.redhat.com)")
 
 MODULE_DESCRIPTION ("NEC IR protocol decoder")
 

Macro Definition Documentation

#define NEC_BIT_0_SPACE   (1 * NEC_UNIT)

Definition at line 26 of file ir-nec-decoder.c.

#define NEC_BIT_1_SPACE   (3 * NEC_UNIT)

Definition at line 27 of file ir-nec-decoder.c.

#define NEC_BIT_PULSE   (1 * NEC_UNIT)

Definition at line 25 of file ir-nec-decoder.c.

#define NEC_HEADER_PULSE   (16 * NEC_UNIT)

Definition at line 21 of file ir-nec-decoder.c.

#define NEC_HEADER_SPACE   (8 * NEC_UNIT)

Definition at line 23 of file ir-nec-decoder.c.

#define NEC_NBITS   32

Definition at line 19 of file ir-nec-decoder.c.

#define NEC_REPEAT_SPACE   (4 * NEC_UNIT)

Definition at line 24 of file ir-nec-decoder.c.

#define NEC_TRAILER_PULSE   (1 * NEC_UNIT)

Definition at line 28 of file ir-nec-decoder.c.

#define NEC_TRAILER_SPACE   (10 * NEC_UNIT) /* even longer in reality */

Definition at line 29 of file ir-nec-decoder.c.

#define NEC_UNIT   562500 /* ns */

Definition at line 20 of file ir-nec-decoder.c.

#define NECX_HEADER_PULSE   (8 * NEC_UNIT) /* Less common NEC variant */

Definition at line 22 of file ir-nec-decoder.c.

#define NECX_REPEAT_BITS   1

Definition at line 30 of file ir-nec-decoder.c.

Enumeration Type Documentation

enum nec_state
Enumerator:
STATE_INACTIVE 
STATE_HEADER_SPACE 
STATE_BIT_PULSE 
STATE_BIT_SPACE 
STATE_TRAILER_PULSE 
STATE_TRAILER_SPACE 

Definition at line 32 of file ir-nec-decoder.c.

Function Documentation

MODULE_AUTHOR ( "Mauro Carvalho Chehab <[email protected]>"  )
MODULE_AUTHOR ( "Red Hat Inc. (http://www.redhat.com)"  )
MODULE_DESCRIPTION ( "NEC IR protocol decoder"  )
module_exit ( ir_nec_decode_exit  )
module_init ( ir_nec_decode_init  )
MODULE_LICENSE ( "GPL"  )