?? mcf51qe128.h
字號:
#define NVBACKKEY4_KEY3_MASK 8
#define NVBACKKEY4_KEY4_MASK 16
#define NVBACKKEY4_KEY5_MASK 32
#define NVBACKKEY4_KEY6_MASK 64
#define NVBACKKEY4_KEY7_MASK 128
/*** NVBACKKEY5 - Backdoor Comparison Key 5; 0x00000405 ***/
typedef union {
byte Byte;
struct {
byte KEY0 :1; /* Backdoor Comparison Key 5 Bits, bit 0 */
byte KEY1 :1; /* Backdoor Comparison Key 5 Bits, bit 1 */
byte KEY2 :1; /* Backdoor Comparison Key 5 Bits, bit 2 */
byte KEY3 :1; /* Backdoor Comparison Key 5 Bits, bit 3 */
byte KEY4 :1; /* Backdoor Comparison Key 5 Bits, bit 4 */
byte KEY5 :1; /* Backdoor Comparison Key 5 Bits, bit 5 */
byte KEY6 :1; /* Backdoor Comparison Key 5 Bits, bit 6 */
byte KEY7 :1; /* Backdoor Comparison Key 5 Bits, bit 7 */
} Bits;
} NVBACKKEY5STR;
/* Tip for register initialization in the user code: const byte NVBACKKEY5_INIT @0x00000405 = <NVBACKKEY5_INITVAL>; */
#define _NVBACKKEY5 (*(const NVBACKKEY5STR *)0x00000405)
#define NVBACKKEY5 _NVBACKKEY5.Byte
#define NVBACKKEY5_KEY0 _NVBACKKEY5.Bits.KEY0
#define NVBACKKEY5_KEY1 _NVBACKKEY5.Bits.KEY1
#define NVBACKKEY5_KEY2 _NVBACKKEY5.Bits.KEY2
#define NVBACKKEY5_KEY3 _NVBACKKEY5.Bits.KEY3
#define NVBACKKEY5_KEY4 _NVBACKKEY5.Bits.KEY4
#define NVBACKKEY5_KEY5 _NVBACKKEY5.Bits.KEY5
#define NVBACKKEY5_KEY6 _NVBACKKEY5.Bits.KEY6
#define NVBACKKEY5_KEY7 _NVBACKKEY5.Bits.KEY7
#define NVBACKKEY5_KEY0_MASK 1
#define NVBACKKEY5_KEY1_MASK 2
#define NVBACKKEY5_KEY2_MASK 4
#define NVBACKKEY5_KEY3_MASK 8
#define NVBACKKEY5_KEY4_MASK 16
#define NVBACKKEY5_KEY5_MASK 32
#define NVBACKKEY5_KEY6_MASK 64
#define NVBACKKEY5_KEY7_MASK 128
/*** NVBACKKEY6 - Backdoor Comparison Key 6; 0x00000406 ***/
typedef union {
byte Byte;
struct {
byte KEY0 :1; /* Backdoor Comparison Key 6 Bits, bit 0 */
byte KEY1 :1; /* Backdoor Comparison Key 6 Bits, bit 1 */
byte KEY2 :1; /* Backdoor Comparison Key 6 Bits, bit 2 */
byte KEY3 :1; /* Backdoor Comparison Key 6 Bits, bit 3 */
byte KEY4 :1; /* Backdoor Comparison Key 6 Bits, bit 4 */
byte KEY5 :1; /* Backdoor Comparison Key 6 Bits, bit 5 */
byte KEY6 :1; /* Backdoor Comparison Key 6 Bits, bit 6 */
byte KEY7 :1; /* Backdoor Comparison Key 6 Bits, bit 7 */
} Bits;
} NVBACKKEY6STR;
/* Tip for register initialization in the user code: const byte NVBACKKEY6_INIT @0x00000406 = <NVBACKKEY6_INITVAL>; */
#define _NVBACKKEY6 (*(const NVBACKKEY6STR *)0x00000406)
#define NVBACKKEY6 _NVBACKKEY6.Byte
#define NVBACKKEY6_KEY0 _NVBACKKEY6.Bits.KEY0
#define NVBACKKEY6_KEY1 _NVBACKKEY6.Bits.KEY1
#define NVBACKKEY6_KEY2 _NVBACKKEY6.Bits.KEY2
#define NVBACKKEY6_KEY3 _NVBACKKEY6.Bits.KEY3
#define NVBACKKEY6_KEY4 _NVBACKKEY6.Bits.KEY4
#define NVBACKKEY6_KEY5 _NVBACKKEY6.Bits.KEY5
#define NVBACKKEY6_KEY6 _NVBACKKEY6.Bits.KEY6
#define NVBACKKEY6_KEY7 _NVBACKKEY6.Bits.KEY7
#define NVBACKKEY6_KEY0_MASK 1
#define NVBACKKEY6_KEY1_MASK 2
#define NVBACKKEY6_KEY2_MASK 4
#define NVBACKKEY6_KEY3_MASK 8
#define NVBACKKEY6_KEY4_MASK 16
#define NVBACKKEY6_KEY5_MASK 32
#define NVBACKKEY6_KEY6_MASK 64
#define NVBACKKEY6_KEY7_MASK 128
/*** NVBACKKEY7 - Backdoor Comparison Key 7; 0x00000407 ***/
typedef union {
byte Byte;
struct {
byte KEY0 :1; /* Backdoor Comparison Key 7 Bits, bit 0 */
byte KEY1 :1; /* Backdoor Comparison Key 7 Bits, bit 1 */
byte KEY2 :1; /* Backdoor Comparison Key 7 Bits, bit 2 */
byte KEY3 :1; /* Backdoor Comparison Key 7 Bits, bit 3 */
byte KEY4 :1; /* Backdoor Comparison Key 7 Bits, bit 4 */
byte KEY5 :1; /* Backdoor Comparison Key 7 Bits, bit 5 */
byte KEY6 :1; /* Backdoor Comparison Key 7 Bits, bit 6 */
byte KEY7 :1; /* Backdoor Comparison Key 7 Bits, bit 7 */
} Bits;
} NVBACKKEY7STR;
/* Tip for register initialization in the user code: const byte NVBACKKEY7_INIT @0x00000407 = <NVBACKKEY7_INITVAL>; */
#define _NVBACKKEY7 (*(const NVBACKKEY7STR *)0x00000407)
#define NVBACKKEY7 _NVBACKKEY7.Byte
#define NVBACKKEY7_KEY0 _NVBACKKEY7.Bits.KEY0
#define NVBACKKEY7_KEY1 _NVBACKKEY7.Bits.KEY1
#define NVBACKKEY7_KEY2 _NVBACKKEY7.Bits.KEY2
#define NVBACKKEY7_KEY3 _NVBACKKEY7.Bits.KEY3
#define NVBACKKEY7_KEY4 _NVBACKKEY7.Bits.KEY4
#define NVBACKKEY7_KEY5 _NVBACKKEY7.Bits.KEY5
#define NVBACKKEY7_KEY6 _NVBACKKEY7.Bits.KEY6
#define NVBACKKEY7_KEY7 _NVBACKKEY7.Bits.KEY7
#define NVBACKKEY7_KEY0_MASK 1
#define NVBACKKEY7_KEY1_MASK 2
#define NVBACKKEY7_KEY2_MASK 4
#define NVBACKKEY7_KEY3_MASK 8
#define NVBACKKEY7_KEY4_MASK 16
#define NVBACKKEY7_KEY5_MASK 32
#define NVBACKKEY7_KEY6_MASK 64
#define NVBACKKEY7_KEY7_MASK 128
/*** NVPROT - Nonvolatile Flash Protection Register; 0x0000040D ***/
typedef union {
byte Byte;
struct {
byte FPOPEN :1; /* Flash Protection Open */
byte FPS0 :1; /* Flash Protection Size, bit 0 */
byte FPS1 :1; /* Flash Protection Size, bit 1 */
byte FPS2 :1; /* Flash Protection Size, bit 2 */
byte FPS3 :1; /* Flash Protection Size, bit 3 */
byte FPS4 :1; /* Flash Protection Size, bit 4 */
byte FPS5 :1; /* Flash Protection Size, bit 5 */
byte FPS6 :1; /* Flash Protection Size, bit 6 */
} Bits;
struct {
byte :1;
byte grpFPS :7;
} MergedBits;
} NVPROTSTR;
/* Tip for register initialization in the user code: const byte NVPROT_INIT @0x0000040D = <NVPROT_INITVAL>; */
#define _NVPROT (*(const NVPROTSTR *)0x0000040D)
#define NVPROT _NVPROT.Byte
#define NVPROT_FPOPEN _NVPROT.Bits.FPOPEN
#define NVPROT_FPS0 _NVPROT.Bits.FPS0
#define NVPROT_FPS1 _NVPROT.Bits.FPS1
#define NVPROT_FPS2 _NVPROT.Bits.FPS2
#define NVPROT_FPS3 _NVPROT.Bits.FPS3
#define NVPROT_FPS4 _NVPROT.Bits.FPS4
#define NVPROT_FPS5 _NVPROT.Bits.FPS5
#define NVPROT_FPS6 _NVPROT.Bits.FPS6
#define NVPROT_FPS _NVPROT.MergedBits.grpFPS
#define NVPROT_FPOPEN_MASK 1
#define NVPROT_FPS0_MASK 2
#define NVPROT_FPS1_MASK 4
#define NVPROT_FPS2_MASK 8
#define NVPROT_FPS3_MASK 16
#define NVPROT_FPS4_MASK 32
#define NVPROT_FPS5_MASK 64
#define NVPROT_FPS6_MASK 128
#define NVPROT_FPS_MASK 254
#define NVPROT_FPS_BITNUM 1
/*** NVOPT - Nonvolatile Flash Options Register; 0x0000040F ***/
typedef union {
byte Byte;
struct {
byte SEC0 :1; /* Flash Security Bit 0 */
byte SEC1 :1; /* Flash Security Bit 1 */
byte :1;
byte :1;
byte :1;
byte :1;
byte KEYEN0 :1; /* Backdoor Key Security Enable Bit 0 */
byte KEYEN1 :1; /* Backdoor Key Security Enable Bit 1 */
} Bits;
struct {
byte grpSEC :2;
byte :1;
byte :1;
byte :1;
byte :1;
byte grpKEYEN :2;
} MergedBits;
} NVOPTSTR;
/* Tip for register initialization in the user code: const byte NVOPT_INIT @0x0000040F = <NVOPT_INITVAL>; */
#define _NVOPT (*(const NVOPTSTR *)0x0000040F)
#define NVOPT _NVOPT.Byte
#define NVOPT_SEC0 _NVOPT.Bits.SEC0
#define NVOPT_SEC1 _NVOPT.Bits.SEC1
#define NVOPT_KEYEN0 _NVOPT.Bits.KEYEN0
#define NVOPT_KEYEN1 _NVOPT.Bits.KEYEN1
#define NVOPT_SEC _NVOPT.MergedBits.grpSEC
#define NVOPT_KEYEN _NVOPT.MergedBits.grpKEYEN
#define NVOPT_SEC0_MASK 1
#define NVOPT_SEC1_MASK 2
#define NVOPT_KEYEN0_MASK 64
#define NVOPT_KEYEN1_MASK 128
#define NVOPT_SEC_MASK 3
#define NVOPT_SEC_BITNUM 0
#define NVOPT_KEYEN_MASK 192
#define NVOPT_KEYEN_BITNUM 6
/*** RGPIO_DIR - RGPIO Data Direction Register; 0x00C00000 ***/
typedef union {
word Word;
struct {
word DIR0 :1; /* RGPIO data direction bit 0 */
word DIR1 :1; /* RGPIO data direction bit 1 */
word DIR2 :1; /* RGPIO data direction bit 2 */
word DIR3 :1; /* RGPIO data direction bit 3 */
word DIR4 :1; /* RGPIO data direction bit 4 */
word DIR5 :1; /* RGPIO data direction bit 5 */
word DIR6 :1; /* RGPIO data direction bit 6 */
word DIR7 :1; /* RGPIO data direction bit 7 */
word DIR8 :1; /* RGPIO data direction bit 8 */
word DIR9 :1; /* RGPIO data direction bit 9 */
word DIR10 :1; /* RGPIO data direction bit 10 */
word DIR11 :1; /* RGPIO data direction bit 11 */
word DIR12 :1; /* RGPIO data direction bit 12 */
word DIR13 :1; /* RGPIO data direction bit 13 */
word DIR14 :1; /* RGPIO data direction bit 14 */
word DIR15 :1; /* RGPIO data direction bit 15 */
} Bits;
} RGPIO_DIRSTR;
extern volatile RGPIO_DIRSTR _RGPIO_DIR @0x00C00000;
#define RGPIO_DIR _RGPIO_DIR.Word
#define RGPIO_DIR_DIR0 _RGPIO_DIR.Bits.DIR0
#define RGPIO_DIR_DIR1 _RGPIO_DIR.Bits.DIR1
#define RGPIO_DIR_DIR2 _RGPIO_DIR.Bits.DIR2
#define RGPIO_DIR_DIR3 _RGPIO_DIR.Bits.DIR3
#define RGPIO_DIR_DIR4 _RGPIO_DIR.Bits.DIR4
#define RGPIO_DIR_DIR5 _RGPIO_DIR.Bits.DIR5
#define RGPIO_DIR_DIR6 _RGPIO_DIR.Bits.DIR6
#define RGPIO_DIR_DIR7 _RGPIO_DIR.Bits.DIR7
#define RGPIO_DIR_DIR8 _RGPIO_DIR.Bits.DIR8
#define RGPIO_DIR_DIR9 _RGPIO_DIR.Bits.DIR9
#define RGPIO_DIR_DIR10 _RGPIO_DIR.Bits.DIR10
#define RGPIO_DIR_DIR11 _RGPIO_DIR.Bits.DIR11
#define RGPIO_DIR_DIR12 _RGPIO_DIR.Bits.DIR12
#define RGPIO_DIR_DIR13 _RGPIO_DIR.Bits.DIR13
#define RGPIO_DIR_DIR14 _RGPIO_DIR.Bits.DIR14
#define RGPIO_DIR_DIR15 _RGPIO_DIR.Bits.DIR15
#define RGPIO_DIR_DIR0_MASK 1
#define RGPIO_DIR_DIR1_MASK 2
#define RGPIO_DIR_DIR2_MASK 4
#define RGPIO_DIR_DIR3_MASK 8
#define RGPIO_DIR_DIR4_MASK 16
#define RGPIO_DIR_DIR5_MASK 32
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -