sorry is is the CY8C29466-24PXI or another can do.
Using a SC/ST block by switching fets you can effect a programmable
R. If goal is to vary a voltage of course DAC, PGA also possibilties. As
well as PWM control of an output.
Some reference material -