/* param base TDET peripheral base address return kStatus_Fail when writing to TDET Control Register is not allowed return kStatus_Success when operation completes successfully  */
status_t TDET_SoftwareReset(DIGTMP_Type *base)
/* param base TDET peripheral base address return kStatus_Fail when writing to TDET Control Register is not allowed return kStatus_Success when operation completes successfully  */
status_t TDET_SoftwareReset(DIGTMP_Type *base)
{
    status_t retval = kStatus_Fail;
    if (tdet_IsRegisterWriteAllowed(base, DIGTMP_LR_CRL_MASK))
    {
        base->CR = DIGTMP_CR_SWR_MASK;
        retval   = kStatus_Success;
    }
    else
    {
        retval = kStatus_Fail;
    }
    return retval;
}