/* 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_set(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_set(stmdev_ctx_t *ctx, int16_t val)
{
  uint8_t buff[2];
  int32_t ret;
  buff[1] = (uint8_t) ((uint16_t)val / 256U);
  buff[0] = (uint8_t) ((uint16_t)val - (buff[1] * 256U));
  ret =  lps22hh_write_reg(ctx, LPS22HH_RPDS_L, buff, 2);
  return ret;
}