<< Previous | Next >>

pktXsend

int pktXsend( void *send_buffer, int buffer_length, char delay ); /* X is A-F */

Description

Initiates the sending of a packet of data using serial port X. This function will always return immediately. If there is already a packet being transmitted, this call will return 0 and the packet will not be transmitted, otherwise it will return 1.

pktXsending() checks if the packet is done transmitting. The system will be using the buffer until then.

The functions pktEsend() and pktFsend() may be used with the Rabbit 3000 and Rabbit 4000.

Parameters

send_buffer
The data to be sent

buffer_length
Length of the data buffer to transmit

delay
The number of byte times to delay before sending the data (0-255) This is used to implement protocol-specific delays between packets

Return value

1: The packet is going to be transmitted.
0: There is already a packet transmitting, and the new packet was refused.

Library

PACKET.LIB


Dynamic C Functions << Previous | Next >> rabbit.com