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

📄 mb90495.h

📁 CanOpen的源代码
💻 H
📖 第 1 页 / 共 5 页
字号:
/*  FFMC-16 IO-MAP HEADER FILE      */
/*  ==========================      */
/* SOFTUNE WORKBENCH FORMAT         */
/* C-DEFINITIONS FOR IO-SYMBOLS     */
/* CREATED BY IO-WIZARD V2.4   */
/* DATE: 09.02.00 TIME: 10:10:42 AM */
/* *********************************************************** */
/*               FUJITSU MIKROELEKTRONIK GMBH                  */
/*               Am Siebenstein 6-10, 63303 Dreieich           */
/*               Tel.:++49/6103/690-0,Fax - 122                */
/*                                                             */
/* The following software is for demonstration purposes only.  */
/* It is not fully tested, nor validated in order to fullfill  */
/* its task under all circumstances. Therefore, this software  */
/* or any part of it must only be used in an evaluation        */
/* laboratory environment.                                     */
/* This software is subject to the rules of our standard       */
/* DISCLAIMER, that is delivered with our SW-tools (on the CD  */
/* "Micros Documentation & Software V3.0" see "\START.HTM" or  */
/* see our Internet Page -                                     */
/* http://www.fujitsu-ede.com/products/micro/disclaimer.html   */
/* *********************************************************** */
/* History: */
/* Date     Version     Author  Description */
/* 21.10.99 1.0         VSA     created */
/* 16.11.99 1.1         VSA     ... */
/* 17.11.99 1.2         VSA     ... */
/* 18.11.99 1.3         WP      Rom Mirror + WTC added + O>0 at PPG */
/* 29.11.99 1.4         WP      IPCP2+3 added UART1 register SMC1 > SMR1 */
/* 08.02.00 2.0         HLO     added: !D to canh, canm was missing */
/*                              canmac.h, canstr.h -> canmac8.h, canstr.h */
/* 09.02.00 2.1         HLO     CANSTR8.H updated */
/* 04.12.03 2.2         GB      dummy zugef黦t wegen AMR -> missing Acceptance Mask Regiters */

#ifndef   __MB90XXX_H
#  define __MB90XXX_H
/*
- Please define __IO_NEAR in LARGE and COMPACT memory model, if the default
  data bank (DTB) is 00. This will result in better performance in these
  models.
- Please define __IO_FAR in SMALL and MEDIUM memory model, if the default
  data bank (DTB) is other than 00. This might be the case in systems with
  external RAM, which are not using internal RAM as default data area.
- Please define neither __IO_NEAR nor __IO_FAR in all other cases. This
  will work with almost all configurations.
*/

#  ifdef  __IO_NEAR
#    ifdef  __IO_FAR
#      error __IO_NEAR and __IO_FAR must not be defined at the same time
#    else
#      define ___IOWIDTH __near
#    endif
#  else
#    ifdef __IO_FAR
#      define ___IOWIDTH __far
#    else                               /* specified by memory model */
#      define ___IOWIDTH
#    endif
#  endif
#  ifdef  __IO_DEFINE
#    define __IO_EXTERN
#    define __IO_EXTENDED volatile ___IOWIDTH
#  else
#    define __IO_EXTERN   extern      /* for data, which can have __io */
#    define __IO_EXTENDED extern volatile ___IOWIDTH
#  endif

typedef unsigned char		IO_UNSIGNED8;
typedef unsigned short		IO_UNSIGNED16;
typedef unsigned long		IO_LUNSIGNED16;
typedef const unsigned short	IO_UNSIGNED16_READ;

/* REGISTER BIT STRUCTURES */

typedef union{   /*  PORT DATA Registers */
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 P00 :1;
    IO_UNSIGNED8 P01 :1;
    IO_UNSIGNED8 P02 :1;
    IO_UNSIGNED8 P03 :1;
    IO_UNSIGNED8 P04 :1;
    IO_UNSIGNED8 P05 :1;
    IO_UNSIGNED8 P06 :1;
    IO_UNSIGNED8 P07 :1;
  }bit;
 }PDR0STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 P10 :1;
    IO_UNSIGNED8 P11 :1;
    IO_UNSIGNED8 P12 :1;
    IO_UNSIGNED8 P13 :1;
    IO_UNSIGNED8 P14 :1;
    IO_UNSIGNED8 P15 :1;
    IO_UNSIGNED8 P16 :1;
    IO_UNSIGNED8 P17 :1;
  }bit;
 }PDR1STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 P20 :1;
    IO_UNSIGNED8 P21 :1;
    IO_UNSIGNED8 P22 :1;
    IO_UNSIGNED8 P23 :1;
    IO_UNSIGNED8 P24 :1;
    IO_UNSIGNED8 P25 :1;
    IO_UNSIGNED8 P26 :1;
    IO_UNSIGNED8 P27 :1;
  }bit;
 }PDR2STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 P30 :1;
    IO_UNSIGNED8 P31 :1;
    IO_UNSIGNED8 P32 :1;
    IO_UNSIGNED8 P33 :1;
    IO_UNSIGNED8 P34 :1;
    IO_UNSIGNED8 P35 :1;
    IO_UNSIGNED8 P36 :1;
    IO_UNSIGNED8 P37 :1;
  }bit;
 }PDR3STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 P40 :1;
    IO_UNSIGNED8 P41 :1;
    IO_UNSIGNED8 P42 :1;
    IO_UNSIGNED8 P43 :1;
    IO_UNSIGNED8 P44 :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
  }bit;
 }PDR4STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 P50 :1;
    IO_UNSIGNED8 P51 :1;
    IO_UNSIGNED8 P52 :1;
    IO_UNSIGNED8 P53 :1;
    IO_UNSIGNED8 P54 :1;
    IO_UNSIGNED8 P55 :1;
    IO_UNSIGNED8 P56 :1;
    IO_UNSIGNED8 P57 :1;
  }bit;
 }PDR5STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 P60 :1;
    IO_UNSIGNED8 P61 :1;
    IO_UNSIGNED8 P62 :1;
    IO_UNSIGNED8 P63 :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
  }bit;
 }PDR6STR;
