SW500009 Microchip Technology, SW500009 Datasheet - Page 61

HI-TECH FOR DSPIC/PIC24

SW500009

Manufacturer Part Number
SW500009
Description
HI-TECH FOR DSPIC/PIC24
Manufacturer
Microchip Technology
Type
Compilerr
Series
PIC24 & DsPICr
Datasheet

Specifications of SW500009

Supported Families
PIC24
Core Architecture
PIC, DsPIC
Software Edition
Standard
Kit Contents
Software And Docs
Tool Type
Compiler
Mcu Supported Families
PIC24 MCUs And DsPIC DSCs
Lead Free Status / RoHS Status
Not applicable / RoHS Compliant
For Use With/related Products
DSPIC3X/PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
025
778-1003
778-1003
C Language Features
will produce a structure occupying 1 bytes. If foo was ultimately linked at address 10H, the field lo
will be bit 0 of address 10H, hi will be bit 7 of address 10H. The least significant bit of dummy will
be bit 1 of address 10H and the most significant bit of dummy will be bit 6 of address 10h.
registers. For example, if dummy is never used the structure above could have been declared as:
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.7.2 Structure and Union Qualifiers
HI-TECH C supports the use of type qualifiers on structures. When a qualifier is applied to a struc-
ture, 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.
Unnamed bit-fields may be declared to pad out unused space between active bits in control
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
struct {
} foo;
struct {
} foo = {1, 8, 0};
const struct {
} record = { 0x55, &i};
unsigned
unsigned
unsigned
unsigned
unsigned
unsigned
int number;
int *ptr;
lo : 1;
hi : 1;
lo : 1;
mid : 6;
hi : 1;
: 6;
Supported Data Types and Variables
47

Related parts for SW500009