The dwSensorIMU_processRawData() and dwSensorIMU_popFrame() functions can be used to parse raw sensor data and read the measurements in the dwIMUFrame format. dwSensorIMU_processRawData() copies parsed data, therefore the raw data can be returned after the call.
The following code shows the general structure of a program reading raw data from a sensor, serializing it and parsing it.
For more details see Simple Sensor Recording Sample