/* param base TDET peripheral base address param activeTamperConfig Pointer to structure with active tamper register parameters param activeTamperRegisterSelect Bit mask for active tamper registers to be configured. The passed value is combination of tdet_active_tamper_register_t values (OR'ed). return kStatus_Fail when writing to TDET Active Tamper Register(s) is not allowed return kStatus_Success when operation completes successfully  */
status_t TDET_ActiveTamperSetConfig(DIGTMP_Type *base, const tdet_active_tamper_config_t *activeTamperConfig, uint32_t activeTamperRegisterSelect)
/* param base TDET peripheral base address param activeTamperConfig Pointer to structure with active tamper register parameters param activeTamperRegisterSelect Bit mask for active tamper registers to be configured. The passed value is combination of tdet_active_tamper_register_t values (OR'ed). return kStatus_Fail when writing to TDET Active Tamper Register(s) is not allowed return kStatus_Success when operation completes successfully  */
status_t TDET_ActiveTamperSetConfig(DIGTMP_Type *base, const tdet_active_tamper_config_t *activeTamperConfig, uint32_t activeTamperRegisterSelect)
{
    uint32_t mask;
    status_t status;
    uint32_t i, j;
    mask   = 1u;
    status = kStatus_Success;
    j      = ARRAY_SIZE(base->ATR);
    for (i = 0; i < j; i++)
    {
        if ((activeTamperRegisterSelect & mask) != 0U)
        {
            status = tdet_ActiveTamperConfigure(base, activeTamperConfig, i);
            if (status != kStatus_Success)
            {
                break;
            }
        }
        mask = mask << 1u;
    }
    return status;
}