teste de publish

Dependencies:   DS1820 HighSpeedAnalogIn devices mbed

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

Who changed what in which revision?

UserRevisionLine numberNew contents of line
brunofgc 0:1c0a769988ee 1 #include "mbed.h"
brunofgc 0:1c0a769988ee 2 #ifndef _Circular_Buffer_
brunofgc 0:1c0a769988ee 3 #define _Circular_Buffer_
brunofgc 0:1c0a769988ee 4 class CircularBuffer {
brunofgc 0:1c0a769988ee 5 char *bufIn;
brunofgc 0:1c0a769988ee 6 uint16_t index;
brunofgc 0:1c0a769988ee 7 bool estouro;
brunofgc 0:1c0a769988ee 8 uint16_t tam;
brunofgc 0:1c0a769988ee 9
brunofgc 0:1c0a769988ee 10 public:
brunofgc 0:1c0a769988ee 11 CircularBuffer(uint16_t);
brunofgc 0:1c0a769988ee 12 char* get();
brunofgc 0:1c0a769988ee 13 char* getRowBuffer();
brunofgc 0:1c0a769988ee 14 void putc(char);
brunofgc 0:1c0a769988ee 15 uint16_t getLength();
brunofgc 0:1c0a769988ee 16 void del();
brunofgc 0:1c0a769988ee 17 uint16_t fill(char *,uint16_t);
brunofgc 0:1c0a769988ee 18
brunofgc 0:1c0a769988ee 19 };
brunofgc 0:1c0a769988ee 20 #endif