Once you receive a uart interrupt you can call this function to get the received character.
This didn't have a chance to get tested so I hope it works. There is not fancy stuff here, just write to the register and wait till it is done.