rewriting of magnetometer module driver.