typedef union{   /* PORT DIR */
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 D00 :1;
    IO_UNSIGNED8 D01 :1;
    IO_UNSIGNED8 D02 :1;
    IO_UNSIGNED8 D03 :1;
    IO_UNSIGNED8 D04 :1;
    IO_UNSIGNED8 D05 :1;
    IO_UNSIGNED8 D06 :1;
    IO_UNSIGNED8 D07 :1;
  }bit;
 }DDR0STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 D10 :1;
    IO_UNSIGNED8 D11 :1;
    IO_UNSIGNED8 D12 :1;
    IO_UNSIGNED8 D13 :1;
    IO_UNSIGNED8 D14 :1;
    IO_UNSIGNED8 D15 :1;
    IO_UNSIGNED8 D16 :1;
    IO_UNSIGNED8 D17 :1;
  }bit;
 }DDR1STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 D20 :1;
    IO_UNSIGNED8 D21 :1;
    IO_UNSIGNED8 D22 :1;
    IO_UNSIGNED8 D23 :1;
    IO_UNSIGNED8 D24 :1;
    IO_UNSIGNED8 D25 :1;
    IO_UNSIGNED8 D26 :1;
    IO_UNSIGNED8 D27 :1;
  }bit;
 }DDR2STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 D30 :1;
    IO_UNSIGNED8 D31 :1;
    IO_UNSIGNED8 D32 :1;
    IO_UNSIGNED8 D33 :1;
    IO_UNSIGNED8 D34 :1;
    IO_UNSIGNED8 D35 :1;
    IO_UNSIGNED8 D36 :1;
    IO_UNSIGNED8 D37 :1;
  }bit;
 }DDR3STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 D40 :1;
    IO_UNSIGNED8 D41 :1;
    IO_UNSIGNED8 D42 :1;
    IO_UNSIGNED8 D43 :1;
    IO_UNSIGNED8 D44 :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
  }bit;
 }DDR4STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 D50 :1;
    IO_UNSIGNED8 D51 :1;
    IO_UNSIGNED8 D52 :1;
    IO_UNSIGNED8 D53 :1;
    IO_UNSIGNED8 D54 :1;
    IO_UNSIGNED8 D55 :1;
    IO_UNSIGNED8 D56 :1;
    IO_UNSIGNED8 D57 :1;
  }bit;
 }DDR5STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 D60 :1;
    IO_UNSIGNED8 D61 :1;
    IO_UNSIGNED8 D62 :1;
    IO_UNSIGNED8 D63 :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
  }bit;
 }DDR6STR;
typedef union{   /* AnalogInputEnable Port 5 */
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 ADE0 :1;
    IO_UNSIGNED8 ADE1 :1;
    IO_UNSIGNED8 ADE2 :1;
    IO_UNSIGNED8 ADE3 :1;
    IO_UNSIGNED8 ADE4 :1;
    IO_UNSIGNED8 ADE5 :1;
    IO_UNSIGNED8 ADE6 :1;
    IO_UNSIGNED8 ADE7 :1;
  }bit;
 }ADERSTR;
