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

A static class consisting of two functions that generate IrSignal-s from the NEC1 protocol parameters. More...

#include <Nec1Renderer.h>

Static Public Member Functions

static const IrSignalnewIrSignal (unsigned int D, unsigned int S, unsigned int F)
 Generates am IrSignal from the NEC1 parameters. More...
 
static const IrSignalnewIrSignal (unsigned int D, unsigned int F)
 Generates am IrSignal from the NEC1 parameters. More...
 

Detailed Description

A static class consisting of two functions that generate IrSignal-s from the NEC1 protocol parameters.

The NEC1 protocol is given in IRP notation as {38.4k,564}<1,-1|1,-3>(16,-8,D:8,S:8,F:8,~F:8,1,^108m,(16,-4,1,^108m)*) [D:0..255,S:0..255=255-D,F:0..255]

Definition at line 10 of file Nec1Renderer.h.

Member Function Documentation

◆ newIrSignal() [1/2]

static const IrSignal * Nec1Renderer::newIrSignal ( unsigned int  D,
unsigned int  F 
)
inlinestatic

Generates am IrSignal from the NEC1 parameters.

Equivalent to newIrSignal(D, 255-D, F). Must be deleted explicitly by the user to avoid memory leaks.

Parameters
Dparameter in NEC1, "device"
Fparameter in NEC1, "function"
Returns
IrSignal

Definition at line 36 of file Nec1Renderer.h.

◆ newIrSignal() [2/2]

const IrSignal * Nec1Renderer::newIrSignal ( unsigned int  D,
unsigned int  S,
unsigned int  F 
)
static

Generates am IrSignal from the NEC1 parameters.

Must be deleted explicitly by the user to avoid memory leaks.

Parameters
Dparameter in NEC1, "device"
Sparameter in NEC1, "sub-device"
Fparameter in NEC1, "function"
Returns
IrSignal

Definition at line 9 of file Nec1Renderer.cpp.


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