/* Reference value for interrupt generation. LSB = ~16@2g / ~31@4g / ~63@8g / ~127@16g.  */
int32_t lis2dh12_filter_reference_get(stmdev_ctx_t *ctx, uint8_t *buff)
/* Reference value for interrupt generation. LSB = ~16@2g / ~31@4g / ~63@8g / ~127@16g.  */
int32_t lis2dh12_filter_reference_get(stmdev_ctx_t *ctx, uint8_t *buff)
{
  int32_t ret;
  ret = lis2dh12_read_reg(ctx, LIS2DH12_REFERENCE, buff, 1);
  return ret;
}