function SerialPort_InputReady: boolean;
The SerialPort_InputReady function may be used to check if a start condition is present to call the SeialPort_Input receive function.
Contrary to the HW SerialPort_InputReady function which tells that a character has been received, here it tells that a character seems to be incoming.
Some attention shall be given regarding the SerialPort_InputReady polling period: It have to be done at a period less than half a bit period to have reliable communications.