1
0
mirror of https://github.com/thooge/esp32-nmea2000-obp60.git synced 2025-12-16 15:33:05 +01:00

intermediate: actisense format on USB

This commit is contained in:
wellenvogel
2021-11-26 00:09:34 +01:00
parent dbadb6fb11
commit 284be741f5
6 changed files with 119 additions and 19 deletions

View File

@@ -20,7 +20,7 @@ class GwBufferWriter{
class GwBuffer{
public:
static const size_t TX_BUFFER_SIZE=1620; // app. 20 NMEA messages
static const size_t RX_BUFFER_SIZE=200; // enough for 1 NMEA message...
static const size_t RX_BUFFER_SIZE=400; // enough for 1 NMEA message or actisense message
typedef enum {
OK,
ERROR,
@@ -47,6 +47,8 @@ class GwBuffer{
size_t freeSpace();
size_t usedSpace();
size_t addData(const uint8_t *data,size_t len,bool addPartial=false);
int read();
int peek();
/**
* write some data to the buffer writer
* return an error if the buffer writer returned < 0