/* Checks whether the specified CRS flag is set or not.  */
uint8_t CRS_ReadStatusFlag(CRS_FLAG_T flag)
/* Checks whether the specified CRS flag is set or not.  */
uint8_t CRS_ReadStatusFlag(CRS_FLAG_T flag)
{
    uint32_t status;
    status = (uint32_t)(CRS->INTSTS & flag);
    if (status == flag)
    {
        return SET;
    }
    return RESET;
}