//*****************************************************************************
//*****************************************************************************
//  FILENAME: PRS8_B.h
//   Version: 3.4, Updated on 2010/4/6 at 11:27:30
//  Generated by PSoC Designer 
//
//  DESCRIPTION: PRS8 User Module C Language interface file.
//-----------------------------------------------------------------------------
//  Copyright (c) Cypress Semiconductor 2010. All Rights Reserved.
//*****************************************************************************
//*****************************************************************************
#ifndef PRS8_B_INCLUDE
#define PRS8_B_INCLUDE

#include <m8c.h>

#pragma fastcall16  PRS8_B_Start
#pragma fastcall16  PRS8_B_Stop
#pragma fastcall16  PRS8_B_WriteSeed
#pragma fastcall16  PRS8_B_WritePolynomial
#pragma fastcall16  PRS8_B_bReadPRS

//-------------------------------------------------
// Prototypes of the PRS8_B API.
//-------------------------------------------------
extern void  PRS8_B_Start(void);
extern void  PRS8_B_Stop(void);
extern void  PRS8_B_WriteSeed(BYTE bSeed);
extern void  PRS8_B_WritePolynomial(BYTE bPolynomial);
extern BYTE  PRS8_B_bReadPRS(void);

//-------------------------------------------------
// Do not use! For backwards compatibility only.
#pragma fastcall16 bPRS8_B_ReadPRS
extern BYTE bPRS8_B_ReadPRS(void);
//-------------------------------------------------

//-------------------------------------------------
// Register Addresses for PRS8_B
//-------------------------------------------------
#pragma ioport  PRS8_B_CONTROL_REG: 0x043                  //Control register LSB
BYTE            PRS8_B_CONTROL_REG;
#pragma ioport  PRS8_B_SHIFT_REG:   0x040                  //Shift register LSB
BYTE            PRS8_B_SHIFT_REG;
#pragma ioport  PRS8_B_POLY_REG:    0x041                  //Polynomial register LSB
BYTE            PRS8_B_POLY_REG;
#pragma ioport  PRS8_B_SEED_REG:    0x042                  //Seed register LSB
BYTE            PRS8_B_SEED_REG;
#pragma ioport  PRS8_B_FUNC_REG:    0x140                  //Function register LSB
BYTE            PRS8_B_FUNC_REG;
#pragma ioport  PRS8_B_INPUT_REG:   0x141                  //Input register LSB
BYTE            PRS8_B_INPUT_REG;
#pragma ioport  PRS8_B_OUTPUT_REG:  0x142                  //Output register LSB
BYTE            PRS8_B_OUTPUT_REG;

#endif
// end of file PRS8_B.h
