Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygencportlib.h
Go to the documentation of this file.
00001 /* 00002 * PROJECT: ReactOS ComPort Library 00003 * LICENSE: BSD - See COPYING.ARM in the top level directory 00004 * FILE: include/reactos/lib/cportlib/cportlib.h 00005 * PURPOSE: Header for the ComPort Library 00006 * PROGRAMMERS: ReactOS Portable Systems Group 00007 */ 00008 00009 /* INCLUDES *******************************************************************/ 00010 00011 #include <ntdef.h> 00012 00013 #define CP_GET_SUCCESS 0 00014 #define CP_GET_NODATA 1 00015 #define CP_GET_ERROR 2 00016 00017 #define CPPORT_FLAG_MODEM_CONTROL 0x02 00018 typedef struct _CPPORT 00019 { 00020 PUCHAR Address; 00021 ULONG Baud; 00022 USHORT Flags; 00023 } CPPORT, *PCPPORT; 00024 00025 VOID 00026 NTAPI 00027 CpInitialize( 00028 IN PCPPORT Port, 00029 IN PUCHAR Address, 00030 IN ULONG Rate 00031 ); 00032 00033 VOID 00034 NTAPI 00035 CpEnableFifo( 00036 IN PUCHAR Address, 00037 IN BOOLEAN Enable 00038 ); 00039 00040 BOOLEAN 00041 NTAPI 00042 CpDoesPortExist( 00043 IN PUCHAR Address 00044 ); 00045 00046 UCHAR 00047 NTAPI 00048 CpReadLsr( 00049 IN PCPPORT Port, 00050 IN UCHAR ExpectedValue 00051 ); 00052 00053 VOID 00054 NTAPI 00055 CpSetBaud( 00056 IN PCPPORT Port, 00057 IN ULONG Rate 00058 ); 00059 00060 USHORT 00061 NTAPI 00062 CpGetByte( 00063 IN PCPPORT Port, 00064 IN PUCHAR Byte, 00065 IN BOOLEAN Wait, 00066 IN BOOLEAN Poll 00067 ); 00068 00069 VOID 00070 NTAPI 00071 CpPutByte( 00072 IN PCPPORT Port, 00073 IN UCHAR Byte 00074 ); Generated on Fri May 25 2012 04:31:38 for ReactOS by
1.7.6.1
|