/*++

*****************************************************************************
*                                                                           *
*  This software contains proprietary and confiential information of        *
*                                                                           *
*                    Digi International Inc.                                *
*                                                                           *
*  By accepting transfer of this copy, Recipient agrees to retain this      *
*  software in confidence, to prevent disclosure to others, and to make     *
*  no use of this software other than that for which it was delivered.      *
*  This is an unpublished copyrighted work of Digi International Inc.       *
*  Except as permitted by federal law, 17 USC 117, copying is strictly      *
*  prohibited.                                                              *
*                                                                           *
*****************************************************************************

Module Name:

   crc.h

Abstract:

   This header has information necessary to calculate and validate various
   types of CRC's.

Revision History:

   $Log: /Components/Windows/NT/Sync/Wan/CRC.H $
 * 
 * 3     1/28/97 10:28a Mikez
 * Removed unused macro.
 * 
 * 2     10/28/96 1:25p Mikez
 * Updated to support latest firmware release, v1.1.2b.
 * Revision 1.4  1995/10/06  06:59:41  Craig_Harrison
 * Version 1.0.1.2 
 * 
 * Revision 1.3  1995/09/15  00:00:00  Craig_Harrison
 * First beta release
 * 
 * Revision 1.1  1995/06/01  10:18:14  rik
 * Initial revision
 * 

--*/


//
// The following CRC code was provided by:
//
// RFC 1549                      HDLC Framing                Decvember 1993
//


#define PPPINITFCS16    0xffff  /* Initial FCS value */
#define PPPGOODFCS16    0xf0b8  /* Good final FCS value */

/*
 * u16 represents an unsigned 16-bit number.  Adjust the typedef for
 * your hardware.
 */
typedef USHORT u16;

//
// Prototypes for crc.c
//
BOOLEAN ValidateFCS16( PUCHAR _buf, ULONG _len, PBOOLEAN _result );
USHORT pppfcs16( register PUCHAR cp,
                 register ULONG len);
USHORT RASCalcCRC( register PUCHAR Frame,
                   register USHORT FrameSize );
