User`s manual

BL1600 System Development s 47
int Dwrite
_
z01ch( char ch )
Places a character in the transmit buffer. If the serial port is not already
transmitting, the function initiates transmission.
RETURN VALUE: 0transmit buffer did not have space for ch;
1write was successful.
int Dread
_
z0( char *buffer, char terminate )
Checks the receive buffer for a message terminated with the character
terminate. The message is copied to the buffer and is terminated
with a null character according to the C convention.
RETURN VALUE: 0no message found with the specified terminat-
ing character; 1message has been successfully extracted from buffer.
int Dwrite
_
z0( char *buffer, int count )
Copies count bytes from buffer to the transmit buffer. If the serial
port is not already transmitting, the function initiates transmission.
RETURN VALUE: 0transmit buffer did not have space for count
bytes; 1write is successful.
void Dz0send
_
prompt()
Places CR, LF and > in the transmit buffer.
void Dreset
_
z0rbuf()
Resets the receive buffer.
void Dreset
_
z0tbuf()
Reset the transmit buffer and stop transmission.
void Dkill
_
z0()
Resets Z180 Port 0.
void z0binaryreset()
Sets the serial communication mode to regular ASCII mode. This
means that the backspace character is tracked.
void z0binaryset()
Sets the serial communication mode to binary. This means that all data
received are placed directly to the receive buffer without preprocessing.