Electronic Components Datasheet Search
  English  ▼

X  

78IV Datasheet(PDF) 61 Page - NEC

Part # 78IV
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

78IV Datasheet(HTML) 61 Page - NEC

Back Button 78IV Datasheet HTML 57Page - NEC 78IV Datasheet HTML 58Page - NEC 78IV Datasheet HTML 59Page - NEC 78IV Datasheet HTML 60Page - NEC 78IV Datasheet HTML 61Page - NEC 78IV Datasheet HTML 62Page - NEC 78IV Datasheet HTML 63Page - NEC 78IV Datasheet HTML 64Page - NEC 78IV Datasheet HTML 65Page - NEC Next Button
Zoom Inzoom in Zoom Outzoom out
 61 / 523 page
background image
CHAPTER 3 DECLARATION OF TYPES AND STORAGE CLASSES
User’s Manual U15556EJ1V0UM
61
In the following example, “distance” is an int type, the type of “metricp” is a pointer to a function that returns an int
type that has no parameter specification, the type of “z” is a specified structure, and “zp” is a pointer to this structure.
typedef int MILES, KLICKSP ();
typedef struct {long re, im}
complex;
/*...*/
MILES distance;
extern KLICKSP *metricp;
complex z, *zp;
In the following example, the typedef name t is declared with a signed int type, and the typedef name plain is
declared with an int type, and a structure with three bit field members is declared. The bit field members are as
follows.
•
Bit field member with name t and the value 0 to 15
•
Bit field member without a name and the const qualified value –16 to +15 (if accessed)
•
Bit field member with name r and the value –16 to +15
typedef
signed int t;
typedef
int plain;
struct tag {
unsigned t:4;
const
t:5;
plain
r:5;
};
In this example, these two bit field declarations differ in that the first bit field declaration has unsigned as the type
specifier (therefore, t becomes the name of the structure member), and the second bit field declaration, on the other
hand, has const as the type qualifier (qualifies t which can be referred to as the typedef name).
After this
declaration, if:
t f(t (t));
long t;
is found within the effective range, the function f is declared as “function that has one parameter and returns signed
int”, and the parameter is declared as “pointer type for the function that has one parameter and returns signed int”.
The identifier t is declared as long type.
typedef names may be used to facilitate program reading. For example, the following three declarations for the
function signal all specify the same type as the first declaration which does not use typedef.
typedef
void
fv(int) ;
typedef
void
(*pfv) (int) ;
void
(*signal
(int, void (*) (int)))(int);
fv
*signal(int, fv *);
pfv
signal(int, pfv);



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