ReactOS 0.4.15-dev-5896-g3f5bcf5
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 * FILE: include/reactos/libs/cportlib/cportlib.h
5 * PURPOSE: Header for the ComPort Library
6 * PROGRAMMERS: ReactOS Portable Systems Group
7 */
8
9/* INCLUDES *******************************************************************/
10
11#pragma once
12
13#include <ntdef.h>
14
15//
16// Return error codes.
17//
18#define CP_GET_SUCCESS 0
19#define CP_GET_NODATA 1
20#define CP_GET_ERROR 2
21
22//
23// COM port flags.
24//
25#define CPPORT_FLAG_MODEM_CONTROL 0x02
26
27typedef struct _CPPORT
28{
33
34VOID
39);
40
41VOID
45 IN ULONG BaudRate
46);
47
53 IN ULONG BaudRate
54);
55
60);
61
66 IN UCHAR ExpectedValue
67);
68
75 IN BOOLEAN Poll
76);
77
78VOID
83);
84
85/* EOF */
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
VOID NTAPI CpPutByte(IN PCPPORT Port, IN UCHAR Byte)
Definition: cport.c:303
NTSTATUS NTAPI CpInitialize(IN PCPPORT Port, IN PUCHAR Address, IN ULONG BaudRate)
Definition: cport.c:85
VOID NTAPI CpEnableFifo(IN PUCHAR Address, IN BOOLEAN Enable)
Definition: cport.c:51
USHORT NTAPI CpGetByte(IN PCPPORT Port, OUT PUCHAR Byte, IN BOOLEAN Wait, IN BOOLEAN Poll)
Definition: cport.c:253
VOID NTAPI CpSetBaud(IN PCPPORT Port, IN ULONG BaudRate)
Definition: cport.c:62
struct _CPPORT * PCPPORT
struct _CPPORT CPPORT
BOOLEAN NTAPI CpDoesPortExist(IN PUCHAR Address)
Definition: cport.c:224
UCHAR NTAPI CpReadLsr(IN PCPPORT Port, IN UCHAR ExpectedValue)
Definition: cport.c:231
unsigned char Byte
Definition: zlib.h:37
CPPORT Port[4]
Definition: headless.c:35
_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:29
ULONG BaudRate
Definition: cportlib.h:30
USHORT Flags
Definition: cportlib.h:31
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39
unsigned char * PUCHAR
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
#define OUT
Definition: typedefs.h:40
_In_ WDFDPC _In_ BOOLEAN Wait
Definition: wdfdpc.h:170
unsigned char UCHAR
Definition: xmlstorage.h:181