http://mbed.org/users/elrafapadron/code/HMC5843/#fdab96fc6fff