Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
ir-jvc-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 JVC_NBITS   16 /* dev(8) + func(8) */
 
#define JVC_UNIT   525000 /* ns */
 
#define JVC_HEADER_PULSE   (16 * JVC_UNIT) /* lack of header -> repeat */
 
#define JVC_HEADER_SPACE   (8 * JVC_UNIT)
 
#define JVC_BIT_PULSE   (1 * JVC_UNIT)
 
#define JVC_BIT_0_SPACE   (1 * JVC_UNIT)
 
#define JVC_BIT_1_SPACE   (3 * JVC_UNIT)
 
#define JVC_TRAILER_PULSE   (1 * JVC_UNIT)
 
#define JVC_TRAILER_SPACE   (35 * JVC_UNIT)
 

Enumerations

enum  jvc_state {
  STATE_INACTIVE, STATE_HEADER_SPACE, STATE_BIT_PULSE, STATE_BIT_SPACE,
  STATE_TRAILER_PULSE, STATE_TRAILER_SPACE, STATE_CHECK_REPEAT
}
 

Functions

 module_init (ir_jvc_decode_init)
 
 module_exit (ir_jvc_decode_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("David Härdeman <[email protected]>")
 
 MODULE_DESCRIPTION ("JVC IR protocol decoder")
 

Macro Definition Documentation

#define JVC_BIT_0_SPACE   (1 * JVC_UNIT)

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

#define JVC_BIT_1_SPACE   (3 * JVC_UNIT)

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

#define JVC_BIT_PULSE   (1 * JVC_UNIT)

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

#define JVC_HEADER_PULSE   (16 * JVC_UNIT) /* lack of header -> repeat */

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

#define JVC_HEADER_SPACE   (8 * JVC_UNIT)

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

#define JVC_NBITS   16 /* dev(8) + func(8) */

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

#define JVC_TRAILER_PULSE   (1 * JVC_UNIT)

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

#define JVC_TRAILER_SPACE   (35 * JVC_UNIT)

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

#define JVC_UNIT   525000 /* ns */

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

Enumeration Type Documentation

enum jvc_state
Enumerator:
STATE_INACTIVE 
STATE_HEADER_SPACE 
STATE_BIT_PULSE 
STATE_BIT_SPACE 
STATE_TRAILER_PULSE 
STATE_TRAILER_SPACE 
STATE_CHECK_REPEAT 

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

Function Documentation

MODULE_AUTHOR ( "David Härdeman <[email protected]>"  )
MODULE_DESCRIPTION ( "JVC IR protocol decoder"  )
module_exit ( ir_jvc_decode_exit  )
module_init ( ir_jvc_decode_init  )
MODULE_LICENSE ( "GPL"  )