Esempio n. 1
0
 def GetSTB(self):
     """
     Returns the value of the internal GPIB status byte register.
     """
     stb = wxctb.new_intp()
     wxctb.intp_assign(stb, 0)
     self.device.Ioctl(wxctb.CTB_GPIB_GETRSP,stb)
     return wxctb.intp_value(stb)
Esempio n. 2
0
 def GetSTB(self):
     """
     Returns the value of the internal GPIB status byte register.
     """
     stb = wxctb.new_intp()
     wxctb.intp_assign(stb, 0)
     self.device.Ioctl(wxctb.CTB_GPIB_GETRSP, stb)
     return wxctb.intp_value(stb)
Esempio n. 3
0
 def GetAvailableBytes(self):
     """
     Returns the available bytes in the input queue of the serial
     driver.
     """
     n = wxctb.new_intp()
     wxctb.intp_assign(n, 0)
     self.device.Ioctl(wxctb.CTB_SER_GETINQUE,n)
     return wxctb.intp_value(n)
Esempio n. 4
0
 def GetAvailableBytes(self):
     """
     Returns the available bytes in the input queue of the serial
     driver.
     """
     n = wxctb.new_intp()
     wxctb.intp_assign(n, 0)
     self.device.Ioctl(wxctb.CTB_SER_GETINQUE, n)
     return wxctb.intp_value(n)
Esempio n. 5
0
 def GetEosMode(self):
     """
     Get the internal EOS mode (see SetEosMode).
     For example:
     g = wxGPIB()
     g.Open(\"gpib1\",1)
     eos = g.GetEosMode()
     """
     mode = wxctb.new_intp()
     wxctb.intp_assign(mode, 0)
     self.device.Ioctl(wxctb.CTB_GPIB_GET_EOS_MODE,mode)
     return wxctb.intp_value(mode)
Esempio n. 6
0
 def GetEosChar(self):
     """
     Get the internal EOS termination character (see SetEosChar).
     For example:
     g = wxGPIB()
     g.Open(\"gpib1\",1)
     eos = g.GetEosChar()
     """
     eos = wxctb.new_intp()
     wxctb.intp_assign(eos, 0)
     self.device.Ioctl(wxctb.CTB_GPIB_GET_EOS_CHAR,eos)
     return wxctb.intp_value(eos)
Esempio n. 7
0
 def GetEosMode(self):
     """
     Get the internal EOS mode (see SetEosMode).
     For example:
     g = wxGPIB()
     g.Open(\"gpib1\",1)
     eos = g.GetEosMode()
     """
     mode = wxctb.new_intp()
     wxctb.intp_assign(mode, 0)
     self.device.Ioctl(wxctb.CTB_GPIB_GET_EOS_MODE, mode)
     return wxctb.intp_value(mode)
Esempio n. 8
0
 def GetEosChar(self):
     """
     Get the internal EOS termination character (see SetEosChar).
     For example:
     g = wxGPIB()
     g.Open(\"gpib1\",1)
     eos = g.GetEosChar()
     """
     eos = wxctb.new_intp()
     wxctb.intp_assign(eos, 0)
     self.device.Ioctl(wxctb.CTB_GPIB_GET_EOS_CHAR, eos)
     return wxctb.intp_value(eos)