Elisa3
ir_remote_control.c File Reference

Functions

void init_ir_remote_control (void)
 Initialize the IR receiver port pin in order to generate an interrupt (external interrupt pin PCINT15).
 ISR (PCINT1_vect)
 ISR (TIMER2_COMPA_vect)
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.

Variables

unsigned char address = 0
unsigned char data_ir = 0
unsigned char check = 2

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
ISR ( PCINT1_vect  )
ISR ( TIMER2_COMPA_vect  )

Variable Documentation

unsigned char address = 0
unsigned char check = 2
unsigned char data_ir = 0
 All Files Functions Variables Defines