#################################################################
#								#
#	configuration file for ATS Meredian			#
#								#
#################################################################

# =============== START configuration of line 0 ===============
{CONFIG	line0}
    # ===== physical parameters
	THRESHOLD_ATC_HI	ALL	= 0xD0
	THRESHOLD_TA_HI		ALL	= 0xD0
	THRESHOLD_ATC_LO	ALL	= 0x30
	THRESHOLD_TA_LO		ALL	= 0x30
	DAC_ATC_LO		ALL	= 0
	DAC_TA_LO		ALL	= 0
	DAC_ATC_HI		ALL	= 0xFF
	DAC_TA_HI		ALL	= 0xFF
	ADC_GAIN_ATC		ALL	= 0x03
	ADC_GAIN_TA		ALL	= 0x03

    # ===== packet parameters
	PACKET_LENGTH		ALL	= 24

#	MASK_B1			FROM_ATC	= 0x003FC000
#	MASK_B1			TO_ATC		= 0x003FC000
	MASK_B1			FROM_ATC	= 0x001FE000
	MASK_B1			TO_ATC		= 0x007F8000
#	MASK_B2			FROM_ATC	= 0x000007F8
#	MASK_B2			TO_ATC		= 0x00001FE0
	MASK_D			FROM_ATC	= 0x00400000
	MASK_D			TO_ATC		= 0x00002000

	###
	#  Descrembler type: 0 - no scrembler, 1 - all packet, 2 - only B-channels
	###
	DESCREMBLER_TYPE	ALL	= 0
	MASK_DESC		ALL	= 0x0
	REORDER_D		ALL	= 0
	MASK_PARITY		ALL	= 1
	MASK_1			ALL	= 0x00000000
	MASK_0			ALL	= 0x00000000

	SCRIPT				= 0x03000000

    # ===== DSP parameters
	DSP_DETECT_TASK		ALL	= 0x0390
	IN_SOUND_FORMAT		ALL	= 0x03
	VAD_LEVEL		ALL	= 0
	AGC_LEVEL		ALL	= 0

	EMUL_SIZE_10MS			= 480
	SET_LINE			= 0
{/CONFIG line0}
# =============== END configuration of line 0 ===============

# =============== START configuration of line 1 ===============
{CONFIG	line1}
    # ===== physical parameters
	THRESHOLD_ATC_HI	ALL	= 0xD0
	THRESHOLD_TA_HI		ALL	= 0xD0
	THRESHOLD_ATC_LO	ALL	= 0x30
	THRESHOLD_TA_LO		ALL	= 0x30
	DAC_ATC_LO			ALL	= 0
	DAC_TA_LO			ALL	= 0
	DAC_ATC_HI			ALL	= 0xFF
	DAC_TA_HI			ALL	= 0xFF
	ADC_GAIN_ATC		ALL	= 0x03
	ADC_GAIN_TA			ALL	= 0x03

    # ===== packet parameters
	PACKET_LENGTH		ALL	= 24

	MASK_B1				FROM_ATC	= 0x001FE000
	MASK_B1				TO_ATC		= 0x007F8000
	MASK_D				FROM_ATC	= 0x00400000
	MASK_D				TO_ATC		= 0x00002000

	###
	#  Descrembler type: 0 - no scrembler, 1 - all packet, 2 - only B-channels
	###
	DESCREMBLER_TYPE	ALL	= 0
	MASK_DESC			ALL	= 0x0
	REORDER_D			ALL	= 0
	MASK_PARITY			ALL	= 1
	MASK_1				ALL	= 0x00000000
	MASK_0				ALL	= 0x00000000

	SCRIPT					= 0x03000000

    # ===== DSP parameters
	DSP_DETECT_TASK		ALL	= 0x0390
	IN_SOUND_FORMAT		ALL	= 0x03
	VAD_LEVEL			ALL	= 0
	AGC_LEVEL			ALL	= 0

	EMUL_SIZE_10MS			= 480
	SET_LINE				= 0x0101
{/CONFIG line1}
# =============== END configuration of line 1 ===============

