From 615442c342cde9a69b95af133d90cd2e08568cb0 Mon Sep 17 00:00:00 2001
From: Jan Breuer <jan.breuer@jaybee.cz>
Date: 周二, 04 12月 2012 18:03:06 +0800
Subject: [PATCH] Refactor IEEE488.2 registers to support SRQ

---
 scpi/scpi_error.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/scpi/scpi_error.h b/scpi/scpi_error.h
index 9643054..5d8315e 100644
--- a/scpi/scpi_error.h
+++ b/scpi/scpi_error.h
@@ -37,13 +37,17 @@
 #ifndef SCPI_ERROR_H
 #define	SCPI_ERROR_H
 
+#include "scpi_types.h"
+
 #ifdef	__cplusplus
 extern "C" {
 #endif
-
+    
+    void SCPI_ErrorInit(scpi_t * context);
     void SCPI_ErrorClear(scpi_t * context);
     int16_t SCPI_ErrorPop(scpi_t * context);
     void SCPI_ErrorPush(scpi_t * context, int16_t err);
+    int32_t SCPI_ErrorCount(scpi_t * context);    
     const char * SCPI_ErrorTranslate(int16_t err);
 
 #define SCPI_ERROR_SYNTAX               -102
@@ -54,6 +58,8 @@
 #define SCPI_ERROR_INVALID_SUFFIX       -131
 #define SCPI_ERROR_SUFFIX_NOT_ALLOWED   -138
 
+#define SCPI_ERROR_EXECUTION_ERROR      -200    
+    
 #ifdef	__cplusplus
 }
 #endif

--
Gitblit v1.9.1