// **************************************************************************
// **************************************************************************
// **************************************************************************
// **                                                                      **
// ** GSM.H                                                        PROGRAM **
// **                                                                      **
// ** Compression code for GSM 6.10                                        **
// **                                                                      **
// ** Last modified : 29 Jul 1997 by John Brandwood                        **
// **                                                                      **
// **************************************************************************
// **************************************************************************
// **************************************************************************

#ifndef __GSM0610_h
#define __GSM0610_h

#ifndef __LFPTYPES_h
 #include "lfptypes.h"
#endif

//
// GLOBAL DATA STRUCTURES AND DEFINITIONS
//

typedef	struct GSM_STATE_S
	{
	UB                  frame_index;	// odd/even chaining
	UB                  frame_chain;	// half-byte to carry forward
	UB                  index;
	UB                  nrp; 			// initialize value to 40
	SI                  old;
	SW                  msr;
	SW                  v        [9];
	SW                  LARpp [2][8];
	SW                  drp    [280];	// 120 old values + 160 new values
	} GSM_STATE_T;

//
// GLOBAL VARIABLES
//

//
// GLOBAL FUNCTION PROTOTYPES
//

extern	void                InitGsm610              (void);

extern	int                 DecodeGsm610            (
								UB *                psrc,
								SW *                pdst);

//
// GLOBAL MACROS FOR INLINE FUNCTIONS
//

//
// End of __GSM0610_h
//

#endif



// **************************************************************************
// **************************************************************************
// **************************************************************************
//	END OF GSM.H
// **************************************************************************
// **************************************************************************
// **************************************************************************
