Digital/Analog voltage conversion and switching
For digital signals - Voltage divider + zener
For analog signals - Inverting OpAmp (a non inverting Op amp cannot attenuate)
You can then "correct" the inversion by firmware or by SW, or you could use a voltage divider followed by a unity gain non inverting op amp.