source/serial_driver.cpp
int32_t SerialPort::receiveChar()
{
	int32_t returnChar = -1;
	if( pgUart->readable() ){
    	returnChar = (int32_t) pgUart->getc();
    }
    return returnChar;
}
// (5) Read a single character from the serial port, returning -1 if no character is read.
// Receive a single character from the serial port.
// Returns -1 if there are no characters, otherwise it
// returns the character (i.e. it can be cast to char).
(5) Read a single character from the serial port, returning -1 if no character is read.
Receive a single character from the serial port.
Returns -1 if there are no characters, otherwise it
returns the character .
( 5 ) Read a single character from the serial port returning - 1 if no character is read . Receive a single character from the serial port . Returns - 1 if there are no characters otherwise it returns the character .
int32_t SerialPort::receiveChar()
{
	int32_t returnChar = -1;
	if( pgUart->readable() ){
    	returnChar = (int32_t) pgUart->getc();
    }
    return returnChar;
}
int32_t SerialPort :: receiveChar ( ) { int32_t returnChar = -1 ; if ( pgUart -> readable ( ) ) { returnChar = ( int32_t ) pgUart -> getc ( ) ; } return returnChar ; }
(5) Read a single character from the serial port, returning -1 if no character is read.
( 5 ) Read a single character from the serial port returning - 1 if no character is read .