Simple question really, I just want to be sure that I understand it correctly. I understand this isn't necessarily Arduino specific.
With regards to the ATmega2560 I'm doing 3 back-to-back A/D conversions - one immediately after the previous finishes. I'm accomplishing this by calling a Single Conversion each time.
I stumbled across this useful code to wait for the conversion to finish:
while(ADCSRA & (1<<ADSC))
I understand that it is waiting for the conversion to finish and that when this is done the ADSC will be set to 0. (Conversely, I could wait for ADIF to be set to 1.) I'm not as clear on how exactly this line is interpreted.
Normally when I see something along the lines of
(1<<ADSC) it means write a 1 to the ADSC bit.
But, in this instance, that isn't the case.
Why not just write: