mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-05 04:06:45 +00:00
28 lines
584 B
C
28 lines
584 B
C
|
#pragma once
|
||
|
#include "ConnectionProvider.h"
|
||
|
#include <memory>
|
||
|
|
||
|
class StatusDisplay;
|
||
|
|
||
|
class SerialConnectionProvider : public ConnectionProvider
|
||
|
{
|
||
|
int port, baud;
|
||
|
StatusDisplay *statusDisplay;
|
||
|
struct Streams;
|
||
|
|
||
|
std::unique_ptr<Streams> streams;
|
||
|
|
||
|
static void unloadSegDummy();
|
||
|
public:
|
||
|
SerialConnectionProvider(int port, int baud, StatusDisplay *statusDisplay);
|
||
|
virtual ~SerialConnectionProvider();
|
||
|
|
||
|
virtual Stream* getStream();
|
||
|
|
||
|
virtual void idle();
|
||
|
virtual void suspend();
|
||
|
virtual void resume();
|
||
|
|
||
|
virtual void* segmentToUnload();
|
||
|
};
|