|
|
1.1 root 1: //
2: // nono
3: // Copyright (C) 2021 nono project
4: // Licensed under nono-license.txt
5: //
6:
7: //
8: // シリアルポートのドライバ(基本クラス)
9: //
10:
11: #pragma once
12:
13: #include "driver.h"
14:
15: class COMDriver : public Driver
16: {
17: using inherited = Driver;
18:
19: protected:
20: COMDriver(HostDevice *hostdev_, const char *drivername_);
21: public:
1.1.1.2 ! root 22: ~COMDriver() override;
1.1 root 23:
24: // VM に送信するデータを返す。送信しないなら負数(NODATA)を返す。
25: virtual int Read() = 0;
26:
27: // データを外部に出力する。
28: virtual void Write(uint32 data) = 0;
29: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.