Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
wiki:conventions [2017/03/25 16:01] – [Casing] zdimension | wiki:conventions [2017/06/16 16:28] (current) – zdimension | ||
---|---|---|---|
Line 12: | Line 12: | ||
===== Indentation ===== | ===== Indentation ===== | ||
- | Thou shalt in all your code use the Allman' | + | Thou shalt in all of thy code let ye Allman' |
<code cpp> | <code cpp> | ||
struct MyStruct | struct MyStruct | ||
Line 43: | Line 43: | ||
uint32_t* fieldName; | uint32_t* fieldName; | ||
</ | </ | ||
+ | |||
+ | ===== Bit fields ===== | ||
+ | |||
+ | ==== Horizontal (long descriptions) ==== | ||
+ | |||
+ | === 8-bit === | ||
+ | |||
+ | ^ Hex ^ Bit ^ Description ^ | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ ::: ^ ::: | {{: | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | |||
+ | === 16-bit === | ||
+ | |||
+ | ^ Hex ^ Bit ^ Description ^ | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ ::: ^ ::: | {{: | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | |||
+ | ==== Vertical (field names only) ==== | ||
+ | |||
+ | ^ Hex value ^ '' | ||
+ | ^ Bit ^ 15 ^ 14 ^ 13 ^ 12 ^ 11 ^ 10 ^ 9 ^ 8 ^ 7 ^ 6 ^ 5 ^ 4 ^ 3 ^ 2 ^ 1 ^ 0 ^ | ||
+ | ^ Field | '' |