Closes the channel associated with the specified handle.
#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 value |
Description |
CPI_SUCCESS |
Channel successfully closed. |
CPI_ERROR |
Call cpi_get_last_error to obtain the error code. |
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.