cpi_send

Synchronously sends a packet of data over the channel indicated by the specified handle.

Prototype

#include txcpi.h

S16 cpi_send ( TX_HANDLE handle, CPIPKT *buffer)

Argument

Description

handle

TX handle associated with the channel.

buffer

Pointer to a CPIPKT structure containing data to send.


Return values

Return value

Description

CPI_SUCCESS

Packet successfully sent to the TX board.

CPI_ERROR

Call cpi_get_last_error to obtain the error code.


Details

buffer should point to a properly formatted CP packet. The application sets the destination board and channel number in the header portion of the buffer. The function does not return until the board acknowledges the sent packet.