/*******************************************************************************
* File Name: SWInput.h  
* Version 1.60
*
* Description:
*  This file containts Control Register function prototypes and register defines
*
* Note:
*
********************************************************************************
* Copyright 2008-2010, 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_SWInput_H) /* Pins SWInput_H */
#define CY_PINS_SWInput_H

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


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

void    SWInput_Write(uint8 value) ;
void    SWInput_SetDriveMode(uint8 mode) ;
uint8   SWInput_ReadDataReg(void) ;
uint8   SWInput_Read(void) ;
uint8   SWInput_ClearInterrupt(void) ;

/***************************************
*           API Constants        
***************************************/

/* Drive Modes */
#define SWInput_DM_ALG_HIZ         PIN_DM_ALG_HIZ
#define SWInput_DM_DIG_HIZ         PIN_DM_DIG_HIZ
#define SWInput_DM_RES_UP          PIN_DM_RES_UP
#define SWInput_DM_RES_DWN         PIN_DM_RES_DWN
#define SWInput_DM_OD_LO           PIN_DM_OD_LO
#define SWInput_DM_OD_HI           PIN_DM_OD_HI
#define SWInput_DM_STRONG          PIN_DM_STRONG
#define SWInput_DM_RES_UPDWN       PIN_DM_RES_UPDWN

/* Digital Port Constants */
#define SWInput_MASK               SWInput__MASK
#define SWInput_SHIFT              SWInput__SHIFT
#define SWInput_WIDTH              1u

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

/* Main Port Registers */
/* Pin State */
#define SWInput_PS                     (* (reg8 *) SWInput__PS)
/* Data Register */
#define SWInput_DR                     (* (reg8 *) SWInput__DR)
/* Port Number */
#define SWInput_PRT_NUM                (* (reg8 *) SWInput__PRT) 
/* Connect to Analog Globals */                                                  
#define SWInput_AG                     (* (reg8 *) SWInput__AG)                       
/* Analog MUX bux enable */
#define SWInput_AMUX                   (* (reg8 *) SWInput__AMUX) 
/* Bidirectional Enable */                                                        
#define SWInput_BIE                    (* (reg8 *) SWInput__BIE)
/* Bit-mask for Aliased Register Access */
#define SWInput_BIT_MASK               (* (reg8 *) SWInput__BIT_MASK)
/* Bypass Enable */
#define SWInput_BYP                    (* (reg8 *) SWInput__BYP)
/* Port wide control signals */                                                   
#define SWInput_CTL                    (* (reg8 *) SWInput__CTL)
/* Drive Modes */
#define SWInput_DM0                    (* (reg8 *) SWInput__DM0) 
#define SWInput_DM1                    (* (reg8 *) SWInput__DM1)
#define SWInput_DM2                    (* (reg8 *) SWInput__DM2) 
/* Input Buffer Disable Override */
#define SWInput_INP_DIS                (* (reg8 *) SWInput__INP_DIS)
/* LCD Common or Segment Drive */
#define SWInput_LCD_COM_SEG            (* (reg8 *) SWInput__LCD_COM_SEG)
/* Enable Segment LCD */
#define SWInput_LCD_EN                 (* (reg8 *) SWInput__LCD_EN)
/* Slew Rate Control */
#define SWInput_SLW                    (* (reg8 *) SWInput__SLW)

/* DSI Port Registers */
/* Global DSI Select Register */
#define SWInput_PRTDSI__CAPS_SEL       (* (reg8 *) SWInput__PRTDSI__CAPS_SEL) 
/* Double Sync Enable */
#define SWInput_PRTDSI__DBL_SYNC_IN    (* (reg8 *) SWInput__PRTDSI__DBL_SYNC_IN) 
/* Output Enable Select Drive Strength */
#define SWInput_PRTDSI__OE_SEL0        (* (reg8 *) SWInput__PRTDSI__OE_SEL0) 
#define SWInput_PRTDSI__OE_SEL1        (* (reg8 *) SWInput__PRTDSI__OE_SEL1) 
/* Port Pin Output Select Registers */
#define SWInput_PRTDSI__OUT_SEL0       (* (reg8 *) SWInput__PRTDSI__OUT_SEL0) 
#define SWInput_PRTDSI__OUT_SEL1       (* (reg8 *) SWInput__PRTDSI__OUT_SEL1) 
/* Sync Output Enable Registers */
#define SWInput_PRTDSI__SYNC_OUT       (* (reg8 *) SWInput__PRTDSI__SYNC_OUT) 


#if defined(SWInput__INTSTAT)  /* Interrupt Registers */

    #define SWInput_INTSTAT                (* (reg8 *) SWInput__INTSTAT)
    #define SWInput_SNAP                   (* (reg8 *) SWInput__SNAP)

#endif /* Interrupt Registers */

#endif /* End Pins SWInput_H */


/* [] END OF FILE */
