Assuming I can feed the box with 4 wires ( red-hot, black-hot, white-neutral and green-ground) what is the proper way to split this into a 120v and a 220v circuit?

Is this code? My feedline will be 10/4 SJO cable with a twist lock plug to fit the outlet available (different outlets depending on where I use this). The 220v side will be running at about 13 amps max, the 120 side at less then 2 amps. If I have access to 220v 30A the 120v circuit will be using more like 12A.