summaryrefslogtreecommitdiff
path: root/gpib.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-12-07 15:13:02 -0500
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-12-07 15:13:02 -0500
commit4985de53421e6e9e9fa6f11f42918de76f141f54 (patch)
treef18699efd8137feae18499311a5b3a5e8d7cd345 /gpib.c
parentec3a5e6b3b28184ea7075c6de9d3e95ae37a7c4c (diff)
flag VXI service requests, rename STB function
Diffstat (limited to 'gpib.c')
-rw-r--r--gpib.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gpib.c b/gpib.c
index 6471373..b3f07db 100644
--- a/gpib.c
+++ b/gpib.c
@@ -295,8 +295,10 @@ void TNT_4882_Status(int status_register,unsigned int byte,int operation)
set_srq = (MR_4882_status[STB]&MR_4882_status[SRE])? TRUE : FALSE;
if(set_srq) { // If SRQ desired
+ globals.Remote.vxi_service_request = 1;
TNT_Out(R_auxmr,F_reqt); // Set request true
} else {
+ globals.Remote.vxi_service_request = 0;
TNT_Out(R_auxmr,F_reqf); // Set request false
}
@@ -977,7 +979,7 @@ unsigned int GPIB_get_ESE ()
}
-unsigned int GPIB_get_STB ()
+unsigned int GPIB_and_VXI_get_STB ()
{
if (!globals.HWDetect.gpib) {
return 0;