|
Last change
on this file since 9 was
3,
checked in by markus, 7 years ago
|
|
Setup project structure
|
|
File size:
1.7 KB
|
| Line | |
|---|
| 1 | /* IRLibRecvPCI.h |
|---|
| 2 | * Part of IRLib Library for Arduino receiving, decoding, and sending |
|---|
| 3 | * infrared signals. See COPYRIGHT.txt and LICENSE.txt for more information. |
|---|
| 4 | * |
|---|
| 5 | * You should include this header in your sketch if you're using the IRLibRecvPCI |
|---|
| 6 | * receiver class which uses pin change interrupts to poll the input pin. |
|---|
| 7 | * This version gives more accurate results than the 50us timer based IRrecv but it has |
|---|
| 8 | * other limitations. It uses the Arduino "attachInterrupt()" function which can conflict |
|---|
| 9 | * with other libraries. Also unless you use an external buffer and enable auto resume |
|---|
| 10 | * this receiver occasionally fails to receive the second of 2 quickly sent frames. |
|---|
| 11 | * If you do not have sufficient RAM for a second buffer you should consider using the |
|---|
| 12 | * other two available receiver classes. |
|---|
| 13 | * Applications that do sending only SHOULD NOT include this header. |
|---|
| 14 | * |
|---|
| 15 | * This receiver is based in part on Arduino firmware for use with AnalysIR IR signal analysis |
|---|
| 16 | * software for Windows PCs. Many thanks to the people at http://analysir.com for their |
|---|
| 17 | * assistance in developing this section of code. |
|---|
| 18 | */ |
|---|
| 19 | |
|---|
| 20 | #ifndef IRLibRecvPCI_h |
|---|
| 21 | #define IRLibRecvPCI_h |
|---|
| 22 | #include "IRLibRecvBase.h" |
|---|
| 23 | |
|---|
| 24 | class IRrecvPCI: public IRrecvBase { |
|---|
| 25 | public: |
|---|
| 26 | IRrecvPCI(void){}; //Use only when receiver object is part of larger object. |
|---|
| 27 | // Still must initialize using constructor below. |
|---|
| 28 | IRrecvPCI(uint8_t pin); |
|---|
| 29 | void enableIRIn(void); //call to initialize or resume receiving |
|---|
| 30 | bool getResults(void); //returns true if new frame of data has been received |
|---|
| 31 | void disableIRIn(void); //ISR runs continuously once started. Use this if you want to stop. |
|---|
| 32 | private: |
|---|
| 33 | uint8_t intrNum; |
|---|
| 34 | }; |
|---|
| 35 | #endif //IRLibRecvPCI_h |
|---|
Note: See
TracBrowser
for help on using the repository browser.