A CMOS current-mode magnetic Hall sensor with integrated front-end