Sony IR
[Special Hardware]

Collaboration diagram for Sony IR:

Detailed Description

Infrared Remote Control.


Defines

#define IRTIMER_START   0xF0
#define IRTIMER_SCALE   0x01

Functions

void SIG_OVERFLOW2 (void)
 Timer 2 overflow interrupt entry.
void SIG_INTERRUPT4 (void)
 External interrupt 4 entry.
int NutIrInitSony (void)
 Enable Sony infrared remote control.

Variables

long nut_ircode
 Last valid infrared code received.
HANDLE nut_irqueue
 Queue of threads waiting for infrared input.


Define Documentation

#define IRTIMER_START   0xF0

Definition at line 69 of file irsony.c.

Referenced by NutIrInitSony(), and SIG_OVERFLOW2().

#define IRTIMER_SCALE   0x01

Definition at line 70 of file irsony.c.

Referenced by NutIrInitSony().


Function Documentation

void SIG_OVERFLOW2 ( void   ) 

Timer 2 overflow interrupt entry.

Timer 2 overflow handler.

Definition at line 96 of file irsony.c.

References cbi, IRTIMER_START, and outb.

void SIG_INTERRUPT4 ( void   ) 

External interrupt 4 entry.

Infrared decoder signal edge handler.

Definition at line 114 of file irsony.c.

References _BV, cbi, inb, IR_SIGNAL_BIT, IR_SIGNAL_PIN, nut_ircode, nut_irqueue, NutEventPostFromIrq, and sbi.

int NutIrInitSony ( void   ) 

Enable Sony infrared remote control.

Definition at line 168 of file irsony.c.

References cbi, EICR, IR_SIGNAL_BIT, IR_SIGNAL_DDR, IRTIMER_SCALE, IRTIMER_START, NutEnterCritical, NutExitCritical, outb, and sbi.

Referenced by main().


Variable Documentation

long nut_ircode

Last valid infrared code received.

Definition at line 75 of file irsony.c.

Referenced by NutIrGet(), and SIG_INTERRUPT4().

Queue of threads waiting for infrared input.

Definition at line 80 of file irsony.c.

Referenced by NutIrGet(), and SIG_INTERRUPT4().


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/