ftd2xx.py 文件源码

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

项目:crescendo 作者: AriaFallah 项目源码 文件源码
def read(self, nchars, raw=True):
        """Read up to nchars bytes of data from the device. Can return fewer if
        timedout. Use getQueueStatus to find how many bytes are available"""
        b_read = _ft.DWORD()
        b = c.c_buffer(nchars)
        call_ft(_ft.FT_Read, self.handle, b, nchars, c.byref(b_read))
        return b.raw[:b_read.value] if raw else b.value[:b_read.value]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号