mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2026-02-11 15:13:06 +01:00
11 lines
476 B
C++
11 lines
476 B
C++
#pragma once
|
|
#include "GwBuffer.h"
|
|
#include "GwChannelModes.h"
|
|
class GwChannelInterface{
|
|
public:
|
|
virtual void loop(bool handleRead,bool handleWrite)=0;
|
|
virtual void readMessages(GwMessageFetcher *writer)=0;
|
|
virtual size_t sendToClients(const char *buffer, int sourceId, bool partial=false)=0;
|
|
virtual Stream * getStream(bool partialWrites){ return NULL;}
|
|
virtual int getType(){ return GWSERIAL_TYPE_BI;} //return the numeric type
|
|
}; |