typedef union{   /* UART0 */
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 SOE :1;
    IO_UNSIGNED8 SCKE :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8 CS0 :1;
    IO_UNSIGNED8 CS1 :1;
    IO_UNSIGNED8 CS2 :1;
    IO_UNSIGNED8 MD0 :1;
    IO_UNSIGNED8 MD1 :1;
  }bit;
  struct{
    IO_UNSIGNED8 :1;
    IO_UNSIGNED8 :1;
    IO_UNSIGNED8 :1;
    IO_UNSIGNED8 CS :3;
    IO_UNSIGNED8 MD :2;
  }bitc;
 }SMR0STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 TXE :1;
    IO_UNSIGNED8 RXE :1;
    IO_UNSIGNED8 REC :1;
    IO_UNSIGNED8 AD :1;
    IO_UNSIGNED8 CL :1;
    IO_UNSIGNED8 SBL :1;
    IO_UNSIGNED8 P :1;
    IO_UNSIGNED8 PEN :1;
  }bit;
 }SCR0STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 D0 :1;
    IO_UNSIGNED8 D1 :1;
    IO_UNSIGNED8 D2 :1;
    IO_UNSIGNED8 D3 :1;
    IO_UNSIGNED8 D4 :1;
    IO_UNSIGNED8 D5 :1;
    IO_UNSIGNED8 D6 :1;
    IO_UNSIGNED8 D7 :1;
  }bit;
 }SIDR0STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 D0 :1;
    IO_UNSIGNED8 D1 :1;
    IO_UNSIGNED8 D2 :1;
    IO_UNSIGNED8 D3 :1;
    IO_UNSIGNED8 D4 :1;
    IO_UNSIGNED8 D5 :1;
    IO_UNSIGNED8 D6 :1;
    IO_UNSIGNED8 D7 :1;
  }bit;
 }SODR0STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 TIE :1;
    IO_UNSIGNED8 RIE :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8 TDRE :1;
    IO_UNSIGNED8 RDRF :1;
    IO_UNSIGNED8 FRE :1;
    IO_UNSIGNED8 ORE :1;
    IO_UNSIGNED8 PE :1;
  }bit;
 }SSR0STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 DIV0 :1;
    IO_UNSIGNED8 DIV1 :1;
    IO_UNSIGNED8 DIV2 :1;
    IO_UNSIGNED8 DIV3 :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8 MD :1;
  }bit;
  struct{
    IO_UNSIGNED8 DIV :4;
  }bitc;
 }CDCR0STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 NEG :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
  }bit;
 }SES0STR;
typedef union{   /* UART1 */
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 SOE :1;
    IO_UNSIGNED8 SCKE :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8 CS0 :1;
    IO_UNSIGNED8 CS1 :1;
    IO_UNSIGNED8 CS2 :1;
    IO_UNSIGNED8 MD0 :1;
    IO_UNSIGNED8 MD1 :1;
  }bit;
  struct{
    IO_UNSIGNED8 :1;
    IO_UNSIGNED8 :1;
    IO_UNSIGNED8 :1;
    IO_UNSIGNED8 CS :3;
    IO_UNSIGNED8 MD :2;
  }bitc;
 }SMR1STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 TXE :1;
    IO_UNSIGNED8 RXE :1;
    IO_UNSIGNED8 REC :1;
    IO_UNSIGNED8 AD :1;
    IO_UNSIGNED8 CL :1;
    IO_UNSIGNED8 SBL :1;
    IO_UNSIGNED8 P :1;
    IO_UNSIGNED8 PEN :1;
  }bit;
 }SCR1STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 D0 :1;
    IO_UNSIGNED8 D1 :1;
    IO_UNSIGNED8 D2 :1;
    IO_UNSIGNED8 D3 :1;
    IO_UNSIGNED8 D4 :1;
    IO_UNSIGNED8 D5 :1;
    IO_UNSIGNED8 D6 :1;
    IO_UNSIGNED8 D7 :1;
  }bit;
 }SIDR1STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 D0 :1;
    IO_UNSIGNED8 D1 :1;
    IO_UNSIGNED8 D2 :1;
    IO_UNSIGNED8 D3 :1;
    IO_UNSIGNED8 D4 :1;
    IO_UNSIGNED8 D5 :1;
    IO_UNSIGNED8 D6 :1;
    IO_UNSIGNED8 D7 :1;
  }bit;
 }SODR1STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 TIE :1;
    IO_UNSIGNED8 RIE :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8 TDRE :1;
    IO_UNSIGNED8 RDRF :1;
    IO_UNSIGNED8 FRE :1;
    IO_UNSIGNED8 ORE :1;
    IO_UNSIGNED8 PE :1;
  }bit;
 }SSR1STR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 DIV0 :1;
    IO_UNSIGNED8 DIV1 :1;
    IO_UNSIGNED8 DIV2 :1;
    IO_UNSIGNED8 DIV3 :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8  :1;
    IO_UNSIGNED8 MD :1;
  }bit;
  struct{
    IO_UNSIGNED8 DIV :4;
  }bitc;
 }CDCR1STR;
typedef union{   /* DTP, External Interrupts */
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 EN0 :1;
    IO_UNSIGNED8 EN1 :1;
    IO_UNSIGNED8 EN2 :1;
    IO_UNSIGNED8 EN3 :1;
    IO_UNSIGNED8 EN4 :1;
    IO_UNSIGNED8 EN5 :1;
    IO_UNSIGNED8 EN6 :1;
    IO_UNSIGNED8 EN7 :1;
  }bit;
 }ENIRSTR;
typedef union{  
    IO_UNSIGNED8	byte;
    struct{
    IO_UNSIGNED8 ER0 :1;

⌨️ 快捷键说明

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