Si_write, Si_settimeouts, Si_write -5 – INFICON MDC-260 Thin Film Deposition Controller User Manual

Page 143: Si_settimeouts -5

Advertising
background image

MDC-260 DEPOSITION CONTROLLER

COMPUTER INTERFACE 11-5

SI_Write

Description:

Writes the specified number of bytes from the specified buffer to

the MDC-260. Given valid parameters, this function is blocking
until the write is successful, fails or a timeout occurs. The write
is successful when the MDC-260 has accepted all of the data. If
the write fails or a timeout occurs, SI_WRITE_ERROR is
returned.

Prototype:

SI_STATUS SI_Write (HANDLE Handle, LPVOID
Buffer, DWORD NumBytesToWrite, DWORD
*NumBytesWritten)

Parameters:

1.

Handle – Handle to the MDC-260 to write as returned by

SI_Open.
2.

Buffer – Address of a character buffer of data to be sent to the

MDC-260.
3.

NumBytesToWrite – Number of bytes to write to the MDC-

260.
4.

NumBytesWritten – Address of DWORD which will contain

the number of bytes actually written to the MDC-260.

Return Value:

SI_STATUS

=

SI_SUCCESS (0x00) or

SI_WRITE_ERROR (0x04) or

SI_INVALID_REQUEST_LENGTH

(0x07)

SI_INVALID_PARAMETER (0x06) or

SI_INVALID_HANDLE

(0x01)

SI_SetTimeouts

Description:

Sets the read and write timeouts.

Prototype:

SI_STATUS SI_SetTimeouts (DWORD
ReadTimeout, DWORD WriteTimeout)

Parameters:

1.

ReadTimeout SI_Read operation timeout (in milliseconds).

2.

WriteTimeoutSI_Write operation timeout (in milliseconds).

Return Value:

SI_STATUS

= SI_SUCCESS (0x00)

Advertising