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

📄 z8536.h

📁 IXP425的BSP代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/* Master Configuration Control register values */#define  ZCIO_MCC_PLC_IND  ((UINT8) ZERO)  /* port A and B INDependent */#define  ZCIO_MCC_LC_IND   ((UINT8) ZERO)  /* counter/timers INDependent */#define  ZCIO_MCC_LC_GATE  ((UINT8) 0x01)  /* ct1 output GATEs ct2 */#define  ZCIO_MCC_LC_TRIG  ((UINT8) 0x02)  /* ct1 output TRIGgers ct2 */#define  ZCIO_MCC_LC_CNT   ((UINT8) 0x03)  /* ct1 output is ct2 CouNT input */#define  ZCIO_MCC_LC       ((UINT8) 0x03)  /* counter/timer Link Controls */#define  ZCIO_MCC_PAE      ((UINT8) 0x04)  /* Port A Enable */#define  ZCIO_MCC_PLC      ((UINT8) 0x08)  /* Port Link Control */#define  ZCIO_MCC_PLC_LNK  ((UINT8) 0x08)  /* port A and B are LiNKed */#define  ZCIO_MCC_CT3PCE   ((UINT8) 0x10)  /* C/T 3 and Port C Enable */#define  ZCIO_MCC_CT2E     ((UINT8) 0x20)  /* Counter/Timer 2 Enable */#define  ZCIO_MCC_CT1E     ((UINT8) 0x40)  /* Counter/Timer 1 Enable */#define  ZCIO_MCC_PBE      ((UINT8) 0x80)  /* Port B Enable *//* Master Interrupt Control register values */#define  ZCIO_MIC_RESET    ((UINT8) 0x01)  /* device RESET */#define  ZCIO_MIC_RJ       ((UINT8) 0x02)  /* Right Just */#define  ZCIO_MIC_CTVIS    ((UINT8) 0x04)  /* C/T Vector Includes Status */#define  ZCIO_MIC_PBVIS    ((UINT8) 0x08)  /* Port B Vector Includes Status */#define  ZCIO_MIC_PAVIS    ((UINT8) 0x10)  /* Port A Vector Includes Status */#define  ZCIO_MIC_NV       ((UINT8) 0x20)  /* No Vector */#define  ZCIO_MIC_DLC      ((UINT8) 0x40)  /* Disable Lower Chain */#define  ZCIO_MIC_MIE      ((UINT8) 0x80)  /* Master Interrupt Enable *//* Command and Status resigter values (port A and B and C/T 1, 2 and 3) */#define  ZCIO_CS_NC        ((UINT8) ZERO)  /* Null Code */#define  ZCIO_CS_CIP       ((UINT8) 0x01)  /* Count In Progress */#define  ZCIO_CS_IOE       ((UINT8) 0x01)  /* Interrupt On Error */#define  ZCIO_CS_TCB       ((UINT8) 0x02)  /* Trigger Command Bit */#define  ZCIO_CS_PMF       ((UINT8) 0x02)  /* Pattern Match Flag */#define  ZCIO_CS_IRF       ((UINT8) 0x04)  /* Input Register Full */#define  ZCIO_CS_GCB       ((UINT8) 0x04)  /* Gate Command Bit */#define  ZCIO_CS_RCC       ((UINT8) 0x08)  /* Read Counter Control */#define  ZCIO_CS_ORE       ((UINT8) 0x08)  /* Output Register Empty */#define  ZCIO_CS_ERR       ((UINT8) 0x10)  /* interrupt ERRor */#define  ZCIO_CS_IP        ((UINT8) 0x20)  /* Interrupt Pending */#define  ZCIO_CS_CLIPIUS   ((UINT8) 0x20)  /* CLear IP and IUS */#define  ZCIO_CS_IE        ((UINT8) 0x40)  /* Interrupt Enable */#define  ZCIO_CS_SIUS      ((UINT8) 0x40)  /* Set Interrupt Under Service */#define  ZCIO_CS_CLIUS     ((UINT8) 0x60)  /* CLear Interrupt Under Service */#define  ZCIO_CS_IUS       ((UINT8) 0x80)  /* Interrupt Under Service */#define  ZCIO_CS_SIP       ((UINT8) 0x80)  /* Set Interrupt Pending */#define  ZCIO_CS_CLIP      ((UINT8) 0xa0)  /* CLear Interrupt Pending */#define  ZCIO_CS_SIE       ((UINT8) 0xc0)  /* Set Interrupt Enable */#define  ZCIO_CS_CLIE      ((UINT8) 0xe0)  /* CLear Interrupt Enable *//* Data Direction register values (port A, B and C) */#define  ZCIO_DD_OUT       ((UINT8) ZERO)  /* OUTput bit */#define  ZCIO_DD_IN        ((UINT8) 0xff)  /* INput bit *//* Data Path Polarity register values (port A, B and C) */#define  ZCIO_DPP_NONINV   ((UINT8) ZERO)  /* NON-INVerting */#define  ZCIO_DPP_INVERT   ((UINT8) 0xff)  /* INVerting *//* Port Handshake Specification register values (port A and B) */#define  ZCIO_PHS_RWS_RWD  ((UINT8) ZERO)  /* Request/Wait Disabled */#define  ZCIO_PHS_DTS_2    ((UINT8) ZERO)  /* 2 PCLK cycles */#define  ZCIO_PHS_HTS_IH   ((UINT8) ZERO)  /* Interlocked Handshake */#define  ZCIO_PHS_DTS_4    ((UINT8) 0x01)  /* 4 PCLK cycles */#define  ZCIO_PHS_DTS_6    ((UINT8) 0x02)  /* 6 PCLK cycles */#define  ZCIO_PHS_DTS_8    ((UINT8) 0x03)  /* 8 PCLK cycles */#define  ZCIO_PHS_DTS_10   ((UINT8) 0x04)  /* 10 PCLK cycles */#define  ZCIO_PHS_DTS_12   ((UINT8) 0x05)  /* 12 PCLK cycles */#define  ZCIO_PHS_DTS_14   ((UINT8) 0x06)  /* 14 PCLK cycles */#define  ZCIO_PHS_DTS      ((UINT8) 0x07)  /* Deskew Time Specification */#define  ZCIO_PHS_DTS_16   ((UINT8) 0x07)  /* 16 PCLK cycles */#define  ZCIO_PHS_RWS_OW   ((UINT8) 0x08)  /* Output Wait */#define  ZCIO_PHS_RWS_IW   ((UINT8) 0x18)  /* Input Wait */#define  ZCIO_PHS_RWS_SR   ((UINT8) 0x20)  /* Special Request */#define  ZCIO_PHS_RWS_OR   ((UINT8) 0x28)  /* Output Request */#define  ZCIO_PHS_RWS_IR   ((UINT8) 0x38)  /* Input Request */#define  ZCIO_PHS_RWS      ((UINT8) 0x38)  /* Request/Wait Specification */#define  ZCIO_PHS_HTS_SH   ((UINT8) 0x40)  /* Strobed Handshake */#define  ZCIO_PHS_HTS_PH   ((UINT8) 0x80)  /* Pulsed Handshake */#define  ZCIO_PHS_HTS_3WH  ((UINT8) 0xc0)  /* 3-Wire Handshake */#define  ZCIO_PHS_HTS      ((UINT8) 0xc0)  /* Handshake Type Specification *//* Interrupt Vector register values (port A and B and C/Ts) */#define  ZCIO_IV_ERR       ((UINT8) ZERO)  /* Error */#define  ZCIO_IV_CT3       ((UINT8) ZERO)  /* Counter/Timer 3 */#define  ZCIO_IV_CT2       ((UINT8) 0x02)  /* Counter/Timer 2 */#define  ZCIO_IV_PMF       ((UINT8) 0x02)  /* Pattern Match Flag */#define  ZCIO_IV_IRF       ((UINT8) 0x04)  /* Input Register Full */#define  ZCIO_IV_CT1       ((UINT8) 0x04)  /* Counter/Timer 1 */#define  ZCIO_IV_CTE       ((UINT8) 0x06)  /* Counter/Timer Error */#define  ZCIO_IV_ORE       ((UINT8) 0x08)  /* Output Register Empty *//* Port Mode Specification register values (port A and B) */#define  ZCIO_PMS_PTS_BIT  ((UINT8) ZERO)  /* BIT port */#define  ZCIO_PMS_PMS_DPM  ((UINT8) ZERO)  /* Disable Pattern Match */#define  ZCIO_PMS_LPM      ((UINT8) 0x01)  /* Latch on Pattern Match */#define  ZCIO_PMS_DTE      ((UINT8) 0x01)  /* Deskew Timer Enable */#define  ZCIO_PMS_PMS_AND  ((UINT8) 0x02)  /* "AND" mode */#define  ZCIO_PMS_PMS_OR   ((UINT8) 0x04)  /* "OR" mode */#define  ZCIO_PMS_PMS      ((UINT8) 0x06)  /* Pattern Mode Specification */#define  ZCIO_PMS_PMS_PEV  ((UINT8) 0x06)  /* "Priority Encoded Vector" mode */#define  ZCIO_PMS_IMO      ((UINT8) 0x08)  /* Interrupt on Match Only */#define  ZCIO_PMS_SB       ((UINT8) 0x10)  /* Single Buffered mode */#define  ZCIO_PMS_ITB      ((UINT8) 0x20)  /* Interrupt on Two Bytes */#define  ZCIO_PMS_PTS_IN   ((UINT8) 0x40)  /* INput port */#define  ZCIO_PMS_PTS_OUT  ((UINT8) 0x80)  /* OUTput port */#define  ZCIO_PMS_PTS_BI   ((UINT8) 0xc0)  /* BIdirectal port */#define  ZCIO_PMS_PTS      ((UINT8) 0xc0)  /* Port Type Select *//* Pattern Mask resigter values (port A and B) */#define  ZCIO_PM_OFF       ((UINT8) ZERO)  /* Bit Masked Off (X) */#define  ZCIO_PM_ANY       ((UINT8) ZERO)  /* Any Transition (^ or v) */#define  ZCIO_PM_ZERO      ((UINT8) 0xff)  /* Zero (0) */#define  ZCIO_PM_ONE       ((UINT8) 0xff)  /* One (1) */#define  ZCIO_PM_0TO1      ((UINT8) 0xff)  /* Zero to One Transition (^) */#define  ZCIO_PM_1TO0      ((UINT8) 0xff)  /* One to Zero Transition (v) *//* Pattern Polarity register values (port A and B) */#define  ZCIO_PP_OFF       ((UINT8) ZERO)  /* Bit Masked Off (X) */#define  ZCIO_PP_ANY       ((UINT8) ZERO)  /* Any Transition (^ or v) */#define  ZCIO_PP_ZERO      ((UINT8) ZERO)  /* Zero (0) */#define  ZCIO_PP_1TO0      ((UINT8) ZERO)  /* One to Zero Transition (v) */#define  ZCIO_PP_ONE       ((UINT8) 0xff)  /* One (1) */#define  ZCIO_PP_0TO1      ((UINT8) 0xff)  /* Zero to One Transition (^) *//* Pattern Transition register values (port A and B) */#define  ZCIO_PT_OFF       ((UINT8) ZERO)  /* Bit Masked Off (X) */#define  ZCIO_PT_ZERO      ((UINT8) ZERO)  /* Zero (0) */#define  ZCIO_PT_ONE       ((UINT8) ZERO)  /* One (1) */#define  ZCIO_PT_ANY       ((UINT8) 0xff)  /* Any Transition (^ or v) */#define  ZCIO_PT_1TO0      ((UINT8) 0xff)  /* One to Zero Transition (v) */#define  ZCIO_PT_0TO1      ((UINT8) 0xff)  /* Zero to One Transition (^) *//* Special I/O Control register values (port A B and C) */#define  ZCIO_SIO_NORMAL   ((UINT8) ZERO)  /* NORMAL input or output */#define  ZCIO_SIO_ODRAIN   ((UINT8) 0xff)  /* output with Open DRAIN */#define  ZCIO_SIO_1CATCH   ((UINT8) 0xff)  /* input with 1's CATCHer */#ifdef __cplusplus}#endif#endif /* __INCz8536h */

⌨️ 快捷键说明

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