1 #ifndef PIRRX51HARDWARE_H
2 #define PIRRX51HARDWARE_H
5 // Encapsulates communication with the N900's IR hardware, using the LIRC
6 // device that (hopefully) exists on all N900s.
9 // To my current knowledge, you can send a maximum of 256 integers to the
10 // N900's IR device driver, so that's probably a good limit to set:
11 #define BUFFER_SIZE 256
19 unsigned int frequency,
20 unsigned int dutyCycle);
24 // Most remotes will just want to append pairs of on/off times:
29 // Some remotes need to specify the switching values individually:
33 // Send the buffered pulses to the IR device:
34 void sendCommandToDevice();
36 void setCarrierFrequency(
37 unsigned int frequency);
40 unsigned int dutyCycle);
43 void openLircDevice();
47 int buffer[BUFFER_SIZE];
51 #endif // PIRRX51HARDWARE_H