Aurelien Jacobs wrote: > I suggest you just read the whole eeprom to a simple byte buffer and > extract the fields you want depending on their formats with something > like this: > > rd = read(fd, buf, len); > eeprom->type = RB32(buf + 0); > eeprom->rev = RB32(buf + 4); > eeprom->shunt = RB64(buf + 8);
Yes, this is the right way to do it. //Peter ------------------------------------------------------------------------------ _______________________________________________ sigrok-devel mailing list sigrok-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sigrok-devel