| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- /*******************************************************************************
- * File Name: SD_MISO.h
- * Version 1.90
- *
- * Description:
- * This file containts Control Register function prototypes and register defines
- *
- * Note:
- *
- ********************************************************************************
- * Copyright 2008-2012, Cypress Semiconductor Corporation. All rights reserved.
- * You may use this file only in accordance with the license, terms, conditions,
- * disclaimers, and limitations in the end user license agreement accompanying
- * the software package with which this file was provided.
- *******************************************************************************/
- #if !defined(CY_PINS_SD_MISO_H) /* Pins SD_MISO_H */
- #define CY_PINS_SD_MISO_H
- #include "cytypes.h"
- #include "cyfitter.h"
- #include "cypins.h"
- #include "SD_MISO_aliases.h"
- /* Check to see if required defines such as CY_PSOC5A are available */
- /* They are defined starting with cy_boot v3.0 */
- #if !defined (CY_PSOC5A)
- #error Component cy_pins_v1_90 requires cy_boot v3.0 or later
- #endif /* (CY_PSOC5A) */
- /* APIs are not generated for P15[7:6] */
- #if !(CY_PSOC5A &&\
- SD_MISO__PORT == 15 && ((SD_MISO__MASK & 0xC0) != 0))
- /***************************************
- * Function Prototypes
- ***************************************/
- void SD_MISO_Write(uint8 value) ;
- void SD_MISO_SetDriveMode(uint8 mode) ;
- uint8 SD_MISO_ReadDataReg(void) ;
- uint8 SD_MISO_Read(void) ;
- uint8 SD_MISO_ClearInterrupt(void) ;
- /***************************************
- * API Constants
- ***************************************/
- /* Drive Modes */
- #define SD_MISO_DM_ALG_HIZ PIN_DM_ALG_HIZ
- #define SD_MISO_DM_DIG_HIZ PIN_DM_DIG_HIZ
- #define SD_MISO_DM_RES_UP PIN_DM_RES_UP
- #define SD_MISO_DM_RES_DWN PIN_DM_RES_DWN
- #define SD_MISO_DM_OD_LO PIN_DM_OD_LO
- #define SD_MISO_DM_OD_HI PIN_DM_OD_HI
- #define SD_MISO_DM_STRONG PIN_DM_STRONG
- #define SD_MISO_DM_RES_UPDWN PIN_DM_RES_UPDWN
- /* Digital Port Constants */
- #define SD_MISO_MASK SD_MISO__MASK
- #define SD_MISO_SHIFT SD_MISO__SHIFT
- #define SD_MISO_WIDTH 1u
- /***************************************
- * Registers
- ***************************************/
- /* Main Port Registers */
- /* Pin State */
- #define SD_MISO_PS (* (reg8 *) SD_MISO__PS)
- /* Data Register */
- #define SD_MISO_DR (* (reg8 *) SD_MISO__DR)
- /* Port Number */
- #define SD_MISO_PRT_NUM (* (reg8 *) SD_MISO__PRT)
- /* Connect to Analog Globals */
- #define SD_MISO_AG (* (reg8 *) SD_MISO__AG)
- /* Analog MUX bux enable */
- #define SD_MISO_AMUX (* (reg8 *) SD_MISO__AMUX)
- /* Bidirectional Enable */
- #define SD_MISO_BIE (* (reg8 *) SD_MISO__BIE)
- /* Bit-mask for Aliased Register Access */
- #define SD_MISO_BIT_MASK (* (reg8 *) SD_MISO__BIT_MASK)
- /* Bypass Enable */
- #define SD_MISO_BYP (* (reg8 *) SD_MISO__BYP)
- /* Port wide control signals */
- #define SD_MISO_CTL (* (reg8 *) SD_MISO__CTL)
- /* Drive Modes */
- #define SD_MISO_DM0 (* (reg8 *) SD_MISO__DM0)
- #define SD_MISO_DM1 (* (reg8 *) SD_MISO__DM1)
- #define SD_MISO_DM2 (* (reg8 *) SD_MISO__DM2)
- /* Input Buffer Disable Override */
- #define SD_MISO_INP_DIS (* (reg8 *) SD_MISO__INP_DIS)
- /* LCD Common or Segment Drive */
- #define SD_MISO_LCD_COM_SEG (* (reg8 *) SD_MISO__LCD_COM_SEG)
- /* Enable Segment LCD */
- #define SD_MISO_LCD_EN (* (reg8 *) SD_MISO__LCD_EN)
- /* Slew Rate Control */
- #define SD_MISO_SLW (* (reg8 *) SD_MISO__SLW)
- /* DSI Port Registers */
- /* Global DSI Select Register */
- #define SD_MISO_PRTDSI__CAPS_SEL (* (reg8 *) SD_MISO__PRTDSI__CAPS_SEL)
- /* Double Sync Enable */
- #define SD_MISO_PRTDSI__DBL_SYNC_IN (* (reg8 *) SD_MISO__PRTDSI__DBL_SYNC_IN)
- /* Output Enable Select Drive Strength */
- #define SD_MISO_PRTDSI__OE_SEL0 (* (reg8 *) SD_MISO__PRTDSI__OE_SEL0)
- #define SD_MISO_PRTDSI__OE_SEL1 (* (reg8 *) SD_MISO__PRTDSI__OE_SEL1)
- /* Port Pin Output Select Registers */
- #define SD_MISO_PRTDSI__OUT_SEL0 (* (reg8 *) SD_MISO__PRTDSI__OUT_SEL0)
- #define SD_MISO_PRTDSI__OUT_SEL1 (* (reg8 *) SD_MISO__PRTDSI__OUT_SEL1)
- /* Sync Output Enable Registers */
- #define SD_MISO_PRTDSI__SYNC_OUT (* (reg8 *) SD_MISO__PRTDSI__SYNC_OUT)
- #if defined(SD_MISO__INTSTAT) /* Interrupt Registers */
- #define SD_MISO_INTSTAT (* (reg8 *) SD_MISO__INTSTAT)
- #define SD_MISO_SNAP (* (reg8 *) SD_MISO__SNAP)
- #endif /* Interrupt Registers */
- #endif /* CY_PSOC5A... */
- #endif /* CY_PINS_SD_MISO_H */
- /* [] END OF FILE */
|