1 /*******************************************************************************
6 * This file contains Pin function prototypes and register defines
10 ********************************************************************************
11 * Copyright 2008-2015, Cypress Semiconductor Corporation. All rights reserved.
12 * You may use this file only in accordance with the license, terms, conditions,
13 * disclaimers, and limitations in the end user license agreement accompanying
14 * the software package with which this file was provided.
15 *******************************************************************************/
17 #if !defined(CY_PINS_NOR_SCK_H) /* Pins NOR_SCK_H */
18 #define CY_PINS_NOR_SCK_H
23 #include "NOR_SCK_aliases.h"
25 /* APIs are not generated for P15[7:6] */
27 NOR_SCK__PORT == 15 && ((NOR_SCK__MASK & 0xC0) != 0))
30 /***************************************
32 ***************************************/
35 * \addtogroup group_general
38 void NOR_SCK_Write(uint8 value);
39 void NOR_SCK_SetDriveMode(uint8 mode);
40 uint8 NOR_SCK_ReadDataReg(void);
41 uint8 NOR_SCK_Read(void);
42 void NOR_SCK_SetInterruptMode(uint16 position, uint16 mode);
43 uint8 NOR_SCK_ClearInterrupt(void);
46 /***************************************
48 ***************************************/
50 * \addtogroup group_constants
53 /** \addtogroup driveMode Drive mode constants
54 * \brief Constants to be passed as "mode" parameter in the NOR_SCK_SetDriveMode() function.
57 #define NOR_SCK_DM_ALG_HIZ PIN_DM_ALG_HIZ
58 #define NOR_SCK_DM_DIG_HIZ PIN_DM_DIG_HIZ
59 #define NOR_SCK_DM_RES_UP PIN_DM_RES_UP
60 #define NOR_SCK_DM_RES_DWN PIN_DM_RES_DWN
61 #define NOR_SCK_DM_OD_LO PIN_DM_OD_LO
62 #define NOR_SCK_DM_OD_HI PIN_DM_OD_HI
63 #define NOR_SCK_DM_STRONG PIN_DM_STRONG
64 #define NOR_SCK_DM_RES_UPDWN PIN_DM_RES_UPDWN
66 /** @} group_constants */
68 /* Digital Port Constants */
69 #define NOR_SCK_MASK NOR_SCK__MASK
70 #define NOR_SCK_SHIFT NOR_SCK__SHIFT
71 #define NOR_SCK_WIDTH 1u
73 /* Interrupt constants */
74 #if defined(NOR_SCK__INTSTAT)
76 * \addtogroup group_constants
79 /** \addtogroup intrMode Interrupt constants
80 * \brief Constants to be passed as "mode" parameter in NOR_SCK_SetInterruptMode() function.
83 #define NOR_SCK_INTR_NONE (uint16)(0x0000u)
84 #define NOR_SCK_INTR_RISING (uint16)(0x0001u)
85 #define NOR_SCK_INTR_FALLING (uint16)(0x0002u)
86 #define NOR_SCK_INTR_BOTH (uint16)(0x0003u)
88 /** @} group_constants */
90 #define NOR_SCK_INTR_MASK (0x01u)
91 #endif /* (NOR_SCK__INTSTAT) */
94 /***************************************
96 ***************************************/
98 /* Main Port Registers */
100 #define NOR_SCK_PS (* (reg8 *) NOR_SCK__PS)
102 #define NOR_SCK_DR (* (reg8 *) NOR_SCK__DR)
104 #define NOR_SCK_PRT_NUM (* (reg8 *) NOR_SCK__PRT)
105 /* Connect to Analog Globals */
106 #define NOR_SCK_AG (* (reg8 *) NOR_SCK__AG)
107 /* Analog MUX bux enable */
108 #define NOR_SCK_AMUX (* (reg8 *) NOR_SCK__AMUX)
109 /* Bidirectional Enable */
110 #define NOR_SCK_BIE (* (reg8 *) NOR_SCK__BIE)
111 /* Bit-mask for Aliased Register Access */
112 #define NOR_SCK_BIT_MASK (* (reg8 *) NOR_SCK__BIT_MASK)
114 #define NOR_SCK_BYP (* (reg8 *) NOR_SCK__BYP)
115 /* Port wide control signals */
116 #define NOR_SCK_CTL (* (reg8 *) NOR_SCK__CTL)
118 #define NOR_SCK_DM0 (* (reg8 *) NOR_SCK__DM0)
119 #define NOR_SCK_DM1 (* (reg8 *) NOR_SCK__DM1)
120 #define NOR_SCK_DM2 (* (reg8 *) NOR_SCK__DM2)
121 /* Input Buffer Disable Override */
122 #define NOR_SCK_INP_DIS (* (reg8 *) NOR_SCK__INP_DIS)
123 /* LCD Common or Segment Drive */
124 #define NOR_SCK_LCD_COM_SEG (* (reg8 *) NOR_SCK__LCD_COM_SEG)
125 /* Enable Segment LCD */
126 #define NOR_SCK_LCD_EN (* (reg8 *) NOR_SCK__LCD_EN)
127 /* Slew Rate Control */
128 #define NOR_SCK_SLW (* (reg8 *) NOR_SCK__SLW)
130 /* DSI Port Registers */
131 /* Global DSI Select Register */
132 #define NOR_SCK_PRTDSI__CAPS_SEL (* (reg8 *) NOR_SCK__PRTDSI__CAPS_SEL)
133 /* Double Sync Enable */
134 #define NOR_SCK_PRTDSI__DBL_SYNC_IN (* (reg8 *) NOR_SCK__PRTDSI__DBL_SYNC_IN)
135 /* Output Enable Select Drive Strength */
136 #define NOR_SCK_PRTDSI__OE_SEL0 (* (reg8 *) NOR_SCK__PRTDSI__OE_SEL0)
137 #define NOR_SCK_PRTDSI__OE_SEL1 (* (reg8 *) NOR_SCK__PRTDSI__OE_SEL1)
138 /* Port Pin Output Select Registers */
139 #define NOR_SCK_PRTDSI__OUT_SEL0 (* (reg8 *) NOR_SCK__PRTDSI__OUT_SEL0)
140 #define NOR_SCK_PRTDSI__OUT_SEL1 (* (reg8 *) NOR_SCK__PRTDSI__OUT_SEL1)
141 /* Sync Output Enable Registers */
142 #define NOR_SCK_PRTDSI__SYNC_OUT (* (reg8 *) NOR_SCK__PRTDSI__SYNC_OUT)
145 #if defined(NOR_SCK__SIO_CFG)
146 #define NOR_SCK_SIO_HYST_EN (* (reg8 *) NOR_SCK__SIO_HYST_EN)
147 #define NOR_SCK_SIO_REG_HIFREQ (* (reg8 *) NOR_SCK__SIO_REG_HIFREQ)
148 #define NOR_SCK_SIO_CFG (* (reg8 *) NOR_SCK__SIO_CFG)
149 #define NOR_SCK_SIO_DIFF (* (reg8 *) NOR_SCK__SIO_DIFF)
150 #endif /* (NOR_SCK__SIO_CFG) */
152 /* Interrupt Registers */
153 #if defined(NOR_SCK__INTSTAT)
154 #define NOR_SCK_INTSTAT (* (reg8 *) NOR_SCK__INTSTAT)
155 #define NOR_SCK_SNAP (* (reg8 *) NOR_SCK__SNAP)
157 #define NOR_SCK_0_INTTYPE_REG (* (reg8 *) NOR_SCK__0__INTTYPE)
158 #endif /* (NOR_SCK__INTSTAT) */
160 #endif /* CY_PSOC5A... */
162 #endif /* CY_PINS_NOR_SCK_H */