Read the specified amount of bytes from the given memory at the given address
(self, memory, addr, length)
| 311 | return True |
| 312 | |
| 313 | def read(self, memory, addr, length): |
| 314 | """ |
| 315 | Read the specified amount of bytes from the given memory at the given |
| 316 | address |
| 317 | """ |
| 318 | if memory.id in self._read_requests: |
| 319 | logger.warning('There is already a read operation ongoing for ' |
| 320 | 'memory id {}'.format(memory.id)) |
| 321 | return False |
| 322 | |
| 323 | rreq = _ReadRequest(memory, addr, length, self.cf) |
| 324 | self._read_requests[memory.id] = rreq |
| 325 | |
| 326 | rreq.start() |
| 327 | |
| 328 | return True |
| 329 | |
| 330 | def refresh(self, refresh_done_callback): |
| 331 | """Start fetching all the detected memories""" |