Hi Urik,
As part of the SDK_2_10_0_FRDM-K64F-AGM01, which can be downloaded from the MCUXpresso SDK Builder website, the following examples are available:

I am not an author of those examples, but I assume that the sensor fusion example marked in green provides raw data from an accelerometer, magnetometer and gyroscope. If not, you can take a look at this example code that illustrates how to initialize the FXOS8700CQ in hybrid mode to read both the accel and mag data as well as the raw gyro data from the FXAS21002C.
Best regards,
Tomas