Classes | Macros | Variables
Référence du fichier IRremoteInt.h
#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
 

Documentation des macros

◆ _GAP

#define _GAP   5000

◆ BLINKLED

#define BLINKLED   13

◆ BLINKLED_OFF

#define BLINKLED_OFF ( )    (PORTB &= B11011111)

◆ BLINKLED_ON

#define BLINKLED_ON ( )    (PORTB |= B00100000)

◆ cbi

#define cbi (   sfr,
  bit 
)    (_SFR_BYTE(sfr) &= ~_BV(bit))

◆ EXTERN

#define EXTERN   extern

◆ GAP_TICKS

#define GAP_TICKS   (_GAP/USECPERTICK)

◆ IR_USE_TIMER2

#define IR_USE_TIMER2

◆ LTOL

#define LTOL   (1.0 - (TOLERANCE/100.))

◆ MARK

#define MARK   0

◆ MARK_EXCESS

#define MARK_EXCESS   100

◆ RAWBUF

#define RAWBUF   101

◆ sbi

#define sbi (   sfr,
  bit 
)    (_SFR_BYTE(sfr) |= _BV(bit))

◆ SPACE

#define SPACE   1

◆ STATE_IDLE

#define STATE_IDLE   2

◆ STATE_MARK

#define STATE_MARK   3

◆ STATE_OVERFLOW

#define STATE_OVERFLOW   6

◆ STATE_SPACE

#define STATE_SPACE   4

◆ STATE_STOP

#define STATE_STOP   5

◆ SYSCLOCK

#define SYSCLOCK   16000000

◆ TICKS_HIGH

#define TICKS_HIGH (   us)    ((int)(((us)*UTOL/USECPERTICK + 1)))

◆ TICKS_LOW

#define TICKS_LOW (   us)    ((int)(((us)*LTOL/USECPERTICK)))

◆ TIMER_CONFIG_KHZ

#define TIMER_CONFIG_KHZ (   val)
Valeur :
({ \
const uint8_t pwmval = SYSCLOCK / 2000 / (val); \
TCCR2A = _BV(WGM20); \
TCCR2B = _BV(WGM22) | _BV(CS20); \
OCR2A = pwmval; \
OCR2B = pwmval / 3; \
})
#define SYSCLOCK
Definition: IRremoteInt.h:107

◆ TIMER_CONFIG_NORMAL

#define TIMER_CONFIG_NORMAL ( )
Valeur :
({ \
TCCR2A = _BV(WGM21); \
TCCR2B = _BV(CS21); \
OCR2A = TIMER_COUNT_TOP / 8; \
TCNT2 = 0; \
})
#define TIMER_COUNT_TOP
Definition: IRremoteInt.h:263

◆ TIMER_COUNT_TOP

#define TIMER_COUNT_TOP   (SYSCLOCK * USECPERTICK / 1000000)

◆ TIMER_DISABLE_INTR

#define TIMER_DISABLE_INTR   (TIMSK2 = 0)

◆ TIMER_DISABLE_PWM

#define TIMER_DISABLE_PWM   (TCCR2A &= ~(_BV(COM2B1)))

◆ TIMER_ENABLE_INTR

#define TIMER_ENABLE_INTR   (TIMSK2 = _BV(OCIE2A))

◆ TIMER_ENABLE_PWM

#define TIMER_ENABLE_PWM   (TCCR2A |= _BV(COM2B1))

◆ TIMER_INTR_NAME

#define TIMER_INTR_NAME   TIMER2_COMPA_vect

◆ TIMER_PWM_PIN

#define TIMER_PWM_PIN   3

◆ TIMER_RESET

#define TIMER_RESET

◆ TOLERANCE

#define TOLERANCE   25

◆ USECPERTICK

#define USECPERTICK   50

◆ UTOL

#define UTOL   (1.0 + (TOLERANCE/100.))

Documentation des variables

◆ irparams

EXTERN volatile irparams_t irparams