/* Get the status of interrupt flag and interupt source.  */
flag_status_t ald_uart_get_mask_flag_status(ald_uart_handle_t *hperh, ald_uart_flag_t flag)
/* Get the status of interrupt flag and interupt source.  */
flag_status_t ald_uart_get_mask_flag_status(ald_uart_handle_t *hperh, ald_uart_flag_t flag)
{
    assert_param(IS_UART_ALL(hperh->perh));
    assert_param(IS_UART_IF(flag));
    if (hperh->perh->IFM & flag)
        return SET;
    return RESET;
}