/* Indicates polarity of DEN signal on OIS chain..  */
int32_t lsm6dso_aux_den_polarity_set(stmdev_ctx_t *ctx, lsm6dso_den_lh_ois_t val)
/* Indicates polarity of DEN signal on OIS chain..  */
int32_t lsm6dso_aux_den_polarity_set(stmdev_ctx_t *ctx, lsm6dso_den_lh_ois_t val)
{
  lsm6dso_int_ois_t reg;
  int32_t ret;
  ret = lsm6dso_read_reg(ctx, LSM6DSO_INT_OIS, (uint8_t *)&reg, 1);
  if (ret == 0) {
    reg.den_lh_ois = (uint8_t)val;
    ret = lsm6dso_write_reg(ctx, LSM6DSO_INT_OIS, (uint8_t *)&reg, 1);
  }
  return ret;
}