Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Nucleo_NHK_2018_syudo_wheel a_team_R1370 Nucleo_NHK_2018_syudo_wheel 2018NHK_gaku_ver2 ... more
Diff: SerialMultiByte.h
- Revision:
- 2:a14ba6b3f198
- Parent:
- 1:a28d64ee7a79
- Child:
- 4:31dbd7ea393b
--- a/SerialMultiByte.h Wed Aug 29 04:39:35 2018 +0000
+++ b/SerialMultiByte.h Wed Sep 12 15:20:52 2018 +0000
@@ -7,7 +7,6 @@
#define DEFAULT_DATA_SIZE 4
#include "mbed.h"
-#include <vector>
class SerialMultiByte : public RawSerial {
public :
@@ -24,15 +23,13 @@
void receiveLoop();
void receiveByte();
void checkData();
-
- Thread thread;
+ uint8_t *buffer;
+ uint8_t bufferPoint;
+ uint8_t receivedBytes;
uint8_t header[2];
- std::vector<uint8_t> buffer;
uint16_t bufferSize;
uint8_t* data;
-
-
};
#endif
\ No newline at end of file