Skip to content

Commit

Permalink
FW: ToF custom HW sync, add RPC readCcmEepromRaw - usage:
Browse files Browse the repository at this point in the history
```
with dai.Device() as device:
    data = device.readCcmEepromRaw(dai.CameraBoardSocket.CAM_A, 64*1024)
    np.frombuffer(bytearray(data)).tofile('ccm_eeprom.bin')
```
  • Loading branch information
alex-luxonis committed Jul 21, 2023
1 parent e244031 commit b6e9d82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/DeviceBindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ void DeviceBindings::bind(pybind11::module& m, void* pCallstack){
.def("readFactoryCalibrationOrDefault", [](DeviceBase& d) { py::gil_scoped_release release; return d.readFactoryCalibrationOrDefault(); }, DOC(dai, DeviceBase, readFactoryCalibrationOrDefault))
.def("readCalibrationRaw", [](DeviceBase& d) { py::gil_scoped_release release; return d.readCalibrationRaw(); }, DOC(dai, DeviceBase, readCalibrationRaw))
.def("readFactoryCalibrationRaw", [](DeviceBase& d) { py::gil_scoped_release release; return d.readFactoryCalibrationRaw(); }, DOC(dai, DeviceBase, readFactoryCalibrationRaw))
.def("readCcmEepromRaw", [](DeviceBase& d, CameraBoardSocket s, int sz, int o) { py::gil_scoped_release release; return d.readCcmEepromRaw(s, sz, o); }, py::arg("socket"), py::arg("size"), py::arg("offset") = 0, DOC(dai, DeviceBase, readCcmEepromRaw))
.def("flashEepromClear", [](DeviceBase& d) { py::gil_scoped_release release; d.flashEepromClear(); }, DOC(dai, DeviceBase, flashEepromClear))
.def("flashFactoryEepromClear", [](DeviceBase& d) { py::gil_scoped_release release; d.flashFactoryEepromClear(); }, DOC(dai, DeviceBase, flashFactoryEepromClear))
.def("setTimesync", [](DeviceBase& d, std::chrono::milliseconds p, int s, bool r) { py::gil_scoped_release release; return d.setTimesync(p,s,r); }, DOC(dai, DeviceBase, setTimesync))
Expand Down

0 comments on commit b6e9d82

Please sign in to comment.