Returns the Y axis rotational velocity in degrees per second at the time of the last read().
Where Imu is the name you have given to the device in Project Designer.
Assuming you have called the sensor 'myIMU' in Project Designer you can dump the value to the standard output device as follows:
GYRO_TYPE x = myIMU.getX();
GYRO_TYPE y = myIMU.getY();
GYRO_TYPE z = myIMU.getZ();
cout << "X=" << x << " Y=" << y << " Z=" << z;