FreeRDP
comm_io.c File Reference
#include <winpr/config.h>
#include <winpr/assert.h>
#include <errno.h>
#include <termios.h>
#include <unistd.h>
#include <winpr/io.h>
#include <winpr/wlog.h>
#include <winpr/wtypes.h>
#include "comm.h"

Functions

BOOL _comm_set_permissive (HANDLE hDevice, BOOL permissive)
 
static UCHAR svtime (ULONG Ti)
 
BOOL CommReadFile (HANDLE hDevice, LPVOID lpBuffer, DWORD nNumberOfBytesToRead, LPDWORD lpNumberOfBytesRead, LPOVERLAPPED lpOverlapped)
 
BOOL CommWriteFile (HANDLE hDevice, LPCVOID lpBuffer, DWORD nNumberOfBytesToWrite, LPDWORD lpNumberOfBytesWritten, LPOVERLAPPED lpOverlapped)
 

Function Documentation

◆ _comm_set_permissive()

BOOL _comm_set_permissive ( HANDLE  hDevice,
BOOL  permissive 
)

WinPR: Windows Portable Runtime Serial Communication API

Copyright 2014 Hewlett-Packard Development Company, L.P.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CommReadFile()

BOOL CommReadFile ( HANDLE  hDevice,
LPVOID  lpBuffer,
DWORD  nNumberOfBytesToRead,
LPDWORD  lpNumberOfBytesRead,
LPOVERLAPPED  lpOverlapped 
)

ERRORS: ERROR_INVALID_HANDLE ERROR_NOT_SUPPORTED ERROR_INVALID_PARAMETER ERROR_TIMEOUT ERROR_IO_DEVICE ERROR_BAD_DEVICE

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CommWriteFile()

BOOL CommWriteFile ( HANDLE  hDevice,
LPCVOID  lpBuffer,
DWORD  nNumberOfBytesToWrite,
LPDWORD  lpNumberOfBytesWritten,
LPOVERLAPPED  lpOverlapped 
)

ERRORS: ERROR_INVALID_HANDLE ERROR_NOT_SUPPORTED ERROR_INVALID_PARAMETER ERROR_BAD_DEVICE

Here is the call graph for this function:
Here is the caller graph for this function:

◆ svtime()

static UCHAR svtime ( ULONG  Ti)
static
Here is the caller graph for this function: