Data Structures | Defines | Typedefs | Enumerations
AIF_defs.h File Reference

Header file for AIF module definitions. More...

#include <c6x.h>
#include <ti/csl/csl.h>
#include <ti/csl/csl_aif2.h>
#include <ti/drv/aif2/aif2_types.h>
#include <ti/drv/cppi/cppi_drv.h>
#include <ti/drv/qmss/qmss_drv.h>

Data Structures

struct  AIF_LinkConfigObj
 This structure contains the parameters for the initialization of a AIF2 link of the TMS320C6670. It also contains a reference to the CSL AIF object instance. More...
struct  AIF_DioConfigObj
 This structure contains the parameters for the initialization of a AIF2 link of the TMS320C6670. It also contains a reference to the CSL AIF object instance. More...
struct  AIF_PktDmaConfigObj
 This structure contains the parameters for the PKTDMA and QMSS setup. More...
struct  AIF_HfnSyncObj
 This structure contains the parameters for the hfn sync state. It could be used to detect when sync is established (syncStatusChange = 1 and hfnsyncState = 1) or when sync is lost (syncStatusChange = 1 and hfnsyncState = 0) The context is in the AIF_getException processing function where below parameters are updated before clearing the exceptions. More...
struct  AIF_EeCountObj
 This structure contains the pointers to the AIF2 exception counters. More...
struct  AIF_DataTraceObj
 This structure contains the parameters for the AIF2 Data Trace setup. More...
struct  AIF_LteRadTimerObj
 This structure contains the parameters for the LTE specific radio timer configuration. More...
struct  AIF_RadTimerObj
 This structure contains the parameters for the AIF2 radio timer configuration. More...
struct  AIF_AxCObj
 This structure contains specific parameters for a given AIF2 antenna container (AxC). More...
struct  AIF_ConfigObj
 This structure contains the parameters for the initialization of a AIF HW module of the TMS320C6670. it includes configuration objects for all the links. More...

Defines

