/* Wake up duration event.1LSb = 1 / ODR.  */
int32_t lsm6dsl_wkup_dur_get(stmdev_ctx_t *ctx, uint8_t *val)
/* Wake up duration event.1LSb = 1 / ODR.  */
int32_t lsm6dsl_wkup_dur_get(stmdev_ctx_t *ctx, uint8_t *val)
{
  lsm6dsl_wake_up_dur_t wake_up_dur;
  int32_t ret;
  ret = lsm6dsl_read_reg(ctx, LSM6DSL_WAKE_UP_DUR, (uint8_t*)&wake_up_dur, 1);
  *val = wake_up_dur.wake_dur;
  return ret;
}