/*++
*******************************************************************************
* Copyright (c) 1999-2000 Digi International Inc., All Rights Reserved        *
*                                                                             *
* This software contains proprietary and confidential 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.                                                                 *
*                                                                             *
* Restricted Rights Legend                                                    *
*                                                                             *
* Use, duplication, or disclosure by the Government is subject to             *
* restrictions set forth in sub-paragraph (c)(1)(ii) of The Rights in         *
* Technical Data and Computer Software clause at DFARS 252.227-7031 or        *
* subparagraphs (c)(1) and (2) of the Commercial Computer Software -          *
* Restricted Rights at 48 CFR 52.227-19, as applicable.                       *
*                                                                             *
* Digi International Inc. 11001 Bren Road East, Minnetonka, MN 55343          *
*                                                                             *
*******************************************************************************

Module Name:

	m32api.h

--*/
#ifndef M32API_H
#define M32API_H

#define	 MUNICH32_CHANNELS_MAX		     32

#define	 TMA				     0	     /*	Data transfer modes */
#define	 TMB				     1
#define	 V110_X30			     2
#define	 HDLC				     3
#define	 TMR				     1

typedef	struct iwan_channel_stats {
	int sf_err ;
	int loss_err ;
	int crc_err ;
	int nob_err ;
	int lfd_err ;
	int ra_err ;
	int rof_err ;
	int no_inn_space ;
	int no_wan_mp ;
	int no_fe_and_no_c ;
	int tx_size_err;
	int rx_size_err;
	int tx_prep;
	int tx_good;
	int rx_good;
	int t_hi ;
	int t_fi ;
	int t_ifc ;
	int t_sf ;
	int t_err ;
	int t_fo ;
	int r_hi ;
	int r_fi ;
	int r_ifc ;
	int r_sf ;
	int r_err ;
	int r_fo ;
} iwan_channel_stats_t ;

typedef	struct connect_cfg {
	uint8		fill_mask[MUNICH32_CHANNELS_MAX] ;
	uint32		mode ;
	uint32		timeslot_mask ;
	uint32		fnum ;
	uint32		fa ;
	uint32		iftf ;
	uint32		trv ;
	uint32		crc ;
	uint32		inv ;
	uint32		tflagcs	;
	uint32		tflag ;
	uint32		bsize ;
} connect_cfg_t ;





#endif
