KEK/ESP32/comm_esp32_hardwareserial.h
folkert van heusden 0bf55ecb1a
copyrights
2024-05-16 21:45:52 +02:00

23 lines
500 B
C++

// (C) 2024 by Folkert van Heusden
// Released under MIT license
#include "gen.h"
#include "comm.h"
class comm_esp32_hardwareserial: public comm
{
private:
const int uart_nr { 1};
public:
comm_esp32_hardwareserial(const int uart_nr, const int rx_pin, const int tx_pin, const int bps);
virtual ~comm_esp32_hardwareserial();
bool is_connected() override;
bool has_data() override;
uint8_t get_byte() override;
void send_data(const uint8_t *const in, const size_t n) override;
};