1 #ifndef PREFS_SERIAL_H 2 #define PREFS_SERIAL_H 3 4 /* 5 serial prefs definitions 6 7 Copyright © 2002 The MorphOS Development Team, All Rights Reserved. 8 */ 9 10 #ifndef EXEC_TYPES_H 11 # include <exec/types.h> 12 #endif 13 14 #ifndef LIBRARIES_IFFPARSE_H 15 # include <libraries/iffparse.h> 16 #endif 17 18 #pragma pack(2) 19 20 21 #define ID_SERL MAKE_ID('S','E','R','L') 22 23 24 struct SerialPrefs 25 { 26 LONG sp_Reserved[3]; 27 ULONG sp_Unit0Map; 28 ULONG sp_BaudRate; 29 30 ULONG sp_InputBuffer; 31 ULONG sp_OutputBuffer; 32 33 UBYTE sp_InputHandshake; 34 UBYTE sp_OutputHandshake; 35 36 UBYTE sp_Parity; 37 UBYTE sp_BitsPerChar; 38 UBYTE sp_StopBits; 39 }; 40 41 42 #define PARITY_NONE 0 43 #define PARITY_EVEN 1 44 #define PARITY_ODD 2 45 #define PARITY_MARK 3 46 #define PARITY_SPACE 4 47 48 49 #define HSHAKE_XON 0 50 #define HSHAKE_RTS 1 51 #define HSHAKE_NONE 2 52 53 54 #pragma pack() 55 56 #endif /* PREFS_SERIAL_H */