/* param base TDET peripheral base address param mask Bit mask for the flag bits to be cleared. Use tdet_status_flag_t to encode flags. return kStatus_Fail when Status Register writing is not allowed return kStatus_Success when mask is written to the Status Register  */
status_t TDET_ClearStatusFlags(DIGTMP_Type *base, uint32_t mask)
/* param base TDET peripheral base address param mask Bit mask for the flag bits to be cleared. Use tdet_status_flag_t to encode flags. return kStatus_Fail when Status Register writing is not allowed return kStatus_Success when mask is written to the Status Register  */
status_t TDET_ClearStatusFlags(DIGTMP_Type *base, uint32_t mask)
{
    status_t status;
    if (tdet_IsRegisterWriteAllowed(base, DIGTMP_LR_SRL_MASK))
    {
        base->SR = mask;
        status   = kStatus_Success;
    }
    else
    {
        status = kStatus_Fail;
    }
    return status;
}