This is usually done by simply checking the range of the input argument, so in the case of the Uno the analogRead() function would have something along the lines of ...
AnalogPin is an Arduino class that adds noise filtering and smoothing to analogRead(). Furthermore it can speed up the analogRead() function by tuning the pre-scaler. This latter is AVR only.
One of the great things about the Arduino environment is that it covers a wide variety of hardware with a common interface. Importantly, this isn’t just about language, but also about abstracting away ...