| Previous | 15994 Revisions | Next |
| r6347 Monday 9th November, 2009 at 18:00:23 UTC by Wilbert Pol |
|---|
| [Serial device] Moved "struct data_stream" from machine/serial.h to machine/serial.c. |
| [src/mess/machine] | serial.c serial.h |
| r6346 | r6347 | |
|---|---|---|
| 41 | 41 | #define MAX_SERIAL_DEVICES 4 |
| 42 | 42 | |
| 43 | 43 | |
| 44 | /* a read/write bit stream. used to transmit data and to receive data */ | |
| 45 | struct data_stream | |
| 46 | { | |
| 47 | /* pointer to buffer */ | |
| 48 | unsigned char *pData; | |
| 49 | /* length of buffer */ | |
| 50 | unsigned long DataLength; | |
| 51 | ||
| 52 | /* bit offset within current byte */ | |
| 53 | unsigned long BitCount; | |
| 54 | /* byte offset within data */ | |
| 55 | unsigned long ByteCount; | |
| 56 | }; | |
| 57 | ||
| 58 | ||
| 44 | 59 | /* a serial device */ |
| 45 | 60 | struct serial_device |
| 46 | 61 | { |
| r6346 | r6347 | |
|---|---|---|
| 227 | 227 | /*******************************************************************************/ |
| 228 | 228 | /**** SERIAL DEVICE ****/ |
| 229 | 229 | |
| 230 | /* a read/write bit stream. used to transmit data and to receive data */ | |
| 231 | struct data_stream | |
| 232 | { | |
| 233 | /* pointer to buffer */ | |
| 234 | unsigned char *pData; | |
| 235 | /* length of buffer */ | |
| 236 | unsigned long DataLength; | |
| 237 | ||
| 238 | /* bit offset within current byte */ | |
| 239 | unsigned long BitCount; | |
| 240 | /* byte offset within data */ | |
| 241 | unsigned long ByteCount; | |
| 242 | }; | |
| 243 | ||
| 244 | 230 | unsigned long serial_device_get_state(int id); |
| 245 | 231 | |
| 246 | 232 | /* connect this device to the emulated serial chip */ |
| Previous | 15994 Revisions | Next |