Electronic Components Datasheet Search
  English  ▼

X  

78K Datasheet(PDF) 56 Page - NEC

Part # 78K
Description  CC78K4 Ver.2.30 or Later, C Compiler Language
PDF  523 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  NEC [NEC]
Direct Link  http://www.nec.com/
Logo NEC - NEC

78K Datasheet(HTML) 56 Page - NEC

Back Button 78K Datasheet HTML 52Page - NEC 78K Datasheet HTML 53Page - NEC 78K Datasheet HTML 54Page - NEC 78K Datasheet HTML 55Page - NEC 78K Datasheet HTML 56Page - NEC 78K Datasheet HTML 57Page - NEC 78K Datasheet HTML 58Page - NEC 78K Datasheet HTML 59Page - NEC 78K Datasheet HTML 60Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 56 / 523 page
background image
CHAPTER 3
DECLARATION OF TYPES AND STORAGE CLASSES
User’s Manual U15556EJ1V0UM
56
(3) Bit field
A bit field is an integral type area consisting of a specified number of bits. For the bit field, int type, unsigned int
type, and signed int type data can be specified.
Note 1
The MSB of an int field which has no qualifier or a signed
int field will be judged as a sign bit.
Note 2
If two or more bit fields exist, the second and subsequent bit fields are packed into the adjacent bit positions,
provided there is an ample space within the same memory unit. By placing an unnamed bit field with a width of
0, the next bit field will not be packed into a space within the same memory unit. An unnamed bit field has no
declarator and declares a colon and a width only.
The unary & operator (address) cannot be applied to a bit field object.
Notes 1.
In this compiler, char type, unsigned char type, and signed char type can also be specified. All of
them are regarded as unsigned type since this compiler does not support signed type bit fields.
2.
In this compiler, the direction of bit field allocation can be changed using the compiler option –RB (for
details, refer to CHAPTER 11 EXTENDED FUNCTIONS).
The following shows an example of a bit field.
struct data {
unsigned int a:2;
unsigned int b:3;
unsigned int c:1;
} no1 ;
3.2.2 Enumeration specifiers
An enumeration type specifier indicates a list of objects to be put in sequence. Objects to be declared with the
enum specifier will be declared as constants that have int types.
The enumeration specifier is declared as shown below.
enum
[identifier] {enumerator list}
Objects are declared according to an enumerator list. Values are defined for all objects in the list in the order of
their declaration by assigning the value of 0 to the first object and the value of the previous object plus 1 to the 2nd
and subsequent objects. A constant value may also be specified by “=”.
In the following example, “hue” is assumed as the tag name of the enumeration, “col” as an object that has this
(enum) type, and “cp” as a pointer to an object of this type. In this declaration, the values of the enumeration
become “{0, 1, 20, 21}”.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com