LT8228 analog device automatically detects the direction of power flow so the direction can be externally controlled. MOSFETs protect against negative voltages in input and output functions.

LT8228 volt booter