mirror of
https://github.com/autc04/Retro68.git
synced 2025-01-30 09:32:07 +00:00
28 lines
510 B
C++
28 lines
510 B
C++
#ifndef MACSERIALSTREAM_H_
|
|
#define MACSERIALSTREAM_H_
|
|
|
|
#include <Stream.h>
|
|
|
|
class MacSerialStream : public Stream
|
|
{
|
|
static const long kInputBufferSize = 4096;
|
|
static const long kReadBufferSize = 4096;
|
|
char inputBuffer[kInputBufferSize];
|
|
char readBuffer[kReadBufferSize];
|
|
|
|
short outRefNum, inRefNum;
|
|
public:
|
|
virtual void write(const void* p, size_t n) override;
|
|
|
|
void idle();
|
|
|
|
MacSerialStream();
|
|
~MacSerialStream();
|
|
|
|
void close();
|
|
|
|
void setBaud(int baud);
|
|
};
|
|
|
|
#endif
|