/*******************************************************************************
* File Name: UART_rx.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_UART_rx_H) /* Pins UART_rx_H */
#define CY_PINS_UART_rx_H

#include "cytypes.h"
#include "cyfitter.h"
#include "UART_rx_aliases.h"


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

void    UART_rx_Write(uint8 value) ;
void    UART_rx_SetDriveMode(uint8 mode) ;
uint8   UART_rx_ReadDataReg(void) ;
uint8   UART_rx_Read(void) ;
uint8   UART_rx_ClearInterrupt(void) ;


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

/* Drive Modes */
#define UART_rx_DRIVE_MODE_BITS        (3)
#define UART_rx_DRIVE_MODE_IND_MASK    (0xFFFFFFFFu >> (32 - UART_rx_DRIVE_MODE_BITS))
#define UART_rx_DRIVE_MODE_SHIFT       (0x00u)
#define UART_rx_DRIVE_MODE_MASK        (0x07u << UART_rx_DRIVE_MODE_SHIFT)

#define UART_rx_DM_ALG_HIZ         (0x00u << UART_rx_DRIVE_MODE_SHIFT)
#define UART_rx_DM_DIG_HIZ         (0x01u << UART_rx_DRIVE_MODE_SHIFT)
#define UART_rx_DM_RES_UP          (0x02u << UART_rx_DRIVE_MODE_SHIFT)
#define UART_rx_DM_RES_DWN         (0x03u << UART_rx_DRIVE_MODE_SHIFT)
#define UART_rx_DM_OD_LO           (0x04u << UART_rx_DRIVE_MODE_SHIFT)
#define UART_rx_DM_OD_HI           (0x05u << UART_rx_DRIVE_MODE_SHIFT)
#define UART_rx_DM_STRONG          (0x06u << UART_rx_DRIVE_MODE_SHIFT)
#define UART_rx_DM_RES_UPDWN       (0x07u << UART_rx_DRIVE_MODE_SHIFT)

/* Digital Port Constants */
#define UART_rx_MASK               UART_rx__MASK
#define UART_rx_SHIFT              UART_rx__SHIFT
#define UART_rx_WIDTH              1u


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

/* Main Port Registers */
/* Pin State */
#define UART_rx_PS                     (* (reg32 *) UART_rx__PS)
/* Port Configuration */
#define UART_rx_PC                     (* (reg32 *) UART_rx__PC)
/* Data Register */
#define UART_rx_DR                     (* (reg32 *) UART_rx__DR)
/* Input Buffer Disable Override */
#define UART_rx_INP_DIS                (* (reg32 *) UART_rx__PC2)


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

    #define UART_rx_INTSTAT                (* (reg32 *) UART_rx__INTSTAT)

#endif /* Interrupt Registers */

#endif /* End Pins UART_rx_H */


/* [] END OF FILE */
