User Tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
code:code [2024/05/18 22:50] – [Firmware version info C/C++-struct] Igor Yefmovcode:code [2024/06/07 15:00] (current) – [Firmware version info C/C++-struct] Igor Yefmov
Line 70: Line 70:
     unsigned buildNo     : 13;     unsigned buildNo     : 13;
 }; };
 +// [0, 3] = [hhhh'hvvv, pppp'pppp, bbbb'brrr, BBBB'BBBB]
 static_assert(sizeof(FwVersion) == 4); static_assert(sizeof(FwVersion) == 4);
 </code> </code>
  
 For example the following sequence of bytes: For example the following sequence of bytes:
-<code>0x0A 0x06 0x08 0x00</code> corresponds to: +<code>[0,3] = 0x0A 0x06 0x08 0x00</code> corresponds to: 
-<code>vendor id 2 +<code>vendor id  
-H/W config 1 +H/W config 
-product 6 +product    
-build type 0 +build type 
-build# 1+build#     = 1
 </code> </code>
  

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also, you acknowledge that you have read and understand our Privacy Policy. If you do not agree, please leave the website.

More information