17
4.3.1 Header Files
The MB95560.h and the _f2mc8fx.h are header files, included MB95560H/570H/580H MCU I/O
registers definition;
Here take PDR0 for example. In MB95560.h, PDR0 is defined as below.
/* REGISTER BIT STRUCTURES */
#ifdef __IO_DEFINE
#pragma segment IO=IO_PDR0, locate=0x0
#endif
typedef union {
__BYTE
byte;
struct {
__BYTE
P00:1;
__BYTE
P01:1;
__BYTE
P02:1;
__BYTE
P03:1;
__BYTE
P04:1;
__BYTE
P05:1;
__BYTE
P06:1;
__BYTE
P07:1;
} bit;
struct {
__BYTE
P00:1;
__BYTE
P01:1;
__BYTE
P02:1;
__BYTE
P03:1;
__BYTE
P04:1;
__BYTE
P05:1;
__BYTE
P06:1;
__BYTE
P07:1;
} bitc;
} PDR0STR;
__IO_EXTERN
PDR0STR
IO_PDR0;
#define
_pdr0
(IO_PDR0)
#define
PDR0
(IO_PDR0.byte)
#define
PDR0_P00
(IO_PDR0.bit.P00)
#define
PDR0_P01
(IO_PDR0.bit.P01)
#define
PDR0_P02
(IO_PDR0.bit.P02)
#define
PDR0_P03
(IO_PDR0.bit.P03)
#define
PDR0_P04
(IO_PDR0.bit.P04)
#define
PDR0_P05
(IO_PDR0.bit.P05)
#define
PDR0_P06
(IO_PDR0.bit.P06)
#define
PDR0_P07
(IO_PDR0.bit.P07)
Summary of Contents for 8FX MB2146-510-01-E
Page 25: ......