![Tews Technologies TPMC866-SW-42 Скачать руководство пользователя страница 9](http://html1.mh-extra.com/html/tews-technologies/tpmc866-sw-42/tpmc866-sw-42_user-manual_1093638009.webp)
TPMC866-SW-42 - VxWorks Device Driver
Page 9 of 37
3.2 tpmc866DevCreate()
NAME
tpmc866DevCreate() -
adds TPMC866 device to the system and initializes device hardware with the
selected configuration
SYNOPSIS
STATUS tpmc866DevCreate
(
char
*name,
int
channel,
int
rdBufSize,
int
wrtBufSize,
TP866_CHANCONF
*devconf
)
DESCRIPTION
This routine creates a device on a specified serial channel that will be serviced by the TPMC866
driver. This function must be called before performing any I/O request to this device.
PARAMETER
name
This string specifies the name of the device.
channel
This index specifies the channel number to use. The channel numbers will be assigned in the
order the VxWorks
pciFindDevice()
function will find the devices.
rdBufSize
This value specifies the size of the receive software FIFO.
wrtBufSize
This value specifies the size of the transmit software FIFO.