/* param base TDET peripheral base address param mask Bit mask for the tamper enable bits to be cleared. return kStatus_Fail when Tamper Enable Register writing is not allowed return kStatus_Success when specified bits are cleared in the Tamper Enable Register  */
status_t TDET_DisableTampers(DIGTMP_Type *base, uint32_t mask)
/* param base TDET peripheral base address param mask Bit mask for the tamper enable bits to be cleared. return kStatus_Fail when Tamper Enable Register writing is not allowed return kStatus_Success when specified bits are cleared in the Tamper Enable Register  */
status_t TDET_DisableTampers(DIGTMP_Type *base, uint32_t mask)
{
    status_t status;
    mask = mask & TDET_ALL_TER_MASK;
    if (tdet_IsRegisterWriteAllowed(base, DIGTMP_LR_TEL_MASK))
    {
        base->TER &= ~mask;
        status = kStatus_Success;
    }
    else
    {
        status = kStatus_Fail;
    }
    return status;
}