⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mc68hc908jw32.h

📁 motorola jw32 usb 源码
💻 H
📖 第 1 页 / 共 5 页
字号:
    byte CNT4        :1;                                       /* Data Codec 1 Counter Bit 4 */
    byte CNT5        :1;                                       /* Data Codec 1 Counter Bit 5 */
    byte CNT6        :1;                                       /* Data Codec 1 Counter Bit 6 */
    byte CNT7        :1;                                       /* Data Codec 1 Counter Bit 7 */
  } Bits;
} DC1CNTSTR;
extern volatile DC1CNTSTR _DC1CNT @0x00000024;
#define DC1CNT                          _DC1CNT.Byte
#define DC1CNT_CNT0                     _DC1CNT.Bits.CNT0
#define DC1CNT_CNT1                     _DC1CNT.Bits.CNT1
#define DC1CNT_CNT2                     _DC1CNT.Bits.CNT2
#define DC1CNT_CNT3                     _DC1CNT.Bits.CNT3
#define DC1CNT_CNT4                     _DC1CNT.Bits.CNT4
#define DC1CNT_CNT5                     _DC1CNT.Bits.CNT5
#define DC1CNT_CNT6                     _DC1CNT.Bits.CNT6
#define DC1CNT_CNT7                     _DC1CNT.Bits.CNT7

#define DC1CNT_CNT0_MASK                1
#define DC1CNT_CNT1_MASK                2
#define DC1CNT_CNT2_MASK                4
#define DC1CNT_CNT3_MASK                8
#define DC1CNT_CNT4_MASK                16
#define DC1CNT_CNT5_MASK                32
#define DC1CNT_CNT6_MASK                64
#define DC1CNT_CNT7_MASK                128


/*** DC1CCNT - Data Codec 1 Compensated Counter Register; 0x00000025 ***/
typedef union {
  byte Byte;
  struct {
    byte CCNT0       :1;                                       /* Compensated Captured Counter Value Bit 0 */
    byte CCNT1       :1;                                       /* Compensated Captured Counter Value Bit 1 */
    byte CCNT2       :1;                                       /* Compensated Captured Counter Value Bit 2 */
    byte CCNT3       :1;                                       /* Compensated Captured Counter Value Bit 3 */
    byte CCNT4       :1;                                       /* Compensated Captured Counter Value Bit 4 */
    byte CCNT5       :1;                                       /* Compensated Captured Counter Value Bit 5 */
    byte CCNT6       :1;                                       /* Compensated Captured Counter Value Bit 6 */
    byte CCNT7       :1;                                       /* Compensated Captured Counter Value Bit 7 */
  } Bits;
} DC1CCNTSTR;
extern volatile DC1CCNTSTR _DC1CCNT @0x00000025;
#define DC1CCNT                         _DC1CCNT.Byte
#define DC1CCNT_CCNT0                   _DC1CCNT.Bits.CCNT0
#define DC1CCNT_CCNT1                   _DC1CCNT.Bits.CCNT1
#define DC1CCNT_CCNT2                   _DC1CCNT.Bits.CCNT2
#define DC1CCNT_CCNT3                   _DC1CCNT.Bits.CCNT3
#define DC1CCNT_CCNT4                   _DC1CCNT.Bits.CCNT4
#define DC1CCNT_CCNT5                   _DC1CCNT.Bits.CCNT5
#define DC1CCNT_CCNT6                   _DC1CCNT.Bits.CCNT6
#define DC1CCNT_CCNT7                   _DC1CCNT.Bits.CCNT7

#define DC1CCNT_CCNT0_MASK              1
#define DC1CCNT_CCNT1_MASK              2
#define DC1CCNT_CCNT2_MASK              4
#define DC1CCNT_CCNT3_MASK              8
#define DC1CCNT_CCNT4_MASK              16
#define DC1CCNT_CCNT5_MASK              32
#define DC1CCNT_CCNT6_MASK              64
#define DC1CCNT_CCNT7_MASK              128


/*** DC1VAL1 - Data Codec 1 Comparator 1 Register; 0x00000026 ***/
typedef union {
  byte Byte;
  struct {
    byte CVALUE10    :1;                                       /* Data Codec 1 Comparator 1 Bit 0 */
    byte CVALUE11    :1;                                       /* Data Codec 1 Comparator 1 Bit 1 */
    byte CVALUE12    :1;                                       /* Data Codec 1 Comparator 1 Bit 2 */
    byte CVALUE13    :1;                                       /* Data Codec 1 Comparator 1 Bit 3 */
    byte CVALUE14    :1;                                       /* Data Codec 1 Comparator 1 Bit 4 */
    byte CVALUE15    :1;                                       /* Data Codec 1 Comparator 1 Bit 5 */
    byte CVALUE16    :1;                                       /* Data Codec 1 Comparator 1 Bit 6 */
    byte CVALUE17    :1;                                       /* Data Codec 1 Comparator 1 Bit 7 */
  } Bits;
} DC1VAL1STR;
extern volatile DC1VAL1STR _DC1VAL1 @0x00000026;
#define DC1VAL1                         _DC1VAL1.Byte
#define DC1VAL1_CVALUE10                _DC1VAL1.Bits.CVALUE10
#define DC1VAL1_CVALUE11                _DC1VAL1.Bits.CVALUE11
#define DC1VAL1_CVALUE12                _DC1VAL1.Bits.CVALUE12
#define DC1VAL1_CVALUE13                _DC1VAL1.Bits.CVALUE13
#define DC1VAL1_CVALUE14                _DC1VAL1.Bits.CVALUE14
#define DC1VAL1_CVALUE15                _DC1VAL1.Bits.CVALUE15
#define DC1VAL1_CVALUE16                _DC1VAL1.Bits.CVALUE16
#define DC1VAL1_CVALUE17                _DC1VAL1.Bits.CVALUE17

#define DC1VAL1_CVALUE10_MASK           1
#define DC1VAL1_CVALUE11_MASK           2
#define DC1VAL1_CVALUE12_MASK           4
#define DC1VAL1_CVALUE13_MASK           8
#define DC1VAL1_CVALUE14_MASK           16
#define DC1VAL1_CVALUE15_MASK           32
#define DC1VAL1_CVALUE16_MASK           64
#define DC1VAL1_CVALUE17_MASK           128


/*** DC1VAL2 - Data Codec 1 Comparator 2 Register; 0x00000027 ***/
typedef union {
  byte Byte;
  struct {
    byte CVALUE20    :1;                                       /* Data Codec 1 Comparator 2 Bit 0 */
    byte CVALUE21    :1;                                       /* Data Codec 1 Comparator 2 Bit 1 */
    byte CVALUE22    :1;                                       /* Data Codec 1 Comparator 2 Bit 2 */
    byte CVALUE23    :1;                                       /* Data Codec 1 Comparator 2 Bit 3 */
    byte CVALUE24    :1;                                       /* Data Codec 1 Comparator 2 Bit 4 */
    byte CVALUE25    :1;                                       /* Data Codec 1 Comparator 2 Bit 5 */
    byte CVALUE26    :1;                                       /* Data Codec 1 Comparator 2 Bit 6 */
    byte CVALUE27    :1;                                       /* Data Codec 1 Comparator 2 Bit 7 */
  } Bits;
} DC1VAL2STR;
extern volatile DC1VAL2STR _DC1VAL2 @0x00000027;
#define DC1VAL2                         _DC1VAL2.Byte
#define DC1VAL2_CVALUE20                _DC1VAL2.Bits.CVALUE20
#define DC1VAL2_CVALUE21                _DC1VAL2.Bits.CVALUE21
#define DC1VAL2_CVALUE22                _DC1VAL2.Bits.CVALUE22
#define DC1VAL2_CVALUE23                _DC1VAL2.Bits.CVALUE23
#define DC1VAL2_CVALUE24                _DC1VAL2.Bits.CVALUE24
#define DC1VAL2_CVALUE25                _DC1VAL2.Bits.CVALUE25
#define DC1VAL2_CVALUE26                _DC1VAL2.Bits.CVALUE26
#define DC1VAL2_CVALUE27                _DC1VAL2.Bits.CVALUE27

#define DC1VAL2_CVALUE20_MASK           1
#define DC1VAL2_CVALUE21_MASK           2
#define DC1VAL2_CVALUE22_MASK           4
#define DC1VAL2_CVALUE23_MASK           8
#define DC1VAL2_CVALUE24_MASK           16
#define DC1VAL2_CVALUE25_MASK           32
#define DC1VAL2_CVALUE26_MASK           64
#define DC1VAL2_CVALUE27_MASK           128


/*** DC1VAL3 - Data Codec 1 Comparator 3 Register; 0x00000028 ***/
typedef union {
  byte Byte;
  struct {
    byte CVALUE30    :1;                                       /* Data Codec 1 Comparator 3 Bit 0 */
    byte CVALUE31    :1;                                       /* Data Codec 1 Comparator 3 Bit 1 */
    byte CVALUE32    :1;                                       /* Data Codec 1 Comparator 3 Bit 2 */
    byte CVALUE33    :1;                                       /* Data Codec 1 Comparator 3 Bit 3 */
    byte CVALUE34    :1;                                       /* Data Codec 1 Comparator 3 Bit 4 */
    byte CVALUE35    :1;                                       /* Data Codec 1 Comparator 3 Bit 5 */
    byte CVALUE36    :1;                                       /* Data Codec 1 Comparator 3 Bit 6 */
    byte CVALUE37    :1;                                       /* Data Codec 1 Comparator 3 Bit 7 */
  } Bits;
} DC1VAL3STR;
extern volatile DC1VAL3STR _DC1VAL3 @0x00000028;
#define DC1VAL3                         _DC1VAL3.Byte
#define DC1VAL3_CVALUE30                _DC1VAL3.Bits.CVALUE30
#define DC1VAL3_CVALUE31                _DC1VAL3.Bits.CVALUE31
#define DC1VAL3_CVALUE32                _DC1VAL3.Bits.CVALUE32
#define DC1VAL3_CVALUE33                _DC1VAL3.Bits.CVALUE33
#define DC1VAL3_CVALUE34                _DC1VAL3.Bits.CVALUE34
#define DC1VAL3_CVALUE35                _DC1VAL3.Bits.CVALUE35
#define DC1VAL3_CVALUE36                _DC1VAL3.Bits.CVALUE36
#define DC1VAL3_CVALUE37                _DC1VAL3.Bits.CVALUE37

#define DC1VAL3_CVALUE30_MASK           1
#define DC1VAL3_CVALUE31_MASK           2
#define DC1VAL3_CVALUE32_MASK           4
#define DC1VAL3_CVALUE33_MASK           8
#define DC1VAL3_CVALUE34_MASK           16
#define DC1VAL3_CVALUE35_MASK           32
#define DC1VAL3_CVALUE36_MASK           64
#define DC1VAL3_CVALUE37_MASK           128


/*** DC1VAL4 - Data Codec 1 Comparator 4 Register; 0x00000029 ***/
typedef union {
  byte Byte;
  struct {
    byte CVALUE40    :1;                                       /* Data Codec 1 Comparator 4 Bit 0 */
    byte CVALUE41    :1;                                       /* Data Codec 1 Comparator 4 Bit 1 */
    byte CVALUE42    :1;                                       /* Data Codec 1 Comparator 4 Bit 2 */
    byte CVALUE43    :1;                                       /* Data Codec 1 Comparator 4 Bit 3 */
    byte CVALUE44    :1;                                       /* Data Codec 1 Comparator 4 Bit 4 */
    byte CVALUE45    :1;                                       /* Data Codec 1 Comparator 4 Bit 5 */
    byte CVALUE46    :1;                                       /* Data Codec 1 Comparator 4 Bit 6 */
    byte CVALUE47    :1;                                       /* Data Codec 1 Comparator 4 Bit 7 */
  } Bits;
} DC1VAL4STR;
extern volatile DC1VAL4STR _DC1VAL4 @0x00000029;
#define DC1VAL4                         _DC1VAL4.Byte
#define DC1VAL4_CVALUE40                _DC1VAL4.Bits.CVALUE40
#define DC1VAL4_CVALUE41                _DC1VAL4.Bits.CVALUE41
#define DC1VAL4_CVALUE42                _DC1VAL4.Bits.CVALUE42
#define DC1VAL4_CVALUE43                _DC1VAL4.Bits.CVALUE43
#define DC1VAL4_CVALUE44                _DC1VAL4.Bits.CVALUE44
#define DC1VAL4_CVALUE45                _DC1VAL4.Bits.CVALUE45
#define DC1VAL4_CVALUE46                _DC1VAL4.Bits.CVALUE46
#define DC1VAL4_CVALUE47                _DC1VAL4.Bits.CVALUE47

#define DC1VAL4_CVALUE40_MASK           1
#define DC1VAL4_CVALUE41_MASK           2
#define DC1VAL4_CVALUE42_MASK           4
#define DC1VAL4_CVALUE43_MASK           8
#define DC1VAL4_CVALUE44_MASK           16
#define DC1VAL4_CVALUE45_MASK           32
#define DC1VAL4_CVALUE46_MASK           64
#define DC1VAL4_CVALUE47_MASK           128


