/* Software reset. Restore the default values in user registers..  */
int32_t lsm6dso_reset_get(lsm6dso_ctx_t *ctx, uint8_t *val)
/* Software reset. Restore the default values in user registers..  */
int32_t lsm6dso_reset_get(lsm6dso_ctx_t *ctx, uint8_t *val)
{
  lsm6dso_ctrl3_c_t reg;
  int32_t ret;
  ret = lsm6dso_read_reg(ctx, LSM6DSO_CTRL3_C, (uint8_t*)&reg, 1);
  *val = reg.sw_reset;
  return ret;
}