Infrared4Arduino
Pronto.h
Go to the documentation of this file.
1 
6 #ifndef PRONTO_H
7 #define PRONTO_H
8 
9 #include "InfraredTypes.h"
10 #include "IrSignal.h"
11 
12 class Pronto {
13 private:
14  Pronto() {};
15 
16  static IrSequence *mkSequence(const uint16_t *data, size_t pairs, double timebase);
17 
18  static frequency_t toFrequency(uint16_t code) {
19  return (frequency_t) (4145146L/code);
20  }
21 
22 public:
29  static IrSignal *parse(const uint16_t *data, size_t size);
30 
36  static IrSignal *parse(const char *str);
37 
38  // TODO: static IrSignal *parse(const __FlashStringHelper *str);
39 };
40 
41 #endif /* PRONTO_H */
42 
This class models an IR signal with intro-, repeat-, and ending sequences.
Definition: IrSignal.h:11
static IrSignal * parse(const uint16_t *data, size_t size)
Function for parsing its input data into an IrSignal.
Definition: Pronto.cpp:5
uint16_t frequency_t
Type for modulation frequency in Hz.
Definition: InfraredTypes.h:33
This class consists of a vector of durations.
Definition: IrSequence.h:12
This file defines some general data types that are used in the library.
Static class consisting of tho functions for parsing a Pronto Hex string (like 0000 006C 0022 0002 01...
Definition: Pronto.h:12