Python termios.tcsendbreak() Examples

The following are 7 code examples of termios.tcsendbreak(). You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may also want to check out all available functions/classes of the module termios , or try the search function .
Example #1
Source File: serialposix.py    From ddt4all with GNU General Public License v3.0 5 votes vote down vote up
def send_break(self, duration=0.25):
        """\
        Send break condition. Timed, returns to idle state after given
        duration.
        """
        if not self.is_open:
            raise portNotOpenError
        termios.tcsendbreak(self.fd, int(duration / 0.25)) 
Example #2
Source File: serialposix.py    From Jandroid with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def sendBreak(self, duration=0.25):
        """Send break condition. Timed, returns to idle state after given duration."""
        if not self._isOpen: raise portNotOpenError
        termios.tcsendbreak(self.fd, int(duration/0.25)) 
Example #3
Source File: serialposix.py    From Jandroid with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def sendBreak(self, duration=0.25):
        """Send break condition. Timed, returns to idle state after given duration."""
        if not self._isOpen: raise portNotOpenError
        termios.tcsendbreak(self.fd, int(duration/0.25)) 
Example #4
Source File: serialposix.py    From Jandroid with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
def sendBreak(self, duration=0.25):
        """Send break condition. Timed, returns to idle state after given duration."""
        if not self._isOpen: raise portNotOpenError
        termios.tcsendbreak(self.fd, int(duration/0.25)) 
Example #5
Source File: serialposix.py    From AstroBox with GNU Affero General Public License v3.0 5 votes vote down vote up
def sendBreak(self, duration=0.25):
        """Send break condition. Timed, returns to idle state after given duration."""
        if not self._isOpen: raise portNotOpenError
        termios.tcsendbreak(self.fd, int(duration/0.25)) 
Example #6
Source File: serialposix.py    From android3dblendermouse with Apache License 2.0 5 votes vote down vote up
def send_break(self, duration=0.25):
        """\
        Send break condition. Timed, returns to idle state after given
        duration.
        """
        if not self.is_open:
            raise portNotOpenError
        termios.tcsendbreak(self.fd, int(duration / 0.25)) 
Example #7
Source File: serialposix.py    From android_universal with MIT License 5 votes vote down vote up
def send_break(self, duration=0.25):
        """\
        Send break condition. Timed, returns to idle state after given
        duration.
        """
        if not self.is_open:
            raise portNotOpenError
        termios.tcsendbreak(self.fd, int(duration / 0.25))