#define AIF_MAX_NUM_LINKS   (CSL_AIF2_LINK_5 + 1)
#define AIF_MAX_NUM_AXC   128
#define AIF_MAX_NUM_RADT   1
#define AIF2_CRC8_POLY   0xF
#define AIF2_CRC8_SEED   0xF
#define AIF2_DB_PE_DELAY_OBSAI   28
#define AIF2_DB_PE_DELAY_CPRI   0
#define AIF2_OBSAI_TYPE_CONTROL   0x00
#define AIF2_OBSAI_TYPE_WCDMA_FDD   0x02
#define AIF2_OBSAI_TYPE_LTE   0x0E
#define AIF2_OBSAI_TYPE_GENERIC   0x0F
#define AIF2_FRAME_COUNT_TC_WCDMA_FDD   4095
#define AIF2_SLOT_COUNT_TC_WCDMA_FDD   14
#define AIF2_CLOCK_COUNT_TC_WCDMA_FDD   204799
#define AIF2_CLOCK_COUNT_TC_FIRST_OFDM_SYM_OBSAI   22080
#define AIF2_CLOCK_COUNT_TC_REST_OFDM_SYM_OBSAI   21920
#define AIF2_CLOCK_COUNT_TC_EXTCP_OFDM_SYM_OBSAI   25600
#define AIF2_FRAME_COUNT_TC_PHY_TIMER   4095
#define AIF2_OBSAI_CLOCK_COUNT_TC_PHY_TIMER   3071999
#define AIF2_CLOCK_COUNT_TC_WCDMA_FDD_CPRI   163839
#define AIF2_CLOCK_COUNT_TC_FIRST_OFDM_SYM_CPRI   17664
#define AIF2_CLOCK_COUNT_TC_REST_OFDM_SYM_CPRI   17536
#define AIF2_CLOCK_COUNT_TC_EXTCP_OFDM_SYM_CPRI   20480
#define AIF2_CPRI_CLOCK_COUNT_TC_PHY_TIMER   2457599
#define AIF2_LTE_SYMBOL_NUM   7
#define AIF2_BASE_TX_QUE_NUM   512
#define AIF2_0_RX_DATA   0x108E0000
#define AIF_LINK_DATA_TYPE_DL   CSL_AIF2_LINK_DATA_TYPE_NORMAL
#define AIF2_OBSAI_MAX_NUM_AXC_PER_2X_LINK   (8)
#define AIF2_OBSAI_MAX_NUM_AXC_PER_4X_LINK   (16)
#define AIF2_OBSAI_MAX_NUM_AXC_PER_8X_LINK   (32)
#define AIF2_CPRI_MAX_NUM_AXC_PER_2X_LINK_7_15_BIT   (8)
#define AIF2_CPRI_MAX_NUM_AXC_PER_2X_LINK_8_16_BIT   (7)
#define AIF2_MAX_NUM_DIO_ENGINE   3
#define AIF2_CPRI_MAX_CW_SUBSTREAM   4
#define AIF2_NUM_WORDS_PER_QWORD   4
#define AIF_CPRI_PE_TO_TM_DELAY   28
#define AIF_OBSAI_PE_TO_TM_DELAY   22
#define AIF_TM_FIFO_FILL_MIN   4
#define AIF_SERDES_PROCESSING_DELAY   10
#define AIF_CPRI_RM_TO_TM_DELAY   60
#define AIF_OBSAI_RM_TO_TM_DELAY   38
#define AIF_UMTS_CHIP_SPEED_3840K   3840
#define AIF_UMTS_SAMPLE_SPEED_KHZ   (AIF_UMTS_CHIP_SPEED_3840K*8)
#define AIF_VBUS_CPU_RATIO   3
#define AIF_MAX_NUM_STREAMS   16
#define AIF_OUTDATA_OFFSET   0x02000000
#define AIF_LINK_BLOCK_SIZE   0x00400000
#define AIF_LINK_PHY_BLOCK_SIZE   2048
#define AIF_OUTPSFIFO_OFFSET   0x05000000
#define AIF_PS_OUT_DATA_BLOCK_SIZE   0x80000
#define AIF_INPSFIFO_OFFSET   0x04000000
#define AIF_PS_IN_DATA_BLOCK_SIZE   0x400000
#define AIF_PS_IN_FIFO_SIZE   8
#define AIF_PS_IN_FIFO_DEPTH   CSL_AIF2_INBOUND_PS_FIFO_EVENT_DEPTH_1
#define AIF_FSYNC_EVENT_LINK0_EDMA   4
#define AIF_CFG_BASE   (0x01f00000u)

Typedefs

typedef struct AIF_LinkConfigObj AIF_LinkConfigObj
 This structure contains the parameters for the initialization of a AIF2 link of the TMS320C6670. It also contains a reference to the CSL AIF object instance.
typedef struct AIF_DioConfigObj AIF_DioConfigObj
 This structure contains the parameters for the initialization of a AIF2 link of the TMS320C6670. It also contains a reference to the CSL AIF object instance.
typedef struct AIF_PktDmaConfigObj AIF_PktDmaConfigObj
 This structure contains the parameters for the PKTDMA and QMSS setup.
typedef struct AIF_HfnSyncObj AIF_HfnSyncObj
 This structure contains the parameters for the hfn sync state. It could be used to detect when sync is established (syncStatusChange = 1 and hfnsyncState = 1) or when sync is lost (syncStatusChange = 1 and hfnsyncState = 0) The context is in the AIF_getException processing function where below parameters are updated before clearing the exceptions.
typedef struct AIF_EeCountObj AIF_EeCountObj
 This structure contains the pointers to the AIF2 exception counters.
typedef struct AIF_DataTraceObj AIF_DataTraceObj
 This structure contains the parameters for the AIF2 Data Trace setup.
typedef struct AIF_LteRadTimerObj AIF_LteRadTimerObj
 This structure contains the parameters for the LTE specific radio timer configuration.
typedef struct AIF_RadTimerObj AIF_RadTimerObj
 This structure contains the parameters for the AIF2 radio timer configuration.
