Infrared4Arduino 1.2.3
Loading...
Searching...
No Matches
Rc5Renderer.h
Go to the documentation of this file.
1#pragma once
2
3#include "IrSignal.h"
10private:
11 static constexpr frequency_t frequency = 36000UL;
12 static constexpr size_t introLength = 0U;
13 static constexpr size_t endingLength = 0U;
14
15public:
24 static const IrSignal *newIrSignal(unsigned int D, unsigned int F, unsigned int T);
25
34 static const IrSignal *newIrSignal(unsigned int D, unsigned int F);
35
36private:
38 static constexpr microseconds_t timebase = 889U;
39 static void emit(unsigned int t, unsigned int& index, int& pending, microseconds_t *repeat);
40 static void emitMsb(unsigned int x, unsigned int length, unsigned int& index,
41 int& pending, microseconds_t *repeat);
42 static void emitEnd(unsigned int& index, int& pending, microseconds_t *repeat);
43
44 static uint8_t T;
45};
uint16_t microseconds_t
Type for durations in micro seconds.
Definition: InfraredTypes.h:15
uint32_t frequency_t
Type for modulation frequency in Hz.
Definition: InfraredTypes.h:31
This class models an IR signal with intro-, repeat-, and ending sequences.
Definition: IrSignal.h:11
A static class consisting of two functions that generate IrSignal-s from the RC5 protocol parameters.
Definition: Rc5Renderer.h:9
static const IrSignal * newIrSignal(unsigned int D, unsigned int F, unsigned int T)
Generates an RC5 signal from the RC5 parameters.
Definition: Rc5Renderer.cpp:18