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

Go to the source code of this file.

Macros

#define RC6_UNIT   444444 /* nanosecs */
 
#define RC6_HEADER_NBITS   4 /* not including toggle bit */
 
#define RC6_0_NBITS   16
 
#define RC6_6A_32_NBITS   32
 
#define RC6_6A_NBITS   128 /* Variable 8..128 */
 
#define RC6_PREFIX_PULSE   (6 * RC6_UNIT)
 
#define RC6_PREFIX_SPACE   (2 * RC6_UNIT)
 
#define RC6_BIT_START   (1 * RC6_UNIT)
 
#define RC6_BIT_END   (1 * RC6_UNIT)
 
#define RC6_TOGGLE_START   (2 * RC6_UNIT)
 
#define RC6_TOGGLE_END   (2 * RC6_UNIT)
 
#define RC6_SUFFIX_SPACE   (6 * RC6_UNIT)
 
#define RC6_MODE_MASK   0x07 /* for the header bits */
 
#define RC6_STARTBIT_MASK   0x08 /* for the header bits */
 
#define RC6_6A_MCE_TOGGLE_MASK   0x8000 /* for the body bits */
 
#define RC6_6A_LCC_MASK   0xffff0000 /* RC6-6A-32 long customer code mask */
 
#define RC6_6A_MCE_CC   0x800f0000 /* MCE customer code */
 
#define CHAR_BIT   8 /* Normally in <limits.h> */
 

Enumerations

enum  rc6_mode { RC6_MODE_0, RC6_MODE_6A, RC6_MODE_UNKNOWN }
 
enum  rc6_state {
  STATE_INACTIVE, STATE_PREFIX_SPACE, STATE_HEADER_BIT_START, STATE_HEADER_BIT_END,
  STATE_TOGGLE_START, STATE_TOGGLE_END, STATE_BODY_BIT_START, STATE_BODY_BIT_END,
  STATE_FINISHED
}
 

Functions

 module_init (ir_rc6_decode_init)
 
 module_exit (ir_rc6_decode_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("David Härdeman <[email protected]>")
 
 MODULE_DESCRIPTION ("RC6 IR protocol decoder")
 

Macro Definition Documentation

#define CHAR_BIT   8 /* Normally in <limits.h> */

Definition at line 44 of file ir-rc6-decoder.c.

#define RC6_0_NBITS   16

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

#define RC6_6A_32_NBITS   32

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

#define RC6_6A_LCC_MASK   0xffff0000 /* RC6-6A-32 long customer code mask */

Definition at line 41 of file ir-rc6-decoder.c.

#define RC6_6A_MCE_CC   0x800f0000 /* MCE customer code */

Definition at line 42 of file ir-rc6-decoder.c.

#define RC6_6A_MCE_TOGGLE_MASK   0x8000 /* for the body bits */

Definition at line 40 of file ir-rc6-decoder.c.

#define RC6_6A_NBITS   128 /* Variable 8..128 */

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

#define RC6_BIT_END   (1 * RC6_UNIT)

Definition at line 34 of file ir-rc6-decoder.c.

#define RC6_BIT_START   (1 * RC6_UNIT)

Definition at line 33 of file ir-rc6-decoder.c.

#define RC6_HEADER_NBITS   4 /* not including toggle bit */

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

#define RC6_MODE_MASK   0x07 /* for the header bits */

Definition at line 38 of file ir-rc6-decoder.c.

#define RC6_PREFIX_PULSE   (6 * RC6_UNIT)

Definition at line 31 of file ir-rc6-decoder.c.

#define RC6_PREFIX_SPACE   (2 * RC6_UNIT)

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

#define RC6_STARTBIT_MASK   0x08 /* for the header bits */

Definition at line 39 of file ir-rc6-decoder.c.

#define RC6_SUFFIX_SPACE   (6 * RC6_UNIT)

Definition at line 37 of file ir-rc6-decoder.c.

#define RC6_TOGGLE_END   (2 * RC6_UNIT)

Definition at line 36 of file ir-rc6-decoder.c.

#define RC6_TOGGLE_START   (2 * RC6_UNIT)

Definition at line 35 of file ir-rc6-decoder.c.

#define RC6_UNIT   444444 /* nanosecs */

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

Enumeration Type Documentation

enum rc6_mode
Enumerator:
RC6_MODE_0 
RC6_MODE_6A 
RC6_MODE_UNKNOWN 

Definition at line 47 of file ir-rc6-decoder.c.

enum rc6_state
Enumerator:
STATE_INACTIVE 
STATE_PREFIX_SPACE 
STATE_HEADER_BIT_START 
STATE_HEADER_BIT_END 
STATE_TOGGLE_START 
STATE_TOGGLE_END 
STATE_BODY_BIT_START 
STATE_BODY_BIT_END 
STATE_FINISHED 

Definition at line 53 of file ir-rc6-decoder.c.

Function Documentation

MODULE_AUTHOR ( "David Härdeman <[email protected]>"  )
MODULE_DESCRIPTION ( "RC6 IR protocol decoder"  )
module_exit ( ir_rc6_decode_exit  )
module_init ( ir_rc6_decode_init  )
MODULE_LICENSE ( "GPL"  )