dev:atomic_parameters
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| dev:atomic_parameters [2014/09/09 18:53] – tsmall1 | dev:atomic_parameters [2014/09/21 17:54] (current) – [Make Getter and Setter] tsmall1 | ||
|---|---|---|---|
| Line 14: | Line 14: | ||
| BYTE_BITS_LENGTH = 8, | BYTE_BITS_LENGTH = 8, | ||
| BYTE_BITS_POSITION = BITS - BYTE_BITS_LENGTH - 1 | BYTE_BITS_POSITION = BITS - BYTE_BITS_LENGTH - 1 | ||
| - | } | + | }; |
| </ | </ | ||
| Line 22: | Line 22: | ||
| typedef BitField< | typedef BitField< | ||
| </ | </ | ||
| + | |||
| + | make sure that BitField is included in the file by adding: | ||
| + | |||
| + | < | ||
| + | #include " | ||
| + | </ | ||
| + | |||
| + | to the top of the file. | ||
| ===== Make Getter and Setter ===== | ===== Make Getter and Setter ===== | ||
| Line 33: | Line 41: | ||
| } | } | ||
| - | void SetByteBits(const T& us, u32 bits) const | + | void SetByteBits(T& |
| { | { | ||
| AFByteBits:: | AFByteBits:: | ||
dev/atomic_parameters.1410288809.txt.gz · Last modified: 2014/09/09 18:53 by tsmall1
