distortos  v0.7.0
object-oriented C++ RTOS for microcontrollers
distortos::chip::anonymous_namespace{STM32-USARTv1-ChipUartLowLevel.cpp} Namespace Reference

Functions

devices::UartBase::ErrorSet decodeErrors (const uint32_t sr)
 Decode value of USART_SR register to devices::UartBase::ErrorSet. More...
 

Function Documentation

◆ decodeErrors()

devices::UartBase::ErrorSet distortos::chip::anonymous_namespace{STM32-USARTv1-ChipUartLowLevel.cpp}::decodeErrors ( const uint32_t  sr)

Decode value of USART_SR register to devices::UartBase::ErrorSet.

Parameters
[in]sris the value of USART_SR register that will be decoded
Returns
devices::UartBase::ErrorSet with errors decoded from sr
Here is the caller graph for this function: