/* Software reset. Restore the default values in user registers..  */
int32_t lps22hh_reset_get(stmdev_ctx_t *ctx, uint8_t *val)
/* Software reset. Restore the default values in user registers..  */
int32_t lps22hh_reset_get(stmdev_ctx_t *ctx, uint8_t *val)
{
  lps22hh_ctrl_reg2_t reg;
  int32_t ret;
  ret = lps22hh_read_reg(ctx, LPS22HH_CTRL_REG2, (uint8_t *) &reg, 1);
  *val = reg.swreset;
  return ret;
}