Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ir-raw.c File Reference
#include <linux/export.h>
#include <linux/kthread.h>
#include <linux/mutex.h>
#include <linux/kmod.h>
#include <linux/sched.h>
#include <linux/freezer.h>
#include "rc-core-priv.h"

Go to the source code of this file.

Macros

#define MAX_IR_EVENT_SIZE   512
 

Functions

int ir_raw_event_store (struct rc_dev *dev, struct ir_raw_event *ev)
 
 EXPORT_SYMBOL_GPL (ir_raw_event_store)
 
int ir_raw_event_store_edge (struct rc_dev *dev, enum raw_event_type type)
 
 EXPORT_SYMBOL_GPL (ir_raw_event_store_edge)
 
int ir_raw_event_store_with_filter (struct rc_dev *dev, struct ir_raw_event *ev)
 
 EXPORT_SYMBOL_GPL (ir_raw_event_store_with_filter)
 
void ir_raw_event_set_idle (struct rc_dev *dev, bool idle)
 
 EXPORT_SYMBOL_GPL (ir_raw_event_set_idle)
 
void ir_raw_event_handle (struct rc_dev *dev)
 
 EXPORT_SYMBOL_GPL (ir_raw_event_handle)
 
u64 ir_raw_get_allowed_protocols (void)
 
int ir_raw_event_register (struct rc_dev *dev)
 
void ir_raw_event_unregister (struct rc_dev *dev)
 
int ir_raw_handler_register (struct ir_raw_handler *ir_raw_handler)
 
 EXPORT_SYMBOL (ir_raw_handler_register)
 
void ir_raw_handler_unregister (struct ir_raw_handler *ir_raw_handler)
 
 EXPORT_SYMBOL (ir_raw_handler_unregister)
 
void ir_raw_init (void)
 

Macro Definition Documentation

#define MAX_IR_EVENT_SIZE   512

Definition at line 24 of file ir-raw.c.

Function Documentation

EXPORT_SYMBOL ( ir_raw_handler_register  )
EXPORT_SYMBOL ( ir_raw_handler_unregister  )
EXPORT_SYMBOL_GPL ( ir_raw_event_store  )
EXPORT_SYMBOL_GPL ( ir_raw_event_store_edge  )
EXPORT_SYMBOL_GPL ( ir_raw_event_store_with_filter  )
EXPORT_SYMBOL_GPL ( ir_raw_event_set_idle  )
EXPORT_SYMBOL_GPL ( ir_raw_event_handle  )
void ir_raw_event_handle ( struct rc_dev dev)

ir_raw_event_handle() - schedules the decoding of stored ir data : the struct rc_dev device descriptor

This routine will tell rc-core to start decoding stored ir data.

Definition at line 224 of file ir-raw.c.

int ir_raw_event_register ( struct rc_dev dev)

Definition at line 251 of file ir-raw.c.

void ir_raw_event_set_idle ( struct rc_dev dev,
bool  idle 
)

ir_raw_event_set_idle() - provide hint to rc-core when the device is idle or not : the struct rc_dev device descriptor : whether the device is idle or not

Definition at line 198 of file ir-raw.c.

int ir_raw_event_store ( struct rc_dev dev,
struct ir_raw_event ev 
)

ir_raw_event_store() - pass a pulse/space duration to the raw ir decoders : the struct rc_dev device descriptor : the struct ir_raw_event descriptor of the pulse/space

This routine (which may be called from an interrupt context) stores a pulse/space duration for the raw ir decoding state machines. Pulses are signalled as positive values and spaces as negative values. A zero value will reset the decoding state machines.

Definition at line 85 of file ir-raw.c.

int ir_raw_event_store_edge ( struct rc_dev dev,
enum raw_event_type  type 
)

ir_raw_event_store_edge() - notify raw ir decoders of the start of a pulse/space : the struct rc_dev device descriptor : the type of the event that has occurred

This routine (which may be called from an interrupt context) is used to store the beginning of an ir pulse or space (or the start/end of ir reception) for the raw ir decoding state machines. This is used by hardware which does not provide durations directly but only interrupts (or similar events) on state change.

Definition at line 111 of file ir-raw.c.

int ir_raw_event_store_with_filter ( struct rc_dev dev,
struct ir_raw_event ev 
)

ir_raw_event_store_with_filter() - pass next pulse/space to decoders with some processing : the struct rc_dev device descriptor : the type of the event that has occurred

This routine (which may be called from an interrupt context) works in similar manner to ir_raw_event_store_edge. This routine is intended for devices with limited internal buffer It automerges samples of same type, and handles timeouts. Returns non-zero if the event was added, and zero if the event was ignored due to idle processing.

Definition at line 164 of file ir-raw.c.

void ir_raw_event_unregister ( struct rc_dev dev)

Definition at line 295 of file ir-raw.c.

u64 ir_raw_get_allowed_protocols ( void  )

Definition at line 239 of file ir-raw.c.

int ir_raw_handler_register ( struct ir_raw_handler ir_raw_handler)

Definition at line 320 of file ir-raw.c.

void ir_raw_handler_unregister ( struct ir_raw_handler ir_raw_handler)

Definition at line 336 of file ir-raw.c.

void ir_raw_init ( void  )

Definition at line 370 of file ir-raw.c.