typedef struct AIF_AxCObj AIF_AxCObj
 This structure contains specific parameters for a given AIF2 antenna container (AxC).
typedef struct AIF_ConfigObj AIF_ConfigObj
 This structure contains the parameters for the initialization of a AIF HW module of the TMS320C6670. it includes configuration objects for all the links.

Enumerations

enum  AIF_Mode {
  AIF_WCDMA_MODE = 0, AIF_LTE_FDD_MODE = 1, AIF_LTE_WCDMA_MODE = 2, AIF_GENERICPACKET_MODE = 3,
  AIF_LTE_TDD_MODE = 4
}
 This enum describes the AIF mode supported by the AIF2 Lib. More...
enum  AIF_SampleRate {
  AIF_SRATE_1P92MHZ = 0, AIF_SRATE_3P84MHZ, AIF_SRATE_7P68MHZ, AIF_SRATE_15P36MHZ,
  AIF_SRATE_23P04MHZ, AIF_SRATE_30P72MHZ
}
 This enum describes the AIF2 Sampling rate per link. More...
enum  AIF_Com_Mode { AIF1_2_AIF2 = 0, AIF2_2_AIF2 = 1, AIF2_LOOPBACK = 2, AIF_COM_MAX }
 This enum describes the AIF types supported by ABT. More...
enum  AIF2_PackingMode
 This enum describes the AIF2 pack mode Interleaving usage for CPRI.
enum  AIF2_LteTddUlDlCfg
 This enum describes the LTE TDD UL-DL configuration. 00b = DL, 11b=UL, 01b=S Words are right justified with SF0 in LSB. SF 0 1 2 3 4 5 6 7 8 9 0 D S U U U D S U U U , 11 11 11 01 00 11 11 11 01 00, 0xFD3F4 1 D S U U D D S U U D , 00 11 11 01 00 00 11 11 01 00, 0x3D0F4 2 D S U D D D S U D D , 00 00 11 01 00 00 00 11 01 00, 0x0D034 3 D S U U U D D D D D , 00 00 00 00 00 11 11 11 01 00, 0x003F4 4 D S U U D D D D D D , 00 00 00 00 00 00 11 11 01 00, 0x000F4 5 D S U D D D D D D D , 00 00 00 00 00 00 00 11 01 00, 0x00034 6 D S U U U D S U U D , 00 11 11 01 00 11 11 11 01 00, 0x3D3F4 0xF3FCF.
enum  AIF2_LteTddSsfNcpCfg
 This enum describes the LTE TDD Special SF configuration for normal cyclic prefix. UL symbol = 11b, Dl symbol = 00b, GP symbol = 01 Words are right justified with DwPTS in LSB. SSF DwPTS GP UlPTS 0 3 10 1 , 11 01 01 01 01 01 01 01 01 01 01 00 00 00, 0xD555540 1 9 4 1 , 11 01 01 01 01 00 00 00 00 00 00 00 00 00, 0xD540000 2 10 3 1 , 11 01 01 01 00 00 00 00 00 00 00 00 00 00, 0xD500000 3 11 2 1 , 11 01 01 00 00 00 00 00 00 00 00 00 00 00, 0xD400000 4 12 1 1 , 11 01 00 00 00 00 00 00 00 00 00 00 00 00, 0xD000000 5 3 9 2 , 11 11 01 01 01 01 01 01 01 01 01 00 00 00, 0xF555540 6 9 3 2 , 11 11 01 01 01 00 00 00 00 00 00 00 00 00, 0xF540000 7 10 2 2 , 11 11 01 01 00 00 00 00 00 00 00 00 00 00, 0xF500000 8 11 1 2 , 11 11 01 00 00 00 00 00 00 00 00 00 00 00, 0xF400000.
enum  AIF2_LinkMode
 This enum describes the AIF2 link mode for dual mode usage.
enum  AIF_LteCpType
 This enum describes the Cyclic Prefix type for LTE.

Detailed Description

Header file for AIF module definitions.


Copyright 2014, Texas Instruments Incorporated