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

📄 mb90495.h

📁 CanOpen的源代码
💻 H
📖 第 1 页 / 共 5 页
字号:
      IO_UNSIGNED16      :1;
    } bit;
    struct{
      IO_UNSIGNED16 PSC :6;
      IO_UNSIGNED16 RSJ :2;
      IO_UNSIGNED16 TS1 :4;
      IO_UNSIGNED16 TS2 :3;
    } bitc;
  } btr;
  union{  
    IO_UNSIGNED8 byte;
    IO_UNSIGNED8 _reserved;
      struct{
      IO_UNSIGNED16 IDE0 :1;
      IO_UNSIGNED16 IDE1 :1;
      IO_UNSIGNED16 IDE2 :1;
      IO_UNSIGNED16 IDE3 :1;
      IO_UNSIGNED16 IDE4 :1;
      IO_UNSIGNED16 IDE5 :1;
      IO_UNSIGNED16 IDE6 :1;
      IO_UNSIGNED16 IDE7 :1;
    } bit;
  } ider;
  union{  
    IO_UNSIGNED8 byte;
    IO_UNSIGNED8 _reserved;
    struct{
      IO_UNSIGNED16 TRTR0 :1;
      IO_UNSIGNED16 TRTR1 :1;
      IO_UNSIGNED16 TRTR2 :1;
      IO_UNSIGNED16 TRTR3 :1;
      IO_UNSIGNED16 TRTR4 :1;
      IO_UNSIGNED16 TRTR5 :1;
      IO_UNSIGNED16 TRTR6 :1;
      IO_UNSIGNED16 TRTR7 :1;
    } bit;
  } trtrr;
  union{  
    IO_UNSIGNED8 byte;
    IO_UNSIGNED8 _reserved;
    struct{
      IO_UNSIGNED16 RFWT0 :1;
      IO_UNSIGNED16 RFWT1 :1;
      IO_UNSIGNED16 RFWT2 :1;
      IO_UNSIGNED16 RFWT3 :1;
      IO_UNSIGNED16 RFWT4 :1;
      IO_UNSIGNED16 RFWT5 :1;
      IO_UNSIGNED16 RFWT6 :1;
      IO_UNSIGNED16 RFWT7 :1;
    } bit;
  } rfwtr;
  union{  
    IO_UNSIGNED8 byte;
    IO_UNSIGNED8 _reserved;
    struct{
    IO_UNSIGNED16 TIE0 :1;
    IO_UNSIGNED16 TIE1 :1;
    IO_UNSIGNED16 TIE2 :1;
    IO_UNSIGNED16 TIE3 :1;
    IO_UNSIGNED16 TIE4 :1;
    IO_UNSIGNED16 TIE5 :1;
    IO_UNSIGNED16 TIE6 :1;
    IO_UNSIGNED16 TIE7 :1;
  } bit;
 } tier;
  union{
    IO_UNSIGNED16     word;
	IO_UNSIGNED16     _reserved;
    struct{
      IO_UNSIGNED16    AMS00:1;
      IO_UNSIGNED16    AMS01:1;
      IO_UNSIGNED16    AMS10:1;
      IO_UNSIGNED16    AMS11:1;
      IO_UNSIGNED16    AMS20:1;
      IO_UNSIGNED16    AMS21:1;
      IO_UNSIGNED16    AMS30:1;
      IO_UNSIGNED16    AMS31:1;
      IO_UNSIGNED16    AMS40:1;
      IO_UNSIGNED16    AMS41:1;
      IO_UNSIGNED16    AMS50:1;
      IO_UNSIGNED16    AMS51:1;
      IO_UNSIGNED16    AMS60:1;
      IO_UNSIGNED16    AMS61:1;
      IO_UNSIGNED16    AMS70:1;
      IO_UNSIGNED16    AMS71:1;
    }bit;
    struct{
      IO_UNSIGNED16    AMS0:2;
      IO_UNSIGNED16    AMS1:2;
      IO_UNSIGNED16    AMS2:2;
      IO_UNSIGNED16    AMS3:2;
      IO_UNSIGNED16    AMS4:2;
      IO_UNSIGNED16    AMS5:2;
      IO_UNSIGNED16    AMS6:2;
      IO_UNSIGNED16    AMS7:2;
    } bitc;
  } amsr;
  struct{
  	IO_UNSIGNED16 reserved1;
  } dummy;		// eingef黦t GB,fehlte in der struktur
  union {
    IO_LUNSIGNED16   dword;
    IO_UNSIGNED16     word;
    struct {
        IO_UNSIGNED16 AM21 :1;
        IO_UNSIGNED16 AM22 :1;
        IO_UNSIGNED16 AM23 :1;
        IO_UNSIGNED16 AM24 :1;
        IO_UNSIGNED16 AM25 :1;
        IO_UNSIGNED16 AM26 :1;
        IO_UNSIGNED16 AM27 :1;
        IO_UNSIGNED16 AM28 :1;

        IO_UNSIGNED16 AM13 :1;
        IO_UNSIGNED16 AM14 :1;
        IO_UNSIGNED16 AM15 :1;
        IO_UNSIGNED16 AM16 :1;
        IO_UNSIGNED16 AM17 :1;
        IO_UNSIGNED16 AM18 :1;
        IO_UNSIGNED16 AM19 :1;
        IO_UNSIGNED16 AM20 :1;

        IO_UNSIGNED16 AM5 :1;
        IO_UNSIGNED16 AM6 :1;
        IO_UNSIGNED16 AM7 :1;
        IO_UNSIGNED16 AM8 :1;
        IO_UNSIGNED16 AM9 :1;
        IO_UNSIGNED16 AM10 :1;
        IO_UNSIGNED16 AM11 :1;
        IO_UNSIGNED16 AM12 :1;

        IO_UNSIGNED16      :3;
        IO_UNSIGNED16 AM0 :1;
        IO_UNSIGNED16 AM1 :1;
        IO_UNSIGNED16 AM2 :1;
        IO_UNSIGNED16 AM3 :1;
        IO_UNSIGNED16 AM4 :1;
    } bit_ext;
    struct {
        IO_UNSIGNED16 AM3 :1;
        IO_UNSIGNED16 AM4 :1;
        IO_UNSIGNED16 AM5 :1;
        IO_UNSIGNED16 AM6 :1;
        IO_UNSIGNED16 AM7 :1;
        IO_UNSIGNED16 AM8 :1;
        IO_UNSIGNED16 AM9 :1;
        IO_UNSIGNED16 AM10 :1;

        IO_UNSIGNED16     :5;
        IO_UNSIGNED16 AM0 :1;
        IO_UNSIGNED16 AM1 :1;
        IO_UNSIGNED16 AM2 :1;
    } bit_std;
    struct {
        IO_UNSIGNED16 AM21_28    : 8;
        IO_UNSIGNED16 AM13_20    : 8;
        IO_UNSIGNED16 AM5_12     : 8;
        IO_UNSIGNED16 unused     : 3;            /* unused bits */
        IO_UNSIGNED16 AM0_4      : 5;
    } bitc_ext;
    struct {
        IO_UNSIGNED16 AM3_10 : 8;
        IO_UNSIGNED16 unused : 5;                /* unused bits   */
        IO_UNSIGNED16 AM0_2  : 3;
        /*IO_UNSIGNED16 upper    :16;                /* unused bits */
    } bitc_std;
  } amr[2];
} CANHSTR;

