analog read with mapping and total regs size parameter