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

Go to the source code of this file.

Macros

#define MCIR2_UNIT   333333 /* ns */
 
#define MCIR2_HEADER_NBITS   5
 
#define MCIR2_MOUSE_NBITS   29
 
#define MCIR2_KEYBOARD_NBITS   32
 
#define MCIR2_PREFIX_PULSE   (8 * MCIR2_UNIT)
 
#define MCIR2_PREFIX_SPACE   (1 * MCIR2_UNIT)
 
#define MCIR2_MAX_LEN   (3 * MCIR2_UNIT)
 
#define MCIR2_BIT_START   (1 * MCIR2_UNIT)
 
#define MCIR2_BIT_END   (1 * MCIR2_UNIT)
 
#define MCIR2_BIT_0   (1 * MCIR2_UNIT)
 
#define MCIR2_BIT_SET   (2 * MCIR2_UNIT)
 
#define MCIR2_MODE_MASK   0xf /* for the header bits */
 
#define MCIR2_KEYBOARD_HEADER   0x4
 
#define MCIR2_MOUSE_HEADER   0x1
 
#define MCIR2_MASK_KEYS_START   0xe0
 

Enumerations

enum  mce_kbd_mode { MCIR2_MODE_KEYBOARD, MCIR2_MODE_MOUSE, MCIR2_MODE_UNKNOWN }
 
enum  mce_kbd_state {
  STATE_INACTIVE, STATE_HEADER_BIT_START, STATE_HEADER_BIT_END, STATE_BODY_BIT_START,
  STATE_BODY_BIT_END, STATE_FINISHED
}
 

Functions

 module_init (ir_mce_kbd_decode_init)
 
 module_exit (ir_mce_kbd_decode_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Jarod Wilson <[email protected]>")
 
 MODULE_DESCRIPTION ("MCE Keyboard/mouse IR protocol decoder")
 

Macro Definition Documentation

#define MCIR2_BIT_0   (1 * MCIR2_UNIT)

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

#define MCIR2_BIT_END   (1 * MCIR2_UNIT)

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

#define MCIR2_BIT_SET   (2 * MCIR2_UNIT)

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

#define MCIR2_BIT_START   (1 * MCIR2_UNIT)

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

#define MCIR2_HEADER_NBITS   5

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

#define MCIR2_KEYBOARD_HEADER   0x4

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

#define MCIR2_KEYBOARD_NBITS   32

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

#define MCIR2_MASK_KEYS_START   0xe0

Definition at line 46 of file ir-mce_kbd-decoder.c.

#define MCIR2_MAX_LEN   (3 * MCIR2_UNIT)

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

#define MCIR2_MODE_MASK   0xf /* for the header bits */

Definition at line 43 of file ir-mce_kbd-decoder.c.

#define MCIR2_MOUSE_HEADER   0x1

Definition at line 45 of file ir-mce_kbd-decoder.c.

#define MCIR2_MOUSE_NBITS   29

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

#define MCIR2_PREFIX_PULSE   (8 * MCIR2_UNIT)

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

#define MCIR2_PREFIX_SPACE   (1 * MCIR2_UNIT)

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

#define MCIR2_UNIT   333333 /* ns */

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

Enumeration Type Documentation

Enumerator:
MCIR2_MODE_KEYBOARD 
MCIR2_MODE_MOUSE 
MCIR2_MODE_UNKNOWN 

Definition at line 48 of file ir-mce_kbd-decoder.c.

Enumerator:
STATE_INACTIVE 
STATE_HEADER_BIT_START 
STATE_HEADER_BIT_END 
STATE_BODY_BIT_START 
STATE_BODY_BIT_END 
STATE_FINISHED 

Definition at line 54 of file ir-mce_kbd-decoder.c.

Function Documentation

MODULE_AUTHOR ( "Jarod Wilson <[email protected]>"  )
MODULE_DESCRIPTION ( "MCE Keyboard/mouse IR protocol decoder"  )
module_exit ( ir_mce_kbd_decode_exit  )
module_init ( ir_mce_kbd_decode_init  )
MODULE_LICENSE ( "GPL"  )