Fabio Fumi
/
send_to_sharp
Renamed
Diff: serial_file.h
- Revision:
- 5:062962db7a48
diff -r 6237f9e5e798 -r 062962db7a48 serial_file.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/serial_file.h Tue Mar 29 10:06:20 2022 +0000 @@ -0,0 +1,22 @@ +#ifndef FILE_BUF_SIZE +#define FILE_BUF_SIZE 1024 +#include "mbed.h" + +#define ERR_FILE_BUF_FULL 10 +#define ERR_FILE_TERMINATED 20 + +// shared with other modules +extern Timer timeout; +extern volatile int totBytesReceived; +extern volatile int fileBufReceivePtr; +extern volatile int fileBufSendPtr; +extern volatile int fileReceiveComplete; +extern volatile int fileError; +extern volatile char fileOverSerialBuffer[]; + +void fileReceiveInit( void ); +char filePullData ( void ) ; +void filePushData ( char byte ) ; +bool isFilePullComplete( void ); + +#endif \ No newline at end of file