I have a function that I copied from the internet to return the temperature from a MAX6675. I don't understand what the return line is doing to the value obtained from the spi.
return((int)(temp_reading >> 5));
Is it converting the variable temp_reading to an int? then what does the >> 5 do to the variable temp_reading?