English
Language : 

CC78K4 Datasheet, PDF (373/523 Pages) NEC – CC78K4 Ver.2.30 or Later, C Compiler Language
CHAPTER 11 EXTENDED FUNCTIONS
Bit Field Declaration
Bit field declaration
Figure 11-3. Bit Allocation by Bit Field Declaration (Example 3) (2/2)
Bit allocation from MSB
with –RB option specified
Bit allocation from LSB
without –RB option specified
MSB
f
LSB
f g Vacant
MSB
Vacant g f
LSB
f
h
i
i
Vacant
Vacant
i
i
h
f and g, and h and i are each allocated to separate word units.
When the –RA option or –RP option is specified, the bit field is made 2-byte alignment. The location of the bit
field above is as follows.
Vacant
a
Vacant
a
Vacant
c
Vacant
Vacant
c
c
b
d
Vacant
Vacant
Vacant
e
Vacant
Vacant
d
d
Vacant
Vacant
e
f
f g Vacant
Vacant g f
f
h
i
i
Vacant
Vacant
i
i
h
Remark The numbers below the allocation diagrams indicate the byte offset values from the beginning of the
structure.
User’s Manual U15556EJ1V0UM
373