/* If ‘1’ indicates that the Boot (Reboot) phase is running..  */
int32_t lps22hb_boot_status_get(stmdev_ctx_t *ctx, uint8_t *val)
/* If ‘1’ indicates that the Boot (Reboot) phase is running..  */
int32_t lps22hb_boot_status_get(stmdev_ctx_t *ctx, uint8_t *val)
{
  lps22hb_int_source_t int_source;
  int32_t ret;
  ret = lps22hb_read_reg(ctx, LPS22HB_INT_SOURCE, (uint8_t*)&int_source, 1);
  *val = int_source.boot_status;
  return ret;
}