Comparator circuit with hysteresis window adjustment + offset?
Here is a simple idea, which is maybe stupid. But basically the idea is to cause the reference input to drop instead of causing the signal input to rise. Then it should be just a matter of controlling two dividers:







simulate this circuit &ndash; Schematic created using CircuitLab

This has some obvious problems. Like there is going to be a switching delay. Which may make it entirely unsuitable for your purpose. I haven't simulated or tested this in any way. But I don't actually know what you want to do other than control the two values.