cpi_close

Closes the channel associated with the specified handle.

Prototype

#include txcpi.h

S16 cpi_close ( TX_HANDLE handle)

Argument

Description

handle

TX handle associated with the channel, returned from cpi_open, cpia_open or cpix_open.


Return values

Return value

Description

CPI_SUCCESS

Channel successfully closed.

CPI_ERROR

Call cpi_get_last_error to obtain the error code.


Details

Applications that open CPI channels must close all channels before the application terminates. Failing to close a channel can leave resources in an indeterminate state.