Main Page | Modules | Data Structures | File List | Data Fields | Globals

qsm.h File Reference

QSM functions. More...

Go to the source code of this file.

Functions

void sciinit (long baud)
int havebyte (void)
char inbyte (void)
void outbyte (char tx)
int sendingbyte (void)


Detailed Description

This file contains the global function prototypes for QSM support in libqsm.

To use the functions defined in this file, include <68332/qsm.h> and link libqsm.a.


Function Documentation

void sciinit long  baud  ) 
 

Initialize asynchronous serial communications.

Parameters:
baud Baud rate.

int havebyte void   ) 
 

Check if there's a character waiting to be read that has been received via the serial port.

Returns:
Nonzero if there is a character waiting to be read.

char inbyte void   ) 
 

Read a character that has been received via the serial port.

Returns:
The received byte.

void outbyte char  tx  ) 
 

Transmits a character via the serial port.

Parameters:
tx The byte to transmit.

int sendingbyte void   ) 
 

Checks whether the serial port is currently transmitting a byte.

Returns:
Nonzero if the serial port is still transmitting.


Generated on Wed Sep 6 03:02:22 2006 for MotoRobots by doxygen 1.3.6