/*******************************************************************************
* File Name: CDC_Dp.h  
* Version 2.20
*
* Description:
*  This file contains Pin function prototypes and register defines
*
* Note:
*
********************************************************************************
* Copyright 2008-2015, 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_CDC_Dp_H) /* Pins CDC_Dp_H */
#define CY_PINS_CDC_Dp_H

#include "cytypes.h"
#include "cyfitter.h"
#include "cypins.h"
#include "CDC_Dp_aliases.h"

/* APIs are not generated for P15[7:6] */
#if !(CY_PSOC5A &&\
	 CDC_Dp__PORT == 15 && ((CDC_Dp__MASK & 0xC0) != 0))


/***************************************
*        Function Prototypes             
***************************************/    

/**
* \addtogroup group_general
* @{
*/
void    CDC_Dp_Write(uint8 value);
void    CDC_Dp_SetDriveMode(uint8 mode);
uint8   CDC_Dp_ReadDataReg(void);
uint8   CDC_Dp_Read(void);
void    CDC_Dp_SetInterruptMode(uint16 position, uint16 mode);
uint8   CDC_Dp_ClearInterrupt(void);
/** @} general */

/***************************************
*           API Constants        
***************************************/
/**
* \addtogroup group_constants
* @{
*/
    /** \addtogroup driveMode Drive mode constants
     * \brief Constants to be passed as "mode" parameter in the CDC_Dp_SetDriveMode() function.
     *  @{
     */
        #define CDC_Dp_DM_ALG_HIZ         PIN_DM_ALG_HIZ
        #define CDC_Dp_DM_DIG_HIZ         PIN_DM_DIG_HIZ
        #define CDC_Dp_DM_RES_UP          PIN_DM_RES_UP
        #define CDC_Dp_DM_RES_DWN         PIN_DM_RES_DWN
        #define CDC_Dp_DM_OD_LO           PIN_DM_OD_LO
        #define CDC_Dp_DM_OD_HI           PIN_DM_OD_HI
        #define CDC_Dp_DM_STRONG          PIN_DM_STRONG
        #define CDC_Dp_DM_RES_UPDWN       PIN_DM_RES_UPDWN
    /** @} driveMode */
/** @} group_constants */
    
/* Digital Port Constants */
#define CDC_Dp_MASK               CDC_Dp__MASK
#define CDC_Dp_SHIFT              CDC_Dp__SHIFT
#define CDC_Dp_WIDTH              1u

/* Interrupt constants */
#if defined(CDC_Dp__INTSTAT)
/**
* \addtogroup group_constants
* @{
*/
    /** \addtogroup intrMode Interrupt constants
     * \brief Constants to be passed as "mode" parameter in CDC_Dp_SetInterruptMode() function.
     *  @{
     */
        #define CDC_Dp_INTR_NONE      (uint16)(0x0000u)
        #define CDC_Dp_INTR_RISING    (uint16)(0x0001u)
        #define CDC_Dp_INTR_FALLING   (uint16)(0x0002u)
        #define CDC_Dp_INTR_BOTH      (uint16)(0x0003u) 
    /** @} intrMode */
/** @} group_constants */

    #define CDC_Dp_INTR_MASK      (0x01u) 
#endif /* (CDC_Dp__INTSTAT) */


/***************************************
*             Registers        
***************************************/

