Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| code:code [2024/04/02 09:00] – Igor Yefmov | code:code [2024/06/07 15:00] (current) – [Firmware version info C/C++-struct] Igor Yefmov | ||
|---|---|---|---|
| Line 60: | Line 60: | ||
| ===== Firmware version info C/ | ===== Firmware version info C/ | ||
| - | The FX3 version | + | Both FX3 and FPGA version |
| <code cpp firmware-version.h> | <code cpp firmware-version.h> | ||
| Line 70: | Line 70: | ||
| unsigned buildNo | unsigned buildNo | ||
| }; | }; | ||
| + | // [0, 3] = [hhhh' | ||
| static_assert(sizeof(FwVersion) == 4); | static_assert(sizeof(FwVersion) == 4); | ||
| </ | </ | ||
| + | For example the following sequence of bytes: | ||
| + | < | ||
| + | < | ||
| + | H/W config = 1 | ||
| + | product | ||
| + | build type = 0 | ||
| + | build# | ||
| + | </ | ||
| + | |||
| + | and in little-endian memory layout is equivalent to a '' | ||
| ===== FX3 Version Info ===== | ===== FX3 Version Info ===== | ||
| The version id is also encoded into the firmware image file name as: | The version id is also encoded into the firmware image file name as: | ||