Elisa3
|
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. |
TV IR remote control module.
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.
void handleIRRemoteCommands | ( | ) |
Interpret the commands received through TV remote control in case it is enabled.
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_address | ( | void | ) |
Return the address of the last command.
unsigned char ir_remote_get_check | ( | void | ) |
Return the last check bit.
unsigned char ir_remote_get_data | ( | void | ) |
Return the data of the last command.