/* Main Port Registers */
/* Pin State */
#define CDC_Dp_PS                     (* (reg8 *) CDC_Dp__PS)
/* Data Register */
#define CDC_Dp_DR                     (* (reg8 *) CDC_Dp__DR)
/* Port Number */
#define CDC_Dp_PRT_NUM                (* (reg8 *) CDC_Dp__PRT) 
/* Connect to Analog Globals */                                                  
#define CDC_Dp_AG                     (* (reg8 *) CDC_Dp__AG)                       
/* Analog MUX bux enable */
#define CDC_Dp_AMUX                   (* (reg8 *) CDC_Dp__AMUX) 
/* Bidirectional Enable */                                                        
#define CDC_Dp_BIE                    (* (reg8 *) CDC_Dp__BIE)
/* Bit-mask for Aliased Register Access */
#define CDC_Dp_BIT_MASK               (* (reg8 *) CDC_Dp__BIT_MASK)
/* Bypass Enable */
#define CDC_Dp_BYP                    (* (reg8 *) CDC_Dp__BYP)
/* Port wide control signals */                                                   
#define CDC_Dp_CTL                    (* (reg8 *) CDC_Dp__CTL)
/* Drive Modes */
#define CDC_Dp_DM0                    (* (reg8 *) CDC_Dp__DM0) 
#define CDC_Dp_DM1                    (* (reg8 *) CDC_Dp__DM1)
#define CDC_Dp_DM2                    (* (reg8 *) CDC_Dp__DM2) 
/* Input Buffer Disable Override */
#define CDC_Dp_INP_DIS                (* (reg8 *) CDC_Dp__INP_DIS)
/* LCD Common or Segment Drive */
#define CDC_Dp_LCD_COM_SEG            (* (reg8 *) CDC_Dp__LCD_COM_SEG)
/* Enable Segment LCD */
#define CDC_Dp_LCD_EN                 (* (reg8 *) CDC_Dp__LCD_EN)
/* Slew Rate Control */
#define CDC_Dp_SLW                    (* (reg8 *) CDC_Dp__SLW)

/* DSI Port Registers */
/* Global DSI Select Register */
#define CDC_Dp_PRTDSI__CAPS_SEL       (* (reg8 *) CDC_Dp__PRTDSI__CAPS_SEL) 
/* Double Sync Enable */
#define CDC_Dp_PRTDSI__DBL_SYNC_IN    (* (reg8 *) CDC_Dp__PRTDSI__DBL_SYNC_IN) 
/* Output Enable Select Drive Strength */
#define CDC_Dp_PRTDSI__OE_SEL0        (* (reg8 *) CDC_Dp__PRTDSI__OE_SEL0) 
#define CDC_Dp_PRTDSI__OE_SEL1        (* (reg8 *) CDC_Dp__PRTDSI__OE_SEL1) 
/* Port Pin Output Select Registers */
#define CDC_Dp_PRTDSI__OUT_SEL0       (* (reg8 *) CDC_Dp__PRTDSI__OUT_SEL0) 
#define CDC_Dp_PRTDSI__OUT_SEL1       (* (reg8 *) CDC_Dp__PRTDSI__OUT_SEL1) 
/* Sync Output Enable Registers */
#define CDC_Dp_PRTDSI__SYNC_OUT       (* (reg8 *) CDC_Dp__PRTDSI__SYNC_OUT) 

/* SIO registers */
#if defined(CDC_Dp__SIO_CFG)
    #define CDC_Dp_SIO_HYST_EN        (* (reg8 *) CDC_Dp__SIO_HYST_EN)
    #define CDC_Dp_SIO_REG_HIFREQ     (* (reg8 *) CDC_Dp__SIO_REG_HIFREQ)
    #define CDC_Dp_SIO_CFG            (* (reg8 *) CDC_Dp__SIO_CFG)
    #define CDC_Dp_SIO_DIFF           (* (reg8 *) CDC_Dp__SIO_DIFF)
#endif /* (CDC_Dp__SIO_CFG) */

/* Interrupt Registers */
#if defined(CDC_Dp__INTSTAT)
    #define CDC_Dp_INTSTAT            (* (reg8 *) CDC_Dp__INTSTAT)
    #define CDC_Dp_SNAP               (* (reg8 *) CDC_Dp__SNAP)
    
	#define CDC_Dp_0_INTTYPE_REG 		(* (reg8 *) CDC_Dp__0__INTTYPE)
#endif /* (CDC_Dp__INTSTAT) */

#endif /* CY_PSOC5A... */

#endif /*  CY_PINS_CDC_Dp_H */


/* [] END OF FILE */