/*** DC1TOL - Data Codec 1 Tolerance Register; 0x0000002A ***/
typedef union {
  byte Byte;
  struct {
    byte TOL0        :1;                                       /* Tolerance value Bit 0 */
    byte TOL1        :1;                                       /* Tolerance value Bit 1 */
    byte TOL2        :1;                                       /* Tolerance value Bit 2 */
    byte TOL3        :1;                                       /* Tolerance value Bit 3 */
    byte TOL4        :1;                                       /* Tolerance value Bit 4 */
    byte             :1; 
    byte             :1; 
    byte ADD         :1;                                       /* Add operation Selection bit */
  } Bits;
  struct {
    byte grpTOL  :5;
    byte         :1;
    byte         :1;
    byte         :1;
  } MergedBits;
} DC1TOLSTR;
extern volatile DC1TOLSTR _DC1TOL @0x0000002A;
#define DC1TOL                          _DC1TOL.Byte
#define DC1TOL_TOL0                     _DC1TOL.Bits.TOL0
#define DC1TOL_TOL1                     _DC1TOL.Bits.TOL1
#define DC1TOL_TOL2                     _DC1TOL.Bits.TOL2
#define DC1TOL_TOL3                     _DC1TOL.Bits.TOL3
#define DC1TOL_TOL4                     _DC1TOL.Bits.TOL4
#define DC1TOL_ADD                      _DC1TOL.Bits.ADD
#define DC1TOL_TOL                      _DC1TOL.MergedBits.grpTOL

#define DC1TOL_TOL0_MASK                1
#define DC1TOL_TOL1_MASK                2
#define DC1TOL_TOL2_MASK                4
#define DC1TOL_TOL3_MASK                8
#define DC1TOL_TOL4_MASK                16
#define DC1TOL_ADD_MASK                 128
#define DC1TOL_TOL_MASK                 31
#define DC1TOL_TOL_BITNUM               0


/*** DC1BAUD - Data Codec 1 Baud Selection Register; 0x0000002B ***/
typedef union {
  byte Byte;
  struct {
    byte DCMR0       :1;                                       /* Second Divider Selection Bit 0 */
    byte DCMR1       :1;                                       /* Second Divider Selection Bit 1 */
    byte DCMR2       :1;                                       /* Second Divider Selection Bit 2 */
    byte             :1; 
    byte DCMP0       :1;                                       /* First Divider Selection bit */
    byte             :1; 
    byte DCMC        :1;                                       /* Divider clock option Selection bit */
    byte             :1; 
  } Bits;
  struct {
    byte grpDCMR :3;
    byte         :1;
    byte grpDCMP :1;
    byte         :1;
    byte         :1;
    byte         :1;
  } MergedBits;
} DC1BAUDSTR;
extern volatile DC1BAUDSTR _DC1BAUD @0x0000002B;
#define DC1BAUD                         _DC1BAUD.Byte
#define DC1BAUD_DCMR0                   _DC1BAUD.Bits.DCMR0
#define DC1BAUD_DCMR1                   _DC1BAUD.Bits.DCMR1
#define DC1BAUD_DCMR2                   _DC1BAUD.Bits.DCMR2
#define DC1BAUD_DCMP0                   _DC1BAUD.Bits.DCMP0
#define DC1BAUD_DCMC                    _DC1BAUD.Bits.DCMC
#define DC1BAUD_DCMR                    _DC1BAUD.MergedBits.grpDCMR

#define DC1BAUD_DCMR0_MASK              1
#define DC1BAUD_DCMR1_MASK              2
#define DC1BAUD_DCMR2_MASK              4
#define DC1BAUD_DCMP0_MASK              16
#define DC1BAUD_DCMC_MASK               64
#define DC1BAUD_DCMR_MASK               7
#define DC1BAUD_DCMR_BITNUM             0


/*** DC2CR - Data Codec 2 Control Register; 0x0000002F ***/
typedef union {
  byte Byte;
  struct {
    byte RSTTRG0     :1;                                       /* Reset trigger Selection Bit 0 */
    byte RSTTRG1     :1;                                       /* Reset trigger Selection Bit 1 */
    byte             :1; 
    byte INITLOG     :1;               

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -