serialwin32.py 文件源码

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

项目:mt7687-serial-uploader 作者: will127534 项目源码 文件源码
def set_output_flow_control(self, enable=True):
        """\
        Manually control flow - when software flow control is enabled.
        This will do the same as if XON (true) or XOFF (false) are received
        from the other device and control the transmission accordingly.
        WARNING: this function is not portable to different platforms!
        """
        if not self.is_open:
            raise portNotOpenError
        if enable:
            win32.EscapeCommFunction(self._port_handle, win32.SETXON)
        else:
            win32.EscapeCommFunction(self._port_handle, win32.SETXOFF)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号