/* aOn auxiliary interface connect/disconnect SDO and OCS internal pull-up.  */
int32_t lsm6dso_aux_sdo_ocs_mode_set(lsm6dso_ctx_t *ctx, lsm6dso_ois_pu_dis_t val)
/* aOn auxiliary interface connect/disconnect SDO and OCS internal pull-up.  */
int32_t lsm6dso_aux_sdo_ocs_mode_set(lsm6dso_ctx_t *ctx, lsm6dso_ois_pu_dis_t val)
{
  lsm6dso_pin_ctrl_t reg;
  int32_t ret;
  ret = lsm6dso_read_reg(ctx, LSM6DSO_PIN_CTRL, (uint8_t*)&reg, 1);
  if (ret == 0) {
    reg.ois_pu_dis = (uint8_t)val;
    ret = lsm6dso_write_reg(ctx, LSM6DSO_PIN_CTRL, (uint8_t*)&reg, 1);
  }
  return ret;
}