ReactOS 0.4.16-dev-2491-g3dc6630
cportlib.h
Go to the documentation of this file.
1/*
2 * PROJECT: ReactOS ComPort Library
3 * LICENSE: BSD - See COPYING.ARM in the top level directory
4 * PURPOSE: Header for the ComPort Library
5 * COPYRIGHT: Copyright 2010 ReactOS Portable Systems Group
6 */
7
8/* INCLUDES *******************************************************************/
9
10#pragma once
11
12#include <ntdef.h>
13
14//
15// Return error codes.
16//
17#define CP_GET_SUCCESS 0
18#define CP_GET_NODATA 1
19#define CP_GET_ERROR 2
20
21//
22// COM port flags.
23//
24#define CPPORT_FLAG_MODEM_CONTROL 0x02
25
26typedef struct _CPPORT
27{
32
37
38VOID
43
44VOID
48 _In_ ULONG BaudRate);
49
55 _In_ ULONG BaudRate);
56
63 _In_ BOOLEAN Poll);
64
65VOID
70
71/* EOF */
unsigned char BOOLEAN
Definition: actypes.h:127
LONG NTSTATUS
Definition: precomp.h:26
USHORT NTAPI CpGetByte(_Inout_ PCPPORT Port, _Out_ PUCHAR Byte, _In_ BOOLEAN Wait, _In_ BOOLEAN Poll)
Definition: cport.c:82
struct _CPPORT * PCPPORT
VOID NTAPI CpPutByte(_Inout_ PCPPORT Port, _In_ UCHAR Byte)
Definition: cport.c:93
NTSTATUS NTAPI CpInitialize(_Inout_ PCPPORT Port, _In_ PUCHAR Address, _In_ ULONG BaudRate)
Definition: cport.c:59
BOOLEAN NTAPI CpDoesPortExist(_In_ PUCHAR Address)
Definition: cport.c:33
struct _CPPORT CPPORT
VOID NTAPI CpSetBaud(_Inout_ PCPPORT Port, _In_ ULONG BaudRate)
Definition: cport.c:50
VOID NTAPI CpEnableFifo(_In_ PUCHAR Address, _In_ BOOLEAN Enable)
Definition: cport.c:41
unsigned char Byte
Definition: zlib.h:37
CPPORT Port[4]
Definition: headless.c:38
#define _Inout_
Definition: no_sal2.h:162
#define _Out_
Definition: no_sal2.h:160
#define _In_
Definition: no_sal2.h:158
_In_ ULONGLONG _In_ ULONGLONG _In_ BOOLEAN Enable
Definition: ntddpcm.h:142
unsigned short USHORT
Definition: pedump.c:61
static WCHAR Address[46]
Definition: ping.c:68
PUCHAR Address
Definition: cportlib.h:28
ULONG BaudRate
Definition: cportlib.h:29
USHORT Flags
Definition: cportlib.h:30
#define NTAPI
Definition: typedefs.h:36
unsigned char * PUCHAR
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
_In_ WDFDPC _In_ BOOLEAN Wait
Definition: wdfdpc.h:170
unsigned char UCHAR
Definition: xmlstorage.h:181