?? zl5011xtifmap.h
字號:
/*******************************************************************************
*
* File name: zl5011xTifMap.h
*
* Version: 10
*
* Author: MRC
*
* Date created: 08/02/2002
*
* Copyright 2002, 2003, 2004, 2005, Zarlink Semiconductor Limited.
* All rights reserved.
*
* Module Description:
*
* This is the register definitions header file for TIF block.
* It contains the register offsets and bit field definitions.
*
* Revision History:
*
* Rev: Date: Author: Comments:
* 1 08/02/2002 MRC Creation
* 2 15/02/2002 MRC Update
* 3 19/03/2002 MRC Creation
* 4 09/04/2002 MRC Removed unused register definition
* 5 11/04/2002 MRC Pulse type changed to 3 bits from 2
* 6 16/04/2002 MRC Changed Authur to Author in the header
* 7 29/05/2002 MRC Added bit order control
* 8 09/07/2002 MRC Added BER functions
* 9 14/08/2002 MRC Added bit to control system clock frequency
* 10 31/10/2002 MRC Added variants + minor fixes
*
*******************************************************************************/
#ifndef _ZL5011X_TIF_MAP_H
#define _ZL5011X_TIF_MAP_H
#ifdef __cplusplus
extern "C" {
#endif
/* addresses for the TIF registers */
#define ZL5011X_TIF_CTRL_REG ZL5011X_TIF_BASE + 0x000
/* LIU clk out polarity */
#define ZL5011X_TIF_CLK_OUT_POL_REG0 ZL5011X_TIF_BASE + 0x004
#define ZL5011X_TIF_CLK_OUT_POL_REG1 ZL5011X_TIF_BASE + 0x008
#define ZL5011X_TIF_CLK_OUT_POL_REG2 ZL5011X_TIF_BASE + 0x00c
/* LIU clk in polarity */
#define ZL5011X_TIF_CLK_IN_POL_REG0 ZL5011X_TIF_BASE + 0x010
#define ZL5011X_TIF_CLK_IN_POL_REG1 ZL5011X_TIF_BASE + 0x014
#define ZL5011X_TIF_CLK_IN_POL_REG2 ZL5011X_TIF_BASE + 0x018
#define ZL5011X_TIF_BER_TX_REG ZL5011X_TIF_BASE + 0x020
#define ZL5011X_TIF_BER_RX_REG ZL5011X_TIF_BASE + 0x024
#define ZL5011X_TIF_BER_STATUS_REG ZL5011X_TIF_BASE + 0x028
#define ZL5011X_TIF_HIZ_REG ZL5011X_TIF_BASE + 0x400 /* 84 of these registers */
#define ZL5011X_TIF_PLA_TRACE ZL5011X_TIF_BASE + 0x800
#define ZL5011X_TIF_TFM_TRACE ZL5011X_TIF_BASE + 0xc00
/* defines for bit fields in the registers */
#define ZL5011X_TIF_HIGH_SYS_CLOCK_FREQ 116000000
/* bit positions and masks for ZL5011X_TIF_CTRL_REG */
#define ZL5011X_TIF_SYSTEM_CLOCK_BIT 17
#define ZL5011X_TIF_BIT_ORDER_BIT 16
#define ZL5011X_TIF_OUTPUT_ENABLE_BIT 15
#define ZL5011X_TIF_SAMPLING_BITS 13
#define ZL5011X_TIF_SAMPLE_CLOCK_BIT 12
#define ZL5011X_TIF_FRAME_PULSE_BITS 9
#define ZL5011X_TIF_FRAME_POL_BIT 8
#define ZL5011X_TIF_CLK_MULTIPLY_BIT 7
#define ZL5011X_TIF_DATA_RATE_BITS 4
#define ZL5011X_TIF_STUFFING_BIT 3
#define ZL5011X_TIF_REF_POL_BIT 2
#define ZL5011X_TIF_CONNECTION_BITS 0
#define ZL5011X_TIF_SAMPLING_MASK (Uint32T)0x3
#define ZL5011X_TIF_FRAME_PULSE_MASK (Uint32T)0x7
#define ZL5011X_TIF_DATA_RATE_MASK (Uint32T)0x7
#define ZL5011X_TIF_CONNECTION_MASK (Uint32T)0x3
/* bit positions and masks for ZL5011X_TIF_BER_TX_REG and ZL5011X_TIF_BER_RX_REG */
#define ZL5011X_TIF_BER_RESET_BIT 24
#define ZL5011X_TIF_BER_DIRECTION_BIT 23
#define ZL5011X_TIF_BER_PATTERN_BIT 22
#define ZL5011X_TIF_BER_ENABLE_BIT 21
#define ZL5011X_TIF_BER_CHANNEL_COUNT_BITS 14
#define ZL5011X_TIF_BER_CHANNEL_START_BITS 7
#define ZL5011X_TIF_BER_STREAM_BITS 0
#define ZL5011X_TIF_BER_CHANNEL_COUNT_MASK (Uint32T)0x7f
#define ZL5011X_TIF_BER_CHANNEL_START_MASK (Uint32T)0x7f
#define ZL5011X_TIF_BER_STREAM_MASK (Uint32T)0x7f
/* bit positions and masks for ZL5011X_TIF_BER_STATUS_REG */
#define ZL5011X_TIF_BER_LOCK_BIT 16
#define ZL5011X_TIF_BER_ERROR_COUNT_BITS 0
#define ZL5011X_TIF_BER_ERROR_COUNT_MASK (Uint32T)0xffff
#ifdef __cplusplus
}
#endif
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -