Hi tomporon,
You could refer example code "https://github.com/BoschSensortec/BoschSensorHub/blob/master/examples/orientation/orientation.ino", enable virtual sensor ID BHY_VS_ACCELEROMETER, BHY_VS_GYROSCOPE, and get accel, gyro RAW in callback function.
... View more