typedef struct
{
    IO_UNSIGNED16 ram[8];
    union {
    IO_LUNSIGNED16   dword;
    IO_UNSIGNED16     word;
    struct {
        const IO_UNSIGNED16 ID21 :1;
        const IO_UNSIGNED16 ID22 :1;
        const IO_UNSIGNED16 ID23 :1;
        const IO_UNSIGNED16 ID24 :1;
        const IO_UNSIGNED16 ID25 :1;
        const IO_UNSIGNED16 ID26 :1;
        const IO_UNSIGNED16 ID27 :1;
        const IO_UNSIGNED16 ID28 :1;

        const IO_UNSIGNED16 ID13 :1;
        const IO_UNSIGNED16 ID14 :1;
        const IO_UNSIGNED16 ID15 :1;
        const IO_UNSIGNED16 ID16 :1;
        const IO_UNSIGNED16 ID17 :1;
        const IO_UNSIGNED16 ID18 :1;
        const IO_UNSIGNED16 ID19 :1;
        const IO_UNSIGNED16 ID20 :1;

        const IO_UNSIGNED16 ID5 :1;
        const IO_UNSIGNED16 ID6 :1;
        const IO_UNSIGNED16 ID7 :1;
        const IO_UNSIGNED16 ID8 :1;
        const IO_UNSIGNED16 ID9 :1;
        const IO_UNSIGNED16 ID10 :1;
        const IO_UNSIGNED16 ID11 :1;
        const IO_UNSIGNED16 ID12 :1;

        const IO_UNSIGNED16     :3;
        const IO_UNSIGNED16 ID0 :1;
        const IO_UNSIGNED16 ID1 :1;
        const IO_UNSIGNED16 ID2 :1;
        const IO_UNSIGNED16 ID3 :1;
        const IO_UNSIGNED16 ID4 :1;
    } bit_ext;
    struct {
        const IO_UNSIGNED16 ID3 :1;
        const IO_UNSIGNED16 ID4 :1;
        const IO_UNSIGNED16 ID5 :1;
        const IO_UNSIGNED16 ID6 :1;
        const IO_UNSIGNED16 ID7 :1;
        const IO_UNSIGNED16 ID8 :1;
        const IO_UNSIGNED16 ID9 :1;
        const IO_UNSIGNED16 ID10:1;

        const IO_UNSIGNED16 ID  :5;
        const IO_UNSIGNED16 ID0 :1;
        const IO_UNSIGNED16 ID1 :1;
        const IO_UNSIGNED16 ID2 :1;
    } bit_std;
    struct {
        const IO_UNSIGNED16 ID21_28 : 8;
        const IO_UNSIGNED16 ID13_20 : 8;
        const IO_UNSIGNED16 ID5_12  : 8;
        const IO_UNSIGNED16 unused  : 3;         /* unused bits */
        const IO_UNSIGNED16 ID0_4   : 5;
    } bitc_ext;
    struct {
        const IO_UNSIGNED16 ID3_10  : 8;
        const IO_UNSIGNED16 unused  : 5;             /* unused bits   */
        const IO_UNSIGNED16 ID0_2   : 3;
    } bitc_std;
  } idr[8];
  union{
    IO_UNSIGNED16         word;
    IO_UNSIGNED8         byte;
    struct {
        IO_UNSIGNED16     DLC0:1;
        IO_UNSIGNED16     DLC1:1;
        IO_UNSIGNED16     DLC2:1;
        IO_UNSIGNED16     DLC3:1;
    } bit;
    struct {
        IO_UNSIGNED16     DLC:4;
    } bitc;
  } dlcr[8];
  union{
          IO_LUNSIGNED16      dwords [2];
          long          longs  [2];
          IO_UNSIGNED16       words  [4];
          int           ints   [4];
    const IO_UNSIGNED8       bytes  [8]; /* because of word access*/
    const char          chars  [8]; /* because of word access*/
          float         floats [2];
          double        adouble;
  }dtr[8];
} CANMSTR;

