MCPcopy
hub / github.com/commaai/openpilot / write

Method write

system/sensord/sensors/i2c_sensor.py:27–28  ·  view source on GitHub ↗
(self, addr: int, data: int)

Source from the content-addressed store, hash-verified

25 return bytes(self.bus.read_i2c_block_data(self.device_address, addr, length))
26
27 def write(self, addr: int, data: int) -> None:
28 self.bus.write_byte_data(self.device_address, addr, data)
29
30 def writes(self, writes: Iterable[tuple[int, int]]) -> None:
31 for addr, data in writes:

Callers 15

writesMethod · 0.95
installFunction · 0.80
wheel_poll_threadFunction · 0.80
prune_cacheFunction · 0.80
get_lengthMethod · 0.80
readMethod · 0.80
mainFunction · 0.80
do_GETMethod · 0.80
save_logFunction · 0.80
api_callFunction · 0.80
cmd_downloadFunction · 0.80
test_only_union_typesMethod · 0.80

Calls 1

write_byte_dataMethod · 0.80

Tested by 15

test_only_union_typesMethod · 0.64
test_prune_cacheMethod · 0.64
setup_methodMethod · 0.64
_make_commitMethod · 0.64
test_clear_neos_cacheMethod · 0.64
test_bootlogMethod · 0.64
create_random_fileFunction · 0.64
_create_fileMethod · 0.64
_generate_keysMethod · 0.64
test_valid_cacheMethod · 0.64
update_releaseFunction · 0.64
setup_classMethod · 0.64