コード例 #1
0
ファイル: ctb.py プロジェクト: stahta01/wxCode_components
 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)
コード例 #2
0
ファイル: ctb.py プロジェクト: stahta01/wxCode_components
 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)
コード例 #3
0
ファイル: ctb.py プロジェクト: stahta01/wxCode_components
 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)
コード例 #4
0
ファイル: ctb.py プロジェクト: stahta01/wxCode_components
 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)
コード例 #5
0
ファイル: ctb.py プロジェクト: stahta01/wxCode_components
 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)
コード例 #6
0
ファイル: ctb.py プロジェクト: stahta01/wxCode_components
 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)
コード例 #7
0
ファイル: ctb.py プロジェクト: stahta01/wxCode_components
 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)
コード例 #8
0
ファイル: ctb.py プロジェクト: stahta01/wxCode_components
 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)