Go to the source code of this file.
Functions | |
int | Serial_SetActive (int index, int state) |
Set the active state of a serial port. | |
bool | Serial_GetActive (int index) |
Read the active state of the Serial subsystem. | |
int | Serial_Write (int index, uchar *buffer, int count, int timeout) |
Write a block of data to the Serial port. | |
int | Serial_Read (int index, uchar *buffer, int size, int timeout) |
Read data from the Serial port. | |
int | Serial_GetReadable (int index) |
Returns the number of bytes in the queue waiting to be read. | |
int | Serial_SetChar (int index, int character) |
Sends a character (in the range of 0 to 255) to the write queue. | |
int | Serial_SetBaud (int index, int baud) |
Sets the serial baud rate. | |
int | Serial_SetBits (int index, int bits) |
Sets the number of bits per character. | |
int | Serial_SetParity (int index, int parity) |
Sets the parity. | |
int | Serial_SetStopBits (int index, int stopBits) |
Sets the stop bits per character. | |
int | Serial_SetHardwareHandshake (int index, int hardwareHandshake) |
Sets whether hardware handshaking is being used. | |
int | Serial_GetChar (int index) |
Returns a single character from the receive queue if available. | |
int | Serial_GetBaud (int index) |
Returns the current baud rate. | |
int | Serial_GetBits (int index) |
Returns the number of bits for each character. | |
int | Serial_GetParity (int index) |
Returns the current parity. | |
int | Serial_GetStopBits (int index) |
Returns the number of stop bits. | |
int | Serial_GetHardwareHandshake (int index) |
Returns whether hardware handshaking is being employed or not. | |
void | Serial_Flush (int index) |
Clear out the serial port. | |
void | Serial_ClearErrors (int index) |
Reset the error flags in the serial system. | |
bool | Serial_GetErrors (int index, bool *overrun, bool *frame, bool *parity) |
Read whether there are any errors. | |
void | Serial_StartBreak (int index) |
Start the transimission of a break. | |
void | Serial_StopBreak (int index) |
Stop the transimission of a break. |
Definition in file serial.c.