serialposix.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:microbit-gateway 作者: whaleygeek 项目源码 文件源码
def flowControlOut(self, enable):
        """\
        Manually control flow of outgoing data - when hardware or software flow
        control is enabled.
        WARNING: this function is not portable to different platforms!
        """
        if not self._isOpen: raise portNotOpenError
        if enable:
            termios.tcflow(self.fd, TERMIOS.TCOON)
        else:
            termios.tcflow(self.fd, TERMIOS.TCOOFF)


# assemble Serial class with the platform specifc implementation and the base
# for file-like behavior. for Python 2.6 and newer, that provide the new I/O
# library, derrive from io.RawIOBase
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号