<< Previous | Next >>

HDLCsendX

int HDLCsendX( char * tx_buffer, int length ); /* Where X is E or F */

Description

Transmits a packet out serial port E or F in HDLC mode. The tx_buffer is read directly while transmitting, therefore it cannot be altered until a subsequent call to HDLCsendingX() returns false, indicating that the driver is done with it.

This function is intended for use with the Rabbit 3000 and Rabbit 4000.

Parameters

tx_buffer
A pointer to the packet to be sent. This buffer must not change while transmitting (see above.)

length
The size of the buffer (in bytes).

Return Value

1: Sending packet.
0: Cannot send, another packet is currently being transmitted.

Library

HDLC_PACKET.LIB


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