/* High when the gyroscope output is in the settling phase..  */
int32_t lsm6dso_aux_gy_flag_settling_get(lsm6dso_ctx_t *ctx, uint8_t *val)
/* High when the gyroscope output is in the settling phase..  */
int32_t lsm6dso_aux_gy_flag_settling_get(lsm6dso_ctx_t *ctx, uint8_t *val)
{
  lsm6dso_status_spiaux_t reg;
  int32_t ret;
  ret = lsm6dso_read_reg(ctx, LSM6DSO_STATUS_SPIAUX, (uint8_t*)&reg, 1);
  *val = reg.gyro_settling;
  return ret;
}