/* Selects Batching Data Rate (writing frequency in FIFO) for temperature data..  */
int32_t lsm6dso_fifo_temp_batch_set(lsm6dso_ctx_t *ctx, lsm6dso_odr_t_batch_t val)
/* Selects Batching Data Rate (writing frequency in FIFO) for temperature data..  */
int32_t lsm6dso_fifo_temp_batch_set(lsm6dso_ctx_t *ctx, lsm6dso_odr_t_batch_t val)
{
  lsm6dso_fifo_ctrl4_t reg;
  int32_t ret;
  ret = lsm6dso_read_reg(ctx, LSM6DSO_FIFO_CTRL4, (uint8_t*)&reg, 1);
  if (ret == 0) {
    reg.odr_t_batch = (uint8_t)val;
    ret = lsm6dso_write_reg(ctx, LSM6DSO_FIFO_CTRL4, (uint8_t*)&reg, 1);
  }
  return ret;
}