Standard Artesyn Functions
10-63
10.15.19 Serial Support
SYNOPSIS
unsigned char getchar (void)
void putchar(char c)
int KBHit(void)
int TxMT(void)
void ChBaud(int Baud)
DESCRIPTION
The serial support functions defined here provide the ability to read, write,
and poll the monitor’s console device, which provides the user interface. The
serial port is configured at reset according to the nonvolatile memory config-
uration.
The function
getchar
reads characters from the console device. When called,
this functions does not return until a character has been received from the
serial port. The character read is returned to the function.
The function
putchar
writes the character
c
from the console device. If the
serial port does not accept the character, the function eventually times out.
The function
KBHit
polls the console device for available characters. If the
receiver indicates a character is available, this function returns TRUE; other-
wise, it returns FALSE.
The function
TxMT
polls the console device if the transmitter can accept
more characters. If the transmitter indicates a character can be sent, this func-
tion returns TRUE; otherwise, it returns FALSE.
The function
ChBaud
modifies the console’s baud rate. The argument
Baud
specifies the new baud rate to use for the port. Because this function accepts
any baud rate, care must be taken to request only those baud rates supported
by the terminal.
SEE ALSO
get_c, put_c, key_c, tx_empty, baud_c
.
Summary of Contents for BajaPPC-750
Page 2: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Page 4: ...BajaPPC 750 PowerPC Based Single Board Computer User s Manual May 2002...
Page 7: ......
Page 19: ...xii BajaPPC 750 Contents...
Page 57: ...3 12 BajaPPC 750 Central Processing Unit May 2002...
Page 77: ...5 12 BajaPPC 750 PMC PCI Interface May 2002...
Page 111: ...6 34 BajaPPC 750 VMEbus Interface May 2002...
Page 135: ...8 18 BajaPPC 750 Serial and Parallel I O May 2002...
Page 207: ...10 68 BajaPPC 750 Monitor May 2002...