/* The minimum duration (LSb = 1/ODR) of the Interrupt 1 event to be recognized..  */
int32_t lis2dh12_int1_gen_duration_get(stmdev_ctx_t *ctx, uint8_t *val)
/* The minimum duration (LSb = 1/ODR) of the Interrupt 1 event to be recognized..  */
int32_t lis2dh12_int1_gen_duration_get(stmdev_ctx_t *ctx, uint8_t *val)
{
  lis2dh12_int1_duration_t int1_duration;
  int32_t ret;
  ret = lis2dh12_read_reg(ctx, LIS2DH12_INT1_DURATION,
                          (uint8_t *)&int1_duration, 1);
  *val = (uint8_t)int1_duration.d;
  return ret;
}