/* The pressure offset value is 16-bit data that can be used to implement one-point calibration (OPC) after soldering..  */
int32_t lps22hh_pressure_offset_get(stmdev_ctx_t *ctx, int16_t *val)
/* The pressure offset value is 16-bit data that can be used to implement one-point calibration (OPC) after soldering..  */
int32_t lps22hh_pressure_offset_get(stmdev_ctx_t *ctx, int16_t *val)
{
  uint8_t buff[2];
  int32_t ret;
  ret =  lps22hh_read_reg(ctx, LPS22HH_RPDS_L, buff, 2);
  *val = (int16_t)buff[1];
  *val = (*val * 256) + (int16_t)buff[0];
  return ret;
}