Infrared4Arduino
|
#include <WProgram.h>
Go to the source code of this file.
Classes | |
struct | irparams_t |
Macros | |
#define | EXTERN extern |
#define | RAWBUF 101 |
#define | STATE_IDLE 2 |
#define | STATE_MARK 3 |
#define | STATE_SPACE 4 |
#define | STATE_STOP 5 |
#define | STATE_OVERFLOW 6 |
#define | BLINKLED 13 |
#define | BLINKLED_ON() (PORTB |= B00100000) |
#define | BLINKLED_OFF() (PORTB &= B11011111) |
#define | SYSCLOCK 16000000 |
#define | cbi(sfr, bit) (_SFR_BYTE(sfr) &= ~_BV(bit)) |
#define | sbi(sfr, bit) (_SFR_BYTE(sfr) |= _BV(bit)) |
#define | MARK_EXCESS 100 |
#define | USECPERTICK 50 |
#define | TOLERANCE 25 |
#define | LTOL (1.0 - (TOLERANCE/100.)) |
#define | UTOL (1.0 + (TOLERANCE/100.)) |
#define | _GAP 5000 |
#define | GAP_TICKS (_GAP/USECPERTICK) |
#define | TICKS_LOW(us) ((int)(((us)*LTOL/USECPERTICK))) |
#define | TICKS_HIGH(us) ((int)(((us)*UTOL/USECPERTICK + 1))) |
#define | MARK 0 |
#define | SPACE 1 |
#define | IR_USE_TIMER2 |
#define | TIMER_RESET |
#define | TIMER_ENABLE_PWM (TCCR2A |= _BV(COM2B1)) |
#define | TIMER_DISABLE_PWM (TCCR2A &= ~(_BV(COM2B1))) |
#define | TIMER_ENABLE_INTR (TIMSK2 = _BV(OCIE2A)) |
#define | TIMER_DISABLE_INTR (TIMSK2 = 0) |
#define | TIMER_INTR_NAME TIMER2_COMPA_vect |
#define | TIMER_CONFIG_KHZ(val) |
#define | TIMER_COUNT_TOP (SYSCLOCK * USECPERTICK / 1000000) |
#define | TIMER_CONFIG_NORMAL() |
#define | TIMER_PWM_PIN 3 |
Variables | |
EXTERN volatile irparams_t | irparams |
#define _GAP 5000 |
Definition at line 135 of file IRremoteInt.h.
#define BLINKLED 13 |
Definition at line 91 of file IRremoteInt.h.
#define BLINKLED_OFF | ( | ) | (PORTB &= B11011111) |
Definition at line 93 of file IRremoteInt.h.
#define BLINKLED_ON | ( | ) | (PORTB |= B00100000) |
Definition at line 92 of file IRremoteInt.h.
#define cbi | ( | sfr, | |
bit | |||
) | (_SFR_BYTE(sfr) &= ~_BV(bit)) |
Definition at line 109 of file IRremoteInt.h.
#define EXTERN extern |
Definition at line 37 of file IRremoteInt.h.
#define GAP_TICKS (_GAP/USECPERTICK) |
Definition at line 136 of file IRremoteInt.h.
#define IR_USE_TIMER2 |
Definition at line 215 of file IRremoteInt.h.
#define LTOL (1.0 - (TOLERANCE/100.)) |
Definition at line 131 of file IRremoteInt.h.
#define MARK 0 |
Definition at line 144 of file IRremoteInt.h.
#define MARK_EXCESS 100 |
Definition at line 124 of file IRremoteInt.h.
#define RAWBUF 101 |
Definition at line 43 of file IRremoteInt.h.
#define sbi | ( | sfr, | |
bit | |||
) | (_SFR_BYTE(sfr) |= _BV(bit)) |
Definition at line 113 of file IRremoteInt.h.
#define SPACE 1 |
Definition at line 145 of file IRremoteInt.h.
#define STATE_IDLE 2 |
Definition at line 60 of file IRremoteInt.h.
#define STATE_MARK 3 |
Definition at line 61 of file IRremoteInt.h.
#define STATE_OVERFLOW 6 |
Definition at line 64 of file IRremoteInt.h.
#define STATE_SPACE 4 |
Definition at line 62 of file IRremoteInt.h.
#define STATE_STOP 5 |
Definition at line 63 of file IRremoteInt.h.
#define SYSCLOCK 16000000 |
Definition at line 102 of file IRremoteInt.h.
#define TICKS_HIGH | ( | us | ) | ((int)(((us)*UTOL/USECPERTICK + 1))) |
Definition at line 139 of file IRremoteInt.h.
#define TICKS_LOW | ( | us | ) | ((int)(((us)*LTOL/USECPERTICK))) |
Definition at line 138 of file IRremoteInt.h.
#define TIMER_CONFIG_KHZ | ( | val | ) |
Definition at line 234 of file IRremoteInt.h.
#define TIMER_CONFIG_NORMAL | ( | ) |
Definition at line 253 of file IRremoteInt.h.
#define TIMER_COUNT_TOP (SYSCLOCK * USECPERTICK / 1000000) |
Definition at line 242 of file IRremoteInt.h.
#define TIMER_DISABLE_INTR (TIMSK2 = 0) |
Definition at line 231 of file IRremoteInt.h.
#define TIMER_DISABLE_PWM (TCCR2A &= ~(_BV(COM2B1))) |
Definition at line 229 of file IRremoteInt.h.
#define TIMER_ENABLE_INTR (TIMSK2 = _BV(OCIE2A)) |
Definition at line 230 of file IRremoteInt.h.
#define TIMER_ENABLE_PWM (TCCR2A |= _BV(COM2B1)) |
Definition at line 228 of file IRremoteInt.h.
#define TIMER_INTR_NAME TIMER2_COMPA_vect |
Definition at line 232 of file IRremoteInt.h.
#define TIMER_PWM_PIN 3 |
Definition at line 269 of file IRremoteInt.h.
#define TIMER_RESET |
Definition at line 227 of file IRremoteInt.h.
#define TOLERANCE 25 |
Definition at line 130 of file IRremoteInt.h.
#define USECPERTICK 50 |
Definition at line 127 of file IRremoteInt.h.
#define UTOL (1.0 + (TOLERANCE/100.)) |
Definition at line 132 of file IRremoteInt.h.
EXTERN volatile irparams_t irparams |
Definition at line 69 of file IRremoteInt.h.