Infrared4Arduino 1.2.3
Loading...
Searching...
No Matches
Classes | Macros
IrWidget.h File Reference
#include <Arduino.h>
#include "IrReader.h"
#include "Board.h"
Include dependency graph for IrWidget.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  IrWidget
 Base class for classes based upon ICP pins capture. More...
 

Macros

#define ENABLE_PULL_UP
 
#define USE_PRESCALER_FACTOR_8   1
 
#define CAPTURE_PRESCALER_SETTING   (_BV(CAT3(CS, CAP_TIM, 1)))
 
#define CAPTURE_PRESCALER_BITS   (3)
 
#define CAPTURE_PRESCALER_FACTOR   (_BV(CAPTURE_PRESCALER_BITS))
 
#define CAP_PORT   B
 
#define CAP_PIN   0
 
#define CAP_TIM   1
 
#define CAP_TIM_OC   A
 
#define cbi(sfr, bit)   (_SFR_BYTE(sfr) &= ~_BV(bit))
 
#define sbi(sfr, bit)   (_SFR_BYTE(sfr) |= _BV(bit))
 
#define __CAT2(base, portname)   base##portname
 
#define CAT2(prefix, num)   __CAT2(prefix, num)
 
#define __CAT3(prefix, num, postfix)   prefix##num##postfix
 
#define CAT3(prefix, num, postfix)   __CAT3(prefix, num, postfix)
 

Macro Definition Documentation

◆ __CAT2

#define __CAT2 (   base,
  portname 
)    base##portname

Definition at line 180 of file IrWidget.h.

◆ __CAT3

#define __CAT3 (   prefix,
  num,
  postfix 
)    prefix##num##postfix

Definition at line 182 of file IrWidget.h.

◆ CAP_PIN

#define CAP_PIN   0

Definition at line 170 of file IrWidget.h.

◆ CAP_PORT

#define CAP_PORT   B

Definition at line 169 of file IrWidget.h.

◆ CAP_TIM

#define CAP_TIM   1

Definition at line 171 of file IrWidget.h.

◆ CAP_TIM_OC

#define CAP_TIM_OC   A

Definition at line 172 of file IrWidget.h.

◆ CAPTURE_PRESCALER_BITS

#define CAPTURE_PRESCALER_BITS   (3)

Definition at line 117 of file IrWidget.h.

◆ CAPTURE_PRESCALER_FACTOR

#define CAPTURE_PRESCALER_FACTOR   (_BV(CAPTURE_PRESCALER_BITS))

Definition at line 122 of file IrWidget.h.

◆ CAPTURE_PRESCALER_SETTING

#define CAPTURE_PRESCALER_SETTING   (_BV(CAT3(CS, CAP_TIM, 1)))

Definition at line 116 of file IrWidget.h.

◆ CAT2

#define CAT2 (   prefix,
  num 
)    __CAT2(prefix, num)

Definition at line 181 of file IrWidget.h.

◆ CAT3

#define CAT3 (   prefix,
  num,
  postfix 
)    __CAT3(prefix, num, postfix)

Definition at line 183 of file IrWidget.h.

◆ cbi

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

Definition at line 178 of file IrWidget.h.

◆ ENABLE_PULL_UP

#define ENABLE_PULL_UP

Definition at line 33 of file IrWidget.h.

◆ sbi

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

Definition at line 179 of file IrWidget.h.

◆ USE_PRESCALER_FACTOR_8

#define USE_PRESCALER_FACTOR_8   1

Definition at line 38 of file IrWidget.h.