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

src/mess/machine/serial.c
r6346r6347
4141#define MAX_SERIAL_DEVICES   4
4242
4343
44/* a read/write bit stream. used to transmit data and to receive data */
45struct 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
4459/* a serial device */
4560struct serial_device
4661{
src/mess/machine/serial.h
r6346r6347
227227/*******************************************************************************/
228228/**** SERIAL DEVICE ****/
229229
230/* a read/write bit stream. used to transmit data and to receive data */
231struct 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
244230unsigned long serial_device_get_state(int id);
245231
246232/* connect this device to the emulated serial chip */

Previous 15994 Revisions Next


© 1998-2018 The MESS Team