|
Infrared4Arduino
|
Sending function using timer PWM. More...
#include <IrSenderPwm.h>


Public Member Functions | |
| void | send (const IrSequence &sequence, frequency_t frequency=IrSignal::defaultFrequency) |
| Sends an IrSequence with the prescribed frequency. More... | |
Public Member Functions inherited from IrSender | |
| virtual | ~IrSender () |
| void | sendIrSignal (const IrSignal &irSignal, unsigned int noSends=1) |
| Sends the IrSignal given as argument the prescribed number of times. More... | |
| virtual void | mute () |
| Force output pin inactive. More... | |
Static Public Member Functions | |
| static IrSenderPwm * | getInstance (boolean create=false) |
| Returns a pointer to the instance, or NULL if not initialized. More... | |
| static IrSenderPwm * | newInstance () |
| Creates a new instance (if not existing) and returns it. More... | |
| static void | deleteInstance () |
Additional Inherited Members | |
Protected Member Functions inherited from IrSender | |
| pin_t | getOutputPin () const |
| void | delayUSecs (microseconds_t T) |
| IrSender () | |
| IrSender (pin_t pin) | |
Sending function using timer PWM.
Due to the nature of the timers, this is a Highlander, ("There can only be one"), so the class is a singleton class, with private constructor, a factory method that enforces the "highlander property".
Definition at line 29 of file IrSenderPwm.h.
|
inlinestatic |
Definition at line 49 of file IrSenderPwm.h.
|
static |
Returns a pointer to the instance, or NULL if not initialized.
If argument true, in the latter case creates a new instance and returns it.
Definition at line 48 of file IrSenderPwm.cpp.
|
static |
Creates a new instance (if not existing) and returns it.
Returns NULL if an instance already exists.
Definition at line 41 of file IrSenderPwm.cpp.
|
virtual |
Sends an IrSequence with the prescribed frequency.
| irSequence | |
| frequency | frequency in Hz |
Implements IrSender.
Definition at line 27 of file IrSenderPwm.cpp.
1.8.10