Infrared4Arduino 1.2.3
Loading...
Searching...
No Matches
Public Member Functions | List of all members
IrSenderSimulator Class Reference

Simulates sending in the sense that it prints the IrSequences on the Stream given as argument. More...

#include <IrSenderSimulator.h>

Inheritance diagram for IrSenderSimulator:
Inheritance graph
[legend]
Collaboration diagram for IrSenderSimulator:
Collaboration graph
[legend]

Public Member Functions

 IrSenderSimulator (Stream &stream_)
 
 IrSenderSimulator (const IrSenderSimulator &orig)
 
virtual ~IrSenderSimulator ()
 
void send (const IrSequence &irSequence, frequency_t frequency=IrSignal::defaultFrequency, dutycycle_t dutyCycle=Board::defaultDutyCycle)
 Sends an IrSequence with the prescribed frequency. More...
 
void enable (frequency_t, dutycycle_t d __attribute__((unused))=Board::defaultDutyCycle)
 
void sendSpace (microseconds_t)
 
void sendMark (microseconds_t)
 
- Public Member Functions inherited from IrSender
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...
 

Additional Inherited Members

- Protected Member Functions inherited from IrSender
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 inherited from IrSender
static void barfForInvalidPin (pin_t sendPin __attribute__((unused)))
 

Detailed Description

Simulates sending in the sense that it prints the IrSequences on the Stream given as argument.

Intended as debugging and development tool.

Definition at line 9 of file IrSenderSimulator.h.

Constructor & Destructor Documentation

◆ IrSenderSimulator() [1/2]

IrSenderSimulator::IrSenderSimulator ( Stream &  stream_)
inline

Definition at line 14 of file IrSenderSimulator.h.

◆ IrSenderSimulator() [2/2]

IrSenderSimulator::IrSenderSimulator ( const IrSenderSimulator orig)
inline

Definition at line 15 of file IrSenderSimulator.h.

◆ ~IrSenderSimulator()

virtual IrSenderSimulator::~IrSenderSimulator ( )
inlinevirtual

Definition at line 16 of file IrSenderSimulator.h.

Member Function Documentation

◆ enable()

void IrSenderSimulator::enable ( frequency_t  ,
dutycycle_t d   __attribute__(unused) = Board::defaultDutyCycle 
)
inline

Definition at line 18 of file IrSenderSimulator.h.

◆ send()

void IrSenderSimulator::send ( const IrSequence irSequence,
frequency_t  frequency = IrSignal::defaultFrequency,
dutycycle_t  dutyCycle = Board::defaultDutyCycle 
)
virtual

Sends an IrSequence with the prescribed frequency.

Parameters
irSequence
frequencyfrequency in Hz
dutyCycle

Reimplemented from IrSender.

Definition at line 3 of file IrSenderSimulator.cpp.

◆ sendMark()

void IrSenderSimulator::sendMark ( microseconds_t  )
inlinevirtual

Implements IrSender.

Definition at line 20 of file IrSenderSimulator.h.

◆ sendSpace()

void IrSenderSimulator::sendSpace ( microseconds_t  )
inlinevirtual

Reimplemented from IrSender.

Definition at line 19 of file IrSenderSimulator.h.


The documentation for this class was generated from the following files: