Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
ir-sony-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 SONY_UNIT   600000 /* ns */
 
#define SONY_HEADER_PULSE   (4 * SONY_UNIT)
 
#define SONY_HEADER_SPACE   (1 * SONY_UNIT)
 
#define SONY_BIT_0_PULSE   (1 * SONY_UNIT)
 
#define SONY_BIT_1_PULSE   (2 * SONY_UNIT)
 
#define SONY_BIT_SPACE   (1 * SONY_UNIT)
 
#define SONY_TRAILER_SPACE   (10 * SONY_UNIT) /* minimum */
 

Enumerations

enum  sony_state {
  STATE_INACTIVE, STATE_HEADER_SPACE, STATE_BIT_PULSE, STATE_BIT_SPACE,
  STATE_FINISHED
}
 

Functions

 module_init (ir_sony_decode_init)
 
 module_exit (ir_sony_decode_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("David Härdeman <[email protected]>")
 
 MODULE_DESCRIPTION ("Sony IR protocol decoder")
 

Macro Definition Documentation

#define SONY_BIT_0_PULSE   (1 * SONY_UNIT)

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

#define SONY_BIT_1_PULSE   (2 * SONY_UNIT)

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

#define SONY_BIT_SPACE   (1 * SONY_UNIT)

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

#define SONY_HEADER_PULSE   (4 * SONY_UNIT)

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

#define SONY_HEADER_SPACE   (1 * SONY_UNIT)

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

#define SONY_TRAILER_SPACE   (10 * SONY_UNIT) /* minimum */

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

#define SONY_UNIT   600000 /* ns */

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

Enumeration Type Documentation

enum sony_state
Enumerator:
STATE_INACTIVE 
STATE_HEADER_SPACE 
STATE_BIT_PULSE 
STATE_BIT_SPACE 
STATE_FINISHED 

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

Function Documentation

MODULE_AUTHOR ( "David Härdeman <[email protected]>"  )
MODULE_DESCRIPTION ( "Sony IR protocol decoder"  )
module_exit ( ir_sony_decode_exit  )
module_init ( ir_sony_decode_init  )
MODULE_LICENSE ( "GPL"  )