RemotoIR Libraryに、IRC Helicopter Propo の受信処理と、受信パルス幅測定処理を追加したものです。
Dependents: SwiftPropoIR_TestProgram irRawDataDisplay spinner2 LPC1114_ir-spinne_main-propo
Fork of RemoteIR by
Diff: ReceiverIR.h
- Revision:
- 13:ec76e93a4d7c
- Parent:
- 12:2379e13b8b34
--- a/ReceiverIR.h Sun Jun 23 07:23:56 2013 +0000 +++ b/ReceiverIR.h Sat Aug 03 01:44:43 2013 +0000 @@ -10,6 +10,7 @@ * Conditional compilation * "SWIFT_PROTCOL" * "IR_RAW_DATA_ANALYSIS" + * "ERRORWAIT" : recive error no fuuki taisaku *-------------------------------------------------------- */ @@ -21,6 +22,7 @@ #include "RemoteIR.h" //#define IR_RAW_DATA_ANALYSIS +#define ERRORWAIT /** * IR receiver class. @@ -46,7 +48,10 @@ typedef enum { Idle, Receiving, - Received + Received, +#ifdef ERRORWAIT + ErrorWait, +#endif // ERRORWAIT } State; /** @@ -105,6 +110,10 @@ void init_state(void); +#ifdef ERRORWAIT + void errorWait(void); +#endif // ERRORWAIT + void isr_wdt(void); void isr_fall(void); void isr_rise(void);