Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ap_u32 eepromBase = 0;
ap_GetRegisters(apbase, 0, 0x64, 0x40, 8, 16, 1, &eepromBase);
eepromBase = 0xA0 | (eepromBase & 0x0E);
ap_u32 c[10] = {0};
ap_GetRegisters(apbase, 0, eepromBase, 0x7FF0, 16, 8, 10, c);
char serialNumber[10] = {0};
for (int i = 0; i < 10; ++i)
serialNumber[i] = (char)c[i];

Or use the new: ap_GetCameraSerialNumber(pCameraHandle[camera])