Elisa3
ir_remote_control.h File Reference

TV IR remote control module. More...

#include <avr\io.h>
#include <avr\interrupt.h>
#include "variables.h"
#include "leds.h"
#include "sensors.h"

Go to the source code of this file.

Functions

void init_ir_remote_control (void)
 Initialize the IR receiver port pin in order to generate an interrupt (external interrupt pin PCINT15).
unsigned char ir_remote_get_check (void)
 Return the last check bit.
unsigned char ir_remote_get_address (void)
 Return the address of the last command.
unsigned char ir_remote_get_data (void)
 Return the data of the last command.
void handleIRRemoteCommands ()
 Interpret the commands received through TV remote control in case it is enabled.

Detailed Description

TV IR remote control module.

Author:
Stefano Morgani <stefano@gctronic.com>
Version:
1.0
Date:
01.02.12

The code of this module is based on the TV IR remote control of the e-puck library (www.e-puck.org) and is adapted to work with Atmel microprocessor. A major difference is that it does work without "Agenda"; it uses directly the Timer2 for timing the reading of the signal.


Function Documentation

Interpret the commands received through TV remote control in case it is enabled.

Returns:
none
void init_ir_remote_control ( void  )

Initialize the IR receiver port pin in order to generate an interrupt (external interrupt pin PCINT15).

Returns:
none
unsigned char ir_remote_get_address ( void  )

Return the address of the last command.

Returns:
address address part of the signal
unsigned char ir_remote_get_check ( void  )

Return the last check bit.

Returns:
check check bit of the signal
unsigned char ir_remote_get_data ( void  )

Return the data of the last command.

Returns:
data_ir data part of the signal
 All Files Functions Variables Defines