Nut/OS  5.0.5
API Reference
Sony IR

Infrared Remote Control. More...

Collaboration diagram for Sony IR:

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.

Detailed Description

Infrared Remote Control.


Define Documentation

#define IRTIMER_START   0xF0

Referenced by NutIrInitSony(), and SIG_OVERFLOW2().

#define IRTIMER_SCALE   0x01

Referenced by NutIrInitSony().


Function Documentation

void SIG_OVERFLOW2 ( void  )

Timer 2 overflow interrupt entry.

Timer 2 overflow handler.

References cbi, IRTIMER_START, and outb.

void SIG_INTERRUPT4 ( void  )

External interrupt 4 entry.

Infrared decoder signal edge handler.

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.

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


Variable Documentation

long nut_ircode

Last valid infrared code received.

Referenced by NutIrGet(), and SIG_INTERRUPT4().

Queue of threads waiting for infrared input.

Referenced by NutIrGet(), and SIG_INTERRUPT4().