# =============== START configuration of line 2 ===============
{CONFIG	line2}
    # ===== physical parameters
	THRESHOLD_ATC_HI	ALL	= 0xD0
	THRESHOLD_TA_HI		ALL	= 0xD0
	THRESHOLD_ATC_LO	ALL	= 0x30
	THRESHOLD_TA_LO		ALL	= 0x30
	DAC_ATC_LO			ALL	= 0
	DAC_TA_LO			ALL	= 0
	DAC_ATC_HI			ALL	= 0xFF
	DAC_TA_HI			ALL	= 0xFF
	ADC_GAIN_ATC		ALL	= 0x03
	ADC_GAIN_TA			ALL	= 0x03

    # ===== packet parameters
	PACKET_LENGTH		ALL	= 24

	MASK_B1				FROM_ATC	= 0x001FE000
	MASK_B1				TO_ATC		= 0x007F8000
	MASK_D				FROM_ATC	= 0x00400000
	MASK_D				TO_ATC		= 0x00002000

	###
	#  Descrembler type: 0 - no scrembler, 1 - all packet, 2 - only B-channels
	###
	DESCREMBLER_TYPE	ALL	= 0
	MASK_DESC			ALL	= 0x0
	REORDER_D			ALL	= 0
	MASK_PARITY			ALL	= 1
	MASK_1				ALL	= 0x00000000
	MASK_0				ALL	= 0x00000000

	SCRIPT					= 0x03000000

    # ===== DSP parameters
	DSP_DETECT_TASK		ALL	= 0x0390
	IN_SOUND_FORMAT		ALL	= 0x03
	VAD_LEVEL			ALL	= 0
	AGC_LEVEL			ALL	= 0

	EMUL_SIZE_10MS			= 480
	SET_LINE				= 0x0202
{/CONFIG line2}
# =============== END configuration of line 2 ===============

# =============== START configuration of line 3 ===============
{CONFIG	line3}
    # ===== physical parameters
	THRESHOLD_ATC_HI	ALL	= 0xD0
	THRESHOLD_TA_HI		ALL	= 0xD0
	THRESHOLD_ATC_LO	ALL	= 0x30
	THRESHOLD_TA_LO		ALL	= 0x30
	DAC_ATC_LO			ALL	= 0
	DAC_TA_LO			ALL	= 0
	DAC_ATC_HI			ALL	= 0xFF
	DAC_TA_HI			ALL	= 0xFF
	ADC_GAIN_ATC		ALL	= 0x03
	ADC_GAIN_TA			ALL	= 0x03

    # ===== packet parameters
	PACKET_LENGTH		ALL	= 24

	MASK_B1		FROM_ATC	= 0x001FE000
	MASK_B1		TO_ATC		= 0x007F8000
	MASK_D		FROM_ATC	= 0x00400000
	MASK_D		TO_ATC		= 0x00002000

	###
	#  Descrembler type: 0 - no scrembler, 1 - all packet, 2 - only B-channels
	###
	DESCREMBLER_TYPE	ALL	= 0
	MASK_DESC			ALL	= 0x0
	REORDER_D			ALL	= 0
	MASK_PARITY			ALL	= 1
	MASK_1				ALL	= 0x00000000
	MASK_0				ALL	= 0x00000000

	SCRIPT					= 0x03000000

    # ===== DSP parameters
	DSP_DETECT_TASK		ALL	= 0x0390
	IN_SOUND_FORMAT		ALL	= 0x03
	VAD_LEVEL			ALL	= 0
	AGC_LEVEL			ALL	= 0

	EMUL_SIZE_10MS			= 480
	SET_LINE				= 0x0303
{/CONFIG line3}
# =============== END configuration of line 3 ===============


# =============== START section commands ===============
{COMMAND}
	line0		MONITOR_ON
	line1		MONITOR_ON
	line2		MONITOR_ON
	line3		MONITOR_ON
{/COMMAND}
# =============== END section commands ===============