# RUI UART Configure Mode

RUI_RETURN_STATUS rui_uart_mode_config(RUI_UART_DEF uart_def,RUI_UART_MODE uart_mode);
@brief This API is used to configure uart work mode.
@return RUI_RETURN_STATUS
@param RUI_UART_DEF uart_def: the instance of UART.
RUI_UART_MODE uart_mode: value for RUI_UART_NORMAL, RUI_UART_UNVARNISHED.
@module RAK811, RAK4200, RAK4400, RAK4600, and RAK5010.