Apart from the simple type cast and the "shift" (subtraction of 2048) - having values from -2048...+2047 representing all-positive ADC values and voltages is a bit dubious. That would fit to truly differential ADCs. However, you need to keep track of your ideas, and be able to read and understand your code later on.
↧