/* Check whether the specified SPI flag is set or not.  */
flag_status_t ald_spi_get_flag_status(ald_spi_handle_t *hperh, ald_spi_flag_t flag)
/* Check whether the specified SPI flag is set or not.  */
flag_status_t ald_spi_get_flag_status(ald_spi_handle_t *hperh, ald_spi_flag_t flag)
{
    assert_param(IS_SPI(hperh->perh));
    assert_param(IS_SPI_IF(flag));
    if (hperh->perh->RIF & flag)
        return SET;
    return RESET;
}