/* Temperature data output register (r). L and H registers together express a 16-bit word in two’s complement..  */
int32_t lsm6dso_temperature_raw_get(stmdev_ctx_t *ctx, int16_t *val)
/* Temperature data output register (r). L and H registers together express a 16-bit word in two’s complement..  */
int32_t lsm6dso_temperature_raw_get(stmdev_ctx_t *ctx, int16_t *val)
{
  uint8_t buff[2];
  int32_t ret;
  ret = lsm6dso_read_reg(ctx, LSM6DSO_OUT_TEMP_L, buff, 2);
  val[0] = (int16_t)buff[1];
  val[0] = (val[0] * 256) + (int16_t)buff[0];
  return ret;
}