teste de publish
Dependencies: DS1820 HighSpeedAnalogIn devices mbed
IRPack.h@6:d4ebbaaba295, 2017-06-15 (annotated)
- Committer:
- brunofgc
- Date:
- Thu Jun 15 12:50:58 2017 +0000
- Revision:
- 6:d4ebbaaba295
- Parent:
- 0:1c0a769988ee
- Child:
- 24:302707175ef3
Ultima vers?o antes da adi??o de Exce??es de calend?rio e persist?ncias
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
brunofgc | 0:1c0a769988ee | 1 | #ifndef _IRPack_h_ |
brunofgc | 0:1c0a769988ee | 2 | #define _IRPack_h_ |
brunofgc | 0:1c0a769988ee | 3 | |
brunofgc | 0:1c0a769988ee | 4 | #include "mbed.h" |
brunofgc | 0:1c0a769988ee | 5 | #include "modem.h" |
brunofgc | 0:1c0a769988ee | 6 | #include "main.h" |
brunofgc | 0:1c0a769988ee | 7 | #include <math.h> |
brunofgc | 0:1c0a769988ee | 8 | #include "CircularBuffer.h" |
brunofgc | 0:1c0a769988ee | 9 | #define maxBitsMsg 256 |
brunofgc | 0:1c0a769988ee | 10 | extern PwmOut IrOut; |
brunofgc | 0:1c0a769988ee | 11 | extern DigitalIn IrIn; |
brunofgc | 0:1c0a769988ee | 12 | extern Timer IrTmr; |
brunofgc | 0:1c0a769988ee | 13 | extern Timer IrDetect; |
brunofgc | 0:1c0a769988ee | 14 | extern uint16_t bits[maxBitsMsg*2][2]; |
brunofgc | 0:1c0a769988ee | 15 | extern CircularBuffer bufIROut; |
brunofgc | 0:1c0a769988ee | 16 | |
brunofgc | 0:1c0a769988ee | 17 | |
brunofgc | 0:1c0a769988ee | 18 | |
brunofgc | 6:d4ebbaaba295 | 19 | |
brunofgc | 0:1c0a769988ee | 20 | void enviaComandoIR(uint8_t,uint8_t); |
brunofgc | 0:1c0a769988ee | 21 | void pesquisaIRIn(); |
brunofgc | 0:1c0a769988ee | 22 | void serializaPacoteIR(uint8_t connectionID); |
brunofgc | 0:1c0a769988ee | 23 | void deserializaPacoteIR(char *); |
brunofgc | 0:1c0a769988ee | 24 | bool detectaIRIn(); |
brunofgc | 0:1c0a769988ee | 25 | |
brunofgc | 0:1c0a769988ee | 26 | #endif |