FreeRDP
|
#include <winpr/config.h>
#include <winpr/assert.h>
#include <errno.h>
#include <winpr/wlog.h>
#include "comm.h"
#include "comm_ioctl.h"
#include "comm_serial_sys.h"
#include "comm_sercx_sys.h"
#include "comm_sercx2_sys.h"
Functions | |
const char * | _comm_serial_ioctl_name (ULONG number) |
static BOOL | s_CommDeviceIoControl (HANDLE hDevice, DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped) |
BOOL | CommDeviceIoControl (HANDLE hDevice, DWORD dwIoControlCode, LPVOID lpInBuffer, DWORD nInBufferSize, LPVOID lpOutBuffer, DWORD nOutBufferSize, LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped) |
int | _comm_ioctl_tcsetattr (int fd, int optional_actions, const struct termios *termios_p) |
Variables | |
static const _SERIAL_IOCTL_NAME | S_SERIAL_IOCTL_NAMES [] |
int _comm_ioctl_tcsetattr | ( | int | fd, |
int | optional_actions, | ||
const struct termios * | termios_p | ||
) |
const char* _comm_serial_ioctl_name | ( | ULONG | number | ) |
FIXME: got a proper function name and place
BOOL CommDeviceIoControl | ( | HANDLE | hDevice, |
DWORD | dwIoControlCode, | ||
LPVOID | lpInBuffer, | ||
DWORD | nInBufferSize, | ||
LPVOID | lpOutBuffer, | ||
DWORD | nOutBufferSize, | ||
LPDWORD | lpBytesReturned, | ||
LPOVERLAPPED | lpOverlapped | ||
) |
FIXME: to be used through winpr-io's DeviceIoControl
Any previous error as returned by GetLastError is cleared.
ERRORS: ERROR_INVALID_HANDLE ERROR_INVALID_PARAMETER ERROR_NOT_SUPPORTED lpOverlapped is not supported ERROR_INSUFFICIENT_BUFFER ERROR_CALL_NOT_IMPLEMENTED unimplemented ioctl
|
static |
|
static |
WinPR: Windows Portable Runtime Serial Communication API
Copyright 2011 O.S. Systems Software Ltda. Copyright 2011 Eduardo Fiss Beloni belon Copyright 2014 Marc-Andre Moreau i@os syste ms.c om.brmarca Copyright 2014 Hewlett-Packard Development Company, L.P. ndre .more au@g mail. com
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.