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)
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)
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)
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)
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)
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)
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)
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)