base class

This commit is contained in:
folkert van heusden 2024-05-16 21:32:46 +02:00
parent fe897b1b31
commit 9521fcecd1
Signed by untrusted user who does not match committer: folkert
GPG key ID: 6B6455EDFEED3BD1
4 changed files with 28 additions and 0 deletions

1
ESP32/comm.cpp Symbolic link
View file

@ -0,0 +1 @@
../comm.cpp

1
ESP32/comm.h Symbolic link
View file

@ -0,0 +1 @@
../comm.h

9
comm.cpp Normal file
View file

@ -0,0 +1,9 @@
#include "comm.h"
comm::comm()
{
}
comm::~comm()
{
}

17
comm.h Normal file
View file

@ -0,0 +1,17 @@
#include <cstddef>
#include <cstdint>
class comm
{
public:
comm();
virtual ~comm();
virtual bool is_connected() = 0;
virtual bool has_data() = 0;
virtual uint8_t get_byte() = 0;
virtual void send_data(const uint8_t *const in, const size_t n) = 0;
};