/*******************************************************************************
* File Name: AMux_1.h
* Version 1.50
*
*  Description:
*    This file contains the constants and function prototypes for the Analog
*    Multiplexer User Module AMux.
*
*   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_AMUX_AMux_1_H)
#define CY_AMUX_AMux_1_H

#include "cytypes.h"
#include "cyfitter.h"
#include "cyfitter_cfg.h"


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

void AMux_1_Start(void);
void AMux_1_Init(void);
void AMux_1_Stop(void);
void AMux_1_Select(uint8 channel) ;
void AMux_1_FastSelect(uint8 channel) ;
void AMux_1_DisconnectAll(void) ;
/* The Connect and Disconnect functions are declared elsewhere */
/* void AMux_1_Connect(uint8 channel); */
/* void AMux_1_Disconnect(uint8 channel); */


/***************************************
*     Initial Parameter Constants
***************************************/

#define AMux_1_CHANNELS  4
#define AMux_1_MUXTYPE   1


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

#define AMux_1_NULL_CHANNEL  0xFFu
#define AMux_1_MUX_SINGLE   1
#define AMux_1_MUX_DIFF     2


/***************************************
*        Conditional Functions
***************************************/

#if AMux_1_MUXTYPE == AMux_1_MUX_SINGLE
# define AMux_1_Connect(channel) AMux_1_Set(channel)
# define AMux_1_Disconnect(channel) AMux_1_Unset(channel)
#else
void AMux_1_Connect(uint8 channel) ;
void AMux_1_Disconnect(uint8 channel) ;
#endif

#endif /* CY_AMUX_AMux_1_H */


/* [] END OF FILE */
