teste de publish
Dependencies: DS1820 HighSpeedAnalogIn devices mbed
funcoesSDCard.h
- Committer:
- brunofgc
- Date:
- 2017-03-24
- Revision:
- 0:1c0a769988ee
- Child:
- 7:ae9c47f62946
File content as of revision 0:1c0a769988ee:
#ifndef _funcoesSDCard_h_ #define _funcoesSDCard_h_ #include "SDFileSystem.h" //#include "modem.h" typedef struct{ FILE *fp; bool aberto; uint32_t bytes; char nome[30]; }arquivoSD; namespace sdCard{ extern SDFileSystem sd; extern arquivoSD envio; extern arquivoSD armazenamento; extern arquivoSD config; extern arquivoSD devices; extern arquivoSD status; extern arquivoSD tempFile; extern bool deleteSentFiles; extern char nomeArquivoEmRecebimento[30]; int init(); uint8_t file_rename(const char *, const char *); int preparaEnvio(void); void finalizaEnvio(void); bool getFileTam(arquivoSD *); bool abreArquivo(arquivoSD *,char *); //Struct do arquivo e modo ('w','r+',etc) bool insereDadosArquivo(arquivoSD *, char*,uint16_t);//Struct do arquivo, dados a inserir e tamanho deles bool insereDadosArquivoPeloNome(char *, char*,uint16_t);//nome do arquivo, dados a inserir e tamanho deles bool fechaArquivo(arquivoSD *); //Struct do arquivo bool exibeArquivo(arquivoSD *); bool excluiArquivo(arquivoSD *); bool arquivoAberto(); uint16_t calcCheckSum16BITFile(char *); } #endif