Infrared4Arduino 1.2.3
|
Abstract base class for all sending classes. More...
#include <IrSender.h>
Public Member Functions | |
pin_t | getPin () const |
virtual | ~IrSender () |
virtual void | send (const IrSequence &irSequence, frequency_t frequency=IrSignal::defaultFrequency, dutycycle_t dutyCycle=Board::defaultDutyCycle) |
Sends an IrSequence with the prescribed frequency. More... | |
void | sendIrSignal (const IrSignal &irSignal, unsigned int noSends=1) |
Sends the IrSignal given as argument the prescribed number of times. More... | |
void | sendWhile (const IrSignal &irSignal, bool(*trigger)()) |
Send an IrSignal, when and as long as trigger() returns true. More... | |
void | mute () |
Force output pin inactive. More... | |
Protected Member Functions | |
void | writeHigh () |
void | writeLow () |
IrSender (pin_t pin) | |
virtual void | enable (frequency_t frequency, dutycycle_t dutyCycle=Board::defaultDutyCycle)=0 |
virtual void | sendSpace (microseconds_t time) |
virtual void | sendMark (microseconds_t time)=0 |
Static Protected Member Functions | |
static void | barfForInvalidPin (pin_t sendPin __attribute__((unused))) |
Abstract base class for all sending classes.
Definition at line 27 of file IrSender.h.
|
protected |
Definition at line 21 of file IrSender.cpp.
|
virtual |
Definition at line 26 of file IrSender.cpp.
|
inlinestaticprotected |
Definition at line 44 of file IrSender.h.
|
protectedpure virtual |
Implemented in IrSenderPwmSoft.
|
inline |
Definition at line 32 of file IrSender.h.
|
inline |
Force output pin inactive.
Definition at line 87 of file IrSender.h.
|
virtual |
Sends an IrSequence with the prescribed frequency.
irSequence | |
frequency | frequency in Hz |
dutyCycle |
Reimplemented in IrSenderSimulator.
Definition at line 57 of file IrSender.cpp.
void IrSender::sendIrSignal | ( | const IrSignal & | irSignal, |
unsigned int | noSends = 1 |
||
) |
Sends the IrSignal given as argument the prescribed number of times.
This will send the intro sequence signal of the IrSignal, noSend of the repeat, alternatively noSends - 1 repeats if intro is non-empty, and finally the ending sequence.
irSignal | |
noSends |
Definition at line 30 of file IrSender.cpp.
|
protectedpure virtual |
Implemented in IrSenderPwmSoft, and IrSenderSimulator.
|
inlineprotectedvirtual |
Reimplemented in IrSenderSimulator.
Definition at line 47 of file IrSender.h.
void IrSender::sendWhile | ( | const IrSignal & | irSignal, |
bool(*)() | trigger | ||
) |
Send an IrSignal, when and as long as trigger() returns true.
irSignal | |
trigger | Function returning bool. |
Definition at line 37 of file IrSender.cpp.
|
inlineprotected |
Definition at line 38 of file IrSender.h.
|
inlineprotected |
Definition at line 39 of file IrSender.h.