teste de publish

Dependencies:   DS1820 HighSpeedAnalogIn devices mbed

IRPack.h

Committer:
brunofgc
Date:
2017-03-24
Revision:
0:1c0a769988ee
Child:
6:d4ebbaaba295

File content as of revision 0:1c0a769988ee:

#ifndef _IRPack_h_
#define _IRPack_h_

#include "mbed.h"
#include "modem.h"
#include "main.h"
#include <math.h>
#include "CircularBuffer.h"
#define maxBitsMsg 256
extern PwmOut IrOut;
extern DigitalIn IrIn;
extern Timer IrTmr;
extern Timer IrDetect;
extern uint16_t bits[maxBitsMsg*2][2];
extern CircularBuffer bufIROut;



void enviaComandoIR(uint8_t,uint8_t);
void pesquisaIRIn();
void serializaPacoteIR(uint8_t connectionID);
void deserializaPacoteIR(char *);
bool detectaIRIn();

#endif