Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 6 months ago.
detect errors
Is there a public function that detects a parity check error or framing error? If not, I want you to implement this feature.
Question relating to:
1 Answer
10 years, 6 months ago.
There is no API method to do this. It could be added but don't hold your breath.
Most uarts are fairly standard so while you should check the manual for the correct CPU the chances are once you know which UART you are using you can look in the appropriate LSR register and get the full status information.
You could then either poll that on a ticker or set up an interrupt based on it.
You can always create your own class that inherits the mbed Serial class and adds this functionality if you want a clean implementation at the top level.