/******************************************************************* * Pilot Software * * Copyright(c) 1994, Palm Computing Inc., All Rights Reserved * *------------------------------------------------------------------- * FileName: * SerialLib68328.h * * Description: * Include file for 68328 Serial Library * * History: * 2/7/95 Created by Ron Marianetti * vmk 8/21/95 Added defQData field to serial globals * *******************************************************************/ #ifndef __SERIAL_LIB_68681_H #define __SERIAL_LIB_68681_H // Pilot common definitions #include /******************************************************************** * Serial Globals ********************************************************************/ typedef struct SerGlobalsType { UInt openCount; // # of times we've been opened Int port; SerSettingsType settings; Word lineErrors; // line errors bitfield VoidPtr chanP; // pointer to this channel base in UART Boolean staticGlobals; // true when initialized for debugger only // Receive Queue. When the queue is empty, qStart == qEnd. When the queue // is full, qStart = qEnd-1 (taking wrap-around into account if necessary). Word qStart; // start offset of queue Word qEnd; // end offset of queue Word qSize; // size of queue Ptr qData; // pointer to queue data Ptr defQData; // pointer to default queue data // Receive Queue semaphore info Word smSignalSize; // How much the semaphore is waiting for Long smID; // semaphore ID Byte currentIMR; // current value of interrupt mask register } SerGlobalsType; typedef SerGlobalsType* SerGlobalsPtr; #define serDefaultRcvBufferSize 0x200 #endif //__SERIAL_LIB_68681_H