esptool.py 文件源码

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

项目:iot 作者: akademikbilisim 项目源码 文件源码
def read_reg(self, addr):
        # we don't call check_command here because read_reg() function is called
        # when detecting chip type, and the way we check for success (STATUS_BYTES_LENGTH) is different
        # for different chip types (!)
        val, data = self.command(self.ESP_READ_REG, struct.pack('<I', addr))
        if byte(data, 0) != 0:
            raise FatalError.WithResult("Failed to read register address %08x" % addr, data)
        return val
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号