/* HPF or SLOPE filter selection on wake-up and Activity/Inactivity functions..  */
int32_t lsm6dso_xl_hp_path_internal_set(stmdev_ctx_t *ctx, lsm6dso_slope_fds_t val)
/* HPF or SLOPE filter selection on wake-up and Activity/Inactivity functions..  */
int32_t lsm6dso_xl_hp_path_internal_set(stmdev_ctx_t *ctx, lsm6dso_slope_fds_t val)
{
  lsm6dso_tap_cfg0_t reg;
  int32_t ret;
  ret = lsm6dso_read_reg(ctx, LSM6DSO_TAP_CFG0, (uint8_t *)&reg, 1);
  if (ret == 0) {
    reg.slope_fds = (uint8_t)val;
    ret = lsm6dso_write_reg(ctx, LSM6DSO_TAP_CFG0, (uint8_t *)&reg, 1);
  }
  return ret;
}