(self, cmd: int, p1: int, p2: int, p3: int = 0, p4: int = 0)
| 115 | return False |
| 116 | |
| 117 | def _long_cmd_write(self, cmd: int, p1: int, p2: int, p3: int = 0, p4: int = 0): |
| 118 | data1 = struct.pack("<H", cmd) |
| 119 | data1 += struct.pack(">HI", p1, p2) |
| 120 | data2 = struct.pack(">II", p3, p4) |
| 121 | log.debug(f'l_cmd_w {0x9d00:#x} {data1.hex()}') |
| 122 | log.debug(f'l_cmd_w {0x1d08:#x} {data2.hex()} ') |
| 123 | self._dev.ctrl_transfer(0x41, 0x45, 0x78, 0x9d00, data1) |
| 124 | self._dev.ctrl_transfer(0x41, 0x45, 0x78, 0x1d08, data2) |
| 125 | self._block_until_camera_ready() |
| 126 | |
| 127 | def _long_cmd_read(self, cmd: int, p1: int, p2: int = 0, p3: int = 0, dataLen: int = 2): |
| 128 | data1 = struct.pack("<H", cmd) |
no test coverage detected