Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
IRsendTest Class Reference
Inheritance diagram for IRsendTest:
IRsend

Public Member Functions

 IRsendTest (uint16_t x, bool i=false)
 
void reset ()
 
std::string outputStr ()
 
void makeDecodeResult (uint16_t offset=0)
 
void dumpRawResult ()
 
void addGap (uint32_t usecs)
 
void begin ()
 
void enableIROut (uint32_t freq, uint8_t duty=DUTY_DEFAULT)
 
void calibrate (uint16_t hz=38000U)
 
void sendRaw (uint16_t buf[], uint16_t len, uint16_t hz)
 
void sendData (uint16_t onemark, uint32_t onespace, uint16_t zeromark, uint32_t zerospace, uint64_t data, uint16_t nbits, bool MSBfirst=true)
 
void sendGeneric (const uint16_t headermark, const uint32_t headerspace, const uint16_t onemark, const uint32_t onespace, const uint16_t zeromark, const uint32_t zerospace, const uint16_t footermark, const uint32_t gap, const uint64_t data, const uint16_t nbits, const uint16_t frequency, const bool MSBfirst, const uint16_t repeat, const uint8_t dutycycle)
 
void sendGeneric (const uint16_t headermark, const uint32_t headerspace, const uint16_t onemark, const uint32_t onespace, const uint16_t zeromark, const uint32_t zerospace, const uint16_t footermark, const uint32_t gap, const uint32_t mesgtime, const uint64_t data, const uint16_t nbits, const uint16_t frequency, const bool MSBfirst, const uint16_t repeat, const uint8_t dutycycle)
 
void sendGeneric (const uint16_t headermark, const uint32_t headerspace, const uint16_t onemark, const uint32_t onespace, const uint16_t zeromark, const uint32_t zerospace, const uint16_t footermark, const uint32_t gap, const uint8_t *dataptr, const uint16_t nbytes, const uint16_t frequency, const bool MSBfirst, const uint16_t repeat, const uint8_t dutycycle)
 
void send (uint16_t type, uint64_t data, uint16_t nbits)
 

Public Attributes

uint32_t output [OUTPUT_BUF]
 
uint16_t last
 
uint16_t rawbuf [RAW_BUF]
 
decode_results capture
 

Protected Member Functions

uint16_t mark (uint16_t usec)
 
void space (uint32_t time)
 

Protected Attributes

uint8_t outputOn
 
uint8_t outputOff