#include <WProgram.h>
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 |
#define BLINKLED 13 |
#define EXTERN extern |
#define GAP_TICKS (_GAP/USECPERTICK) |
#define IR_USE_TIMER2 |
#define LTOL (1.0 - (TOLERANCE/100.)) |
#define MARK 0 |
#define MARK_EXCESS 100 |
#define RAWBUF 101 |
#define SPACE 1 |
#define STATE_IDLE 2 |
#define STATE_MARK 3 |
#define STATE_OVERFLOW 6 |
#define STATE_SPACE 4 |
#define STATE_STOP 5 |
#define SYSCLOCK 16000000 |
#define TICKS_HIGH | ( | us | ) | ((int)(((us)*UTOL/USECPERTICK + 1))) |
#define TICKS_LOW | ( | us | ) | ((int)(((us)*LTOL/USECPERTICK))) |
#define TIMER_CONFIG_KHZ | ( | val | ) |
#define TIMER_CONFIG_NORMAL | ( | ) |
#define TIMER_COUNT_TOP (SYSCLOCK * USECPERTICK / 1000000) |
#define TIMER_DISABLE_INTR (TIMSK2 = 0) |
#define TIMER_DISABLE_PWM (TCCR2A &= ~(_BV(COM2B1))) |
#define TIMER_ENABLE_INTR (TIMSK2 = _BV(OCIE2A)) |
#define TIMER_ENABLE_PWM (TCCR2A |= _BV(COM2B1)) |
#define TIMER_INTR_NAME TIMER2_COMPA_vect |
#define TIMER_PWM_PIN 3 |
#define TIMER_RESET |
#define TOLERANCE 25 |
#define USECPERTICK 50 |
#define UTOL (1.0 + (TOLERANCE/100.)) |
EXTERN volatile irparams_t irparams |