Exemplo n.º 1
0
 def getRI(self):
     """
     Read terminal status line: Ring Indicator
     """
     if not self.hComPort:
         raise portNotOpenError
     return MS_RING_ON & win32file.GetCommModemStatus(self.hComPort) != 0
Exemplo n.º 2
0
 def getCTS(self):
     """
     Read terminal status line: Clear To Send
     """
     if not self.hComPort:
         raise portNotOpenError
     return MS_CTS_ON & win32file.GetCommModemStatus(self.hComPort) != 0
Exemplo n.º 3
0
 def getDSR(self):
     """
     Read terminal status line: Data Set Ready
     """
     if not self.hComPort:
         raise portNotOpenError
     return MS_DSR_ON & win32file.GetCommModemStatus(self.hComPort) != 0
Exemplo n.º 4
0
 def getCD(self):
     """
     Read terminal status line: Carrier Detect
     """
     if not self.hComPort:
         raise portNotOpenError
     return MS_RLSD_ON & win32file.GetCommModemStatus(self.hComPort) != 0