teste de publish

Dependencies:   DS1820 HighSpeedAnalogIn devices mbed

Committer:
brunofgc
Date:
Fri Mar 24 15:54:41 2017 +0000
Revision:
0:1c0a769988ee
Child:
6:d4ebbaaba295
Saidas digitais com pwm ok, entradas analogicas ok

Who changed what in which revision?

UserRevisionLine numberNew 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 0:1c0a769988ee 19 void enviaComandoIR(uint8_t,uint8_t);
brunofgc 0:1c0a769988ee 20 void pesquisaIRIn();
brunofgc 0:1c0a769988ee 21 void serializaPacoteIR(uint8_t connectionID);
brunofgc 0:1c0a769988ee 22 void deserializaPacoteIR(char *);
brunofgc 0:1c0a769988ee 23 bool detectaIRIn();
brunofgc 0:1c0a769988ee 24
brunofgc 0:1c0a769988ee 25 #endif