Looking for code for mpu-9250 using SPI

I am looking for code that uses SPI to get magnetometer data from an mpu-9250. My SPI code to read an MPU-6500 accelerometer/gyro/temperature is at www.cs.cmu.edu/~cga/arduino/mpu6500-spi.ino www.cs.cmu.edu/~cga/arduino/MPU6500.h

@cgacga - multiple cross posts deleted. They costs extra time for everyone as people do not see the answers of the other threads. - created a separate thread of your question