MCPcopy Create free account
hub / github.com/bitcraze/crazyflie-lib-python / read

Method read

cflib/crazyflie/mem/__init__.py:313–328  ·  view source on GitHub ↗

Read the specified amount of bytes from the given memory at the given address

(self, memory, addr, length)

Source from the content-addressed store, hash-verified

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"""

Callers 15

send_packetMethod · 0.80
receive_packetMethod · 0.80
flashMethod · 0.80
read_geo_dataMethod · 0.80
read_calib_dataMethod · 0.80
read_dataMethod · 0.80
updateMethod · 0.80
_request_pageMethod · 0.80
new_dataMethod · 0.80
updateMethod · 0.80
update_id_listMethod · 0.80
update_active_id_listMethod · 0.80

Calls 2

_ReadRequestClass · 0.85
startMethod · 0.45

Tested by 1

read_dataMethod · 0.64