Last change
on this file since 214 was 209, checked in by gregli@…, 13 years ago |
Initial checkin for the Serial Server code, to be run on a host computer with a hard disk image file. Connected via a serial line, this provides the I/O for the serial port support in the XTIDE bios. At present, this is a Win32 command line program, run without parameters for usage information.
|
File size:
594 bytes
|
Rev | Line | |
---|
[209] | 1 | //======================================================================
|
---|
| 2 | //
|
---|
| 3 | // Project: XTIDE Universal BIOS, Serial Port Server
|
---|
| 4 | //
|
---|
| 5 | // File: Win32Serial.h - Microsoft Windows serial code
|
---|
| 6 | //
|
---|
| 7 |
|
---|
| 8 | #include "windows.h"
|
---|
| 9 | #include "../library/library.h"
|
---|
| 10 |
|
---|
| 11 | #define PIPENAME "\\\\.\\pipe\\xtide"
|
---|
| 12 |
|
---|
| 13 | class Win32Serial : public Serial
|
---|
| 14 | {
|
---|
| 15 | public:
|
---|
| 16 | Win32Serial( char *name, struct baudRate *baudRate );
|
---|
| 17 | ~Win32Serial();
|
---|
| 18 |
|
---|
| 19 | unsigned long readCharacters( void *buff, unsigned long len );
|
---|
| 20 | unsigned long writeCharacters( void *buff, unsigned long len );
|
---|
| 21 |
|
---|
| 22 | private:
|
---|
| 23 | HANDLE pipe;
|
---|
| 24 | };
|
---|
| 25 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.