#endif	/* CANSTR */
__IO_EXTERN __io DIRRSTR _dirr;   /* Delayed Interrupt */
#define DIRR _dirr.byte
#define DIRR_R0 _dirr.bit.R0
__IO_EXTERN __io LPMCRSTR _lpmcr;   /* Low Power Control Registers */
#define LPMCR _lpmcr.byte
#define LPMCR_SSR _lpmcr.bit.SSR
#define LPMCR_CG0 _lpmcr.bit.CG0
#define LPMCR_CG1 _lpmcr.bit.CG1
#define LPMCR_TMD _lpmcr.bit.TMD
#define LPMCR_RST _lpmcr.bit.RST
#define LPMCR_SPL _lpmcr.bit.SPL
#define LPMCR_SLP _lpmcr.bit.SLP
#define LPMCR_STP _lpmcr.bit.STP
#define LPMCR_CG _lpmcr.bitc.CG
__IO_EXTERN __io CKSCRSTR _ckscr;  
#define CKSCR _ckscr.byte
#define CKSCR_CS0 _ckscr.bit.CS0
#define CKSCR_CS1 _ckscr.bit.CS1
#define CKSCR_MCS _ckscr.bit.MCS
#define CKSCR_SCS _ckscr.bit.SCS
#define CKSCR_WS0 _ckscr.bit.WS0
#define CKSCR_WS1 _ckscr.bit.WS1
#define CKSCR_MCM _ckscr.bit.MCM
#define CKSCR_SCM _ckscr.bit.SCM
#define CKSCR_CS _ckscr.bitc.CS
#define CKSCR_WS _ckscr.bitc.WS
__IO_EXTERN __io ARSRSTR _arsr;   /* Bus Pin Control Circuit */
#define ARSR _arsr.byte
#define ARSR_LMR0 _arsr.bit.LMR0
#define ARSR_LMR1 _arsr.bit.LMR1
#define ARSR_HMR0 _arsr.bit.HMR0
#define ARSR_HMR1 _arsr.bit.HMR1
#define ARSR_IOR0 _arsr.bit.IOR0
#define ARSR_IOR1 _arsr.bit.IOR1
#define ARSR_LMR _arsr.bitc.LMR
#define ARSR_HMR _arsr.bitc.HMR
#define ARSR_IOR _arsr.bitc.IOR
__IO_EXTERN __io HACRSTR _hacr;  
#define HACR _hacr.byte
#define HACR_E16 _hacr.bit.E16
#define HACR_E17 _hacr.bit.E17
#define HACR_E18 _hacr.bit.E18
#define HACR_E19 _hacr.bit.E19
#define HACR_E20 _hacr.bit.E20
#define HACR_E21 _hacr.bit.E21
#define HACR_E22 _hacr.bit.E22
#define HACR_E23 _hacr.bit.E23
__IO_EXTERN __io ECSRSTR _ecsr;  
#define ECSR _ecsr.byte
#define ECSR_LMBS _ecsr.bit.LMBS
#define ECSR_WRE _ecsr.bit.WRE
#define ECSR_HMBS _ecsr.bit.HMBS
#define ECSR_IOBS _ecsr.bit.IOBS
#define ECSR_HDE _ecsr.bit.HDE
#define ECSR_RYE _ecsr.bit.RYE
#define ECSR_CKE _ecsr.bit.CKE
__IO_EXTERN __io WDTCSTR _wdtc;   /* Watch Dog */
#define WDTC _wdtc.byte
#define WDTC_WT0 _wdtc.bit.WT0
#define WDTC_WT1 _wdtc.bit.WT1
#define WDTC_WTE _wdtc.bit.WTE
#define WDTC_SRST _wdtc.bit.SRST
#define WDTC_ERST _wdtc.bit.ERST
#define WDTC_WRST _wdtc.bit.WRST
#define WDTC_PONR _wdtc.bit.PONR
#define WDTC_WT _wdtc.bitc.WT
__IO_EXTERN __io TBTCSTR _tbtc;   /* Time Base Timer */
#define TBTC _tbtc.byte
#define TBTC_TBC0 _tbtc.bit.TBC0
#define TBTC_TBC1 _tbtc.bit.TBC1
#define TBTC_TBR _tbtc.bit.TBR
#define TBTC_TBOF _tbtc.bit.TBOF
#define TBTC_TBIE _tbtc.bit.TBIE
#define TBTC_TBC _tbtc.bitc.TBC
__IO_EXTERN __io WTCSTR _wtc;   /* Watch Timer */
#define WTC _wtc.byte
#define WTC_WTC0 _wtc.bit.WTC0
#define WTC_WTC1 _wtc.bit.WTC1
#define WTC_WTC2 _wtc.bit.WTC2
#define WTC_WTR _wtc.bit.WTR
#define WTC_WTOF _wtc.bit.WTOF
#define WTC_WTIE _wtc.bit.WTIE
#define WTC_SCE _wtc.bit.SCE
#define WTC_WDCS _wtc.bit.WDCS
__IO_EXTERN __io FMCSSTR _fmcs;   /* Flash Control Register */
#define FMCS _fmcs.byte
#define FMCS_LPM0 _fmcs.bit.LPM0
#define FMCS_LPM1 _fmcs.bit.LPM1
#define FMCS_RDY _fmcs.bit.RDY
#define FMCS_WE _fmcs.bit.WE
#define FMCS_RDYINT _fmcs.bit.RDYINT
#define FMCS_INTE _fmcs.bit.INTE
/*******************************************************************
 *
 *    DESCRIPTION:  Interrupt Control Register Declaration
 *
 *    AUTHOR:       Fujitsu Mikroelektronik GmbH
 *
 *    HISTORY:    
 * Version 1.0      26.01.99: 
 *      - original version
 * Version 1.2      11.02.99
 *      - "extern" changed to pre-defined macro of IO-Wizard 
 *        (__IO_EXTERN), requires IO-Wizard 1.7 or later
 *
 *******************************************************************/

#ifndef __ICR_H
#define __ICR_H

typedef union{  
    unsigned char    byte;
    struct{
      unsigned char IL0      :1;
      unsigned char IL1      :1;
      unsigned char IL2      :1;
      unsigned char ISE      :1;
      unsigned char ICS0     :1;
      unsigned char ICS1     :1;
      unsigned char ICS2     :1;
      unsigned char ICS3     :1;
    }bit;
    struct{
            unsigned char    :4;
      const unsigned char S0 :1;
      const unsigned char S1 :1;
    }bitrd;
    struct{
      unsigned char IL       :3;
      unsigned char 	     :1;
      unsigned char ICS      :4;
    }bitc;
    struct{
            unsigned char    :4;
      const unsigned char S  :2;
    }bitcrd;
 }ICRSTR;

__IO_EXTERN __io ICRSTR _icr[16];

#define ICR(i)        _icr[i].byte
#define ICR_IL0(i)    _icr[i].bit.IL0
#define ICR_IL1(i)    _icr[i].bit.IL1
#define ICR_IL2(i)    _icr[i].bit.IL2
#define ICR_ISE(i)    _icr[i].bit.ISE
#define ICR_ICS0(i)   _icr[i].bit.ICS0
#define ICR_ICS1(i)   _icr[i].bit.ICS1
#define ICR_ICS2(i)   _icr[i].bit.ICS2
#define ICR_ICS3(i)   _icr[i].bit.ICS3
#define ICR_IL(i)     _icr[i].bitc.IL
#define ICR_ICS(i)    _icr[i].bitc.ICS
#define ICR_S0(i)     _icr[i].bitrd.S0
#define ICR_S1(i)     _icr[i].bitrd.S1
#define ICR_S(i)      _icr[i].bitcrd.S

#define ICR00       _icr[0].byte
#define ICR00_IL0   _icr[0].bit.IL0
#define ICR00_IL1   _icr[0].bit.IL1
#define ICR00_IL2   _icr[0].bit.IL2
#define ICR00_ISE   _icr[0].bit.ISE
#define ICR00_ICS0  _icr[0].bit.ICS0
#define ICR00_ICS1  _icr[0].bit.ICS1
#define ICR00_ICS2  _icr[0].bit.ICS2
#define ICR00_ICS3  _icr[0].bit.ICS3
#define ICR00_IL    _icr[0].bitc.IL
#define ICR00_ICS   _icr[0].bitc.ICS
#define ICR00_S0    _icr[0].bitrd.S0
#define ICR00_S1    _icr[0].bitrd.S1
#define ICR00_S     _icr[0].bitcrd.S

#define ICR01       _icr[1].byte
#define ICR01_IL0   _icr[1].bit.IL0
#define ICR01_IL1   _icr[1].bit.IL1
#define ICR01_IL2   _icr[1].bit.IL2
#define ICR01_ISE   _icr[1].bit.ISE
#define ICR01_ICS0  _icr[1].bit.ICS0
#define ICR01_ICS1  _icr[1].bit.ICS1
#define ICR01_ICS2  _icr[1].bit.ICS2
#define ICR01_ICS3  _icr[1].bit.ICS3
#define ICR01_IL    _icr[1].bitc.IL
#define ICR01_ICS   _icr[1].bitc.ICS
#define ICR01_S0    _icr[1].bitrd.S0
#define ICR01_S1    _icr[1].bitrd.S1
#define ICR01_S     _icr[1].bitcrd.S

#define ICR02       _icr[2].byte
#define ICR02_IL0   _icr[2].bit.IL0
#define ICR02_IL1   _icr[2].bit.IL1
#define ICR02_IL2   _icr[2].bit.IL2
#define ICR02_ISE   _icr[2].bit.ISE
#define ICR02_ICS0  _icr[2].bit.ICS0
#define ICR02_ICS1  _icr[2].bit.ICS1
#define ICR02_ICS2  _icr[2].bit.ICS2
#define ICR02_ICS3  _icr[2].bit.ICS3
#define ICR02_IL    _icr[2].bitc.IL
#define ICR02_ICS   _icr[2].bitc.ICS
#define ICR02_S0    _icr[2].bitrd.S0
#define ICR02_S1    _icr[2].bitrd.S1
#define ICR02_S     _icr[2].bitcrd.S

#define ICR03       _icr[3].byte
#define ICR03_IL0   _icr[3].bit.IL0
#define ICR03_IL1   _icr[3].bit.IL1
#define ICR03_IL2   _icr[3].bit.IL2
#define ICR03_ISE   _icr[3].bit.ISE
#define ICR03_ICS0  _icr[3].bit.ICS0
#define ICR03_ICS1  _icr[3].bit.ICS1
#define ICR03_ICS2  _ic

⌨️ 快捷键说明

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