base class
This commit is contained in:
parent
fe897b1b31
commit
9521fcecd1
4 changed files with 28 additions and 0 deletions
1
ESP32/comm.cpp
Symbolic link
1
ESP32/comm.cpp
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../comm.cpp
|
1
ESP32/comm.h
Symbolic link
1
ESP32/comm.h
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
../comm.h
|
9
comm.cpp
Normal file
9
comm.cpp
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#include "comm.h"
|
||||||
|
|
||||||
|
comm::comm()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
comm::~comm()
|
||||||
|
{
|
||||||
|
}
|
17
comm.h
Normal file
17
comm.h
Normal 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;
|
||||||
|
};
|
Loading…
Add table
Reference in a new issue