■ CONTENTS
xv
■Chapter 10: Structures, Unions, and Data Storage ............................................ 219
Structures ..................................................................................................................... 219
Declaring a Structure ..........................................................................................................................220
Defi ning a Structure ...........................................................................................................................221
Accessing Structure Members ...........................................................................................................222
Escape Sequences .............................................................................................................................224
Memory Requirements for a Structure ...............................................................................................225
Returning a Structure from a Function Call ........................................................................................226
Using Structure Pointers .....................................................................................................................228
Initializing a Structure ........................................................................................................................231
Arrays of Structures ............................................................................................................................231
Unions .......................................................................................................................... 232
EEPROM Memory ......................................................................................................... 233
Using EEPROM ....................................................................................................................................234
Other Storage Alternatives ........................................................................................... 242
Shields ................................................................................................................................................242
typedef ......................................................................................................................... 247
Summary ...................................................................................................................... 248
■Chapter 11: The C Preprocessor and Bitwise Operations .................................. 253
Preprocessor Directives ............................................................................................... 253
#undef ................................................................................................................................................255
#line ....................................................................................................................................................256
#if, Conditional Directives ...................................................................................................................257
#include ..............................................................................................................................................258
Parameterized Macros ................................................................................................. 259
Decimal to Binary Converter ........................................................................................ 261
Bitwise Operators ...............................................................................................................................263
Bitwise Shift Operators .......................................................................................................................267