/* Enable timestamp count. The count is saved in TIMESTAMP0_REG (40h), TIMESTAMP1_REG (41h) and TIMESTAMP2_REG (42h)..  */
int32_t lsm6dsl_timestamp_get(stmdev_ctx_t *ctx, uint8_t *val)
/* Enable timestamp count. The count is saved in TIMESTAMP0_REG (40h), TIMESTAMP1_REG (41h) and TIMESTAMP2_REG (42h)..  */
int32_t lsm6dsl_timestamp_get(stmdev_ctx_t *ctx, uint8_t *val)
{
  lsm6dsl_ctrl10_c_t ctrl10_c;
  int32_t ret;
  ret = lsm6dsl_read_reg(ctx, LSM6DSL_CTRL10_C, (uint8_t*)&ctrl10_c, 1);
  *val = ctrl10_c.timer_en;
  return ret;
}