SW500007 Microchip Technology, SW500007 Datasheet - Page 62

PICC-18 PRO

SW500007

Manufacturer Part Number
SW500007
Description
PICC-18 PRO
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC18r
Datasheets

Specifications of SW500007

Supported Families
PIC18
Core Architecture
PIC
Software Edition
Professional
Kit Contents
Software And Docs
Mcu Supported Families
PIC18
Tool Function
Compiler
Tool Type
Compiler
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
PIC18 Series
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
015P
778-1002
778-1002
Supported Data Types and Variables
If a bit-field is declared in a structure that is assigned an absolute address, no storage will be allocated
for the structure. Absolute structures would be used when mapping a structure over a register to allow
a portable method of accessing individual bits within the register.
for each field. For example:
3.4.8.2 Structure and Union Qualifiers
HI-TECH PICC-18 STD supports the use of type qualifiers on structures. When a qualifier is applied
to a structure, all of its members will inherit this qualification. In the following example the structure
is qualified const.
In this case, the structure will be placed into the program space and each member will, obviously, be
read-only. Remember that all members must be initialized if a structure is const as they cannot be
initialized at runtime.
the structure would be positioned into RAM, but each member would be read-only. Compare the
following structure with the above.
48
A structure with bit-fields may be initialised by supplying a comma-separated list of initial values
If the members of the structure were individually qualified const but the structure was not, then
} foo;
struct {
} foo = {1, 8, 0};
const struct {
} record = { 0x55, &i};
struct {
} record = { 0x55, &i};
unsigned
unsigned
unsigned
unsigned
unsigned
unsigned
int number;
int *ptr;
const int number;
int * const ptr;
lo : 1;
hi : 1;
lo : 1;
mid : 6;
hi : 1;
: 6;
C Language Features

Related parts for SW500007