The Magnetometer (MAG) is a part of the Particles and Fields (P & F) Package and measures interplanetary solar wind and ionospheric magnetic fields.
+
Image Credit: NASA/JPL-Caltech