platforms/os/Symbian/WVSS/misc_files/radio_ini.h
changeset 0 10c42ec6c05f
equal deleted inserted replaced
-1:000000000000 0:10c42ec6c05f
       
     1 /*
       
     2  * radio_ini.h
       
     3  *
       
     4  * Copyright(c) 1998 - 2010 Texas Instruments. All rights reserved.      
       
     5  * All rights reserved.      
       
     6  * 
       
     7  * This program and the accompanying materials are made available under the 
       
     8  * terms of the Eclipse Public License v1.0 or BSD License which accompanies
       
     9  * this distribution. The Eclipse Public License is available at
       
    10  * http://www.eclipse.org/legal/epl-v10.html and the BSD License is as below.                                   
       
    11  *                                                                       
       
    12  * Redistribution and use in source and binary forms, with or without    
       
    13  * modification, are permitted provided that the following conditions    
       
    14  * are met:                                                              
       
    15  *                                                                       
       
    16  *  * Redistributions of source code must retain the above copyright     
       
    17  *    notice, this list of conditions and the following disclaimer.      
       
    18  *  * Redistributions in binary form must reproduce the above copyright  
       
    19  *    notice, this list of conditions and the following disclaimer in    
       
    20  *    the documentation and/or other materials provided with the         
       
    21  *    distribution.                                                      
       
    22  *  * Neither the name Texas Instruments nor the names of its            
       
    23  *    contributors may be used to endorse or promote products derived    
       
    24  *    from this software without specific prior written permission.      
       
    25  *                                                                       
       
    26  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS   
       
    27  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT     
       
    28  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 
       
    29  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT  
       
    30  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
       
    31  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT      
       
    32  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
       
    33  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
       
    34  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT   
       
    35  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
       
    36  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
       
    37  */
       
    38 
       
    39 
       
    40 
       
    41 /** \file  radio_ini.h 
       
    42  *  \brief This file is a draft version and it contains the parameters needed for the Radio ini configuration
       
    43  *		   User must fill the TAutoRadioIniParams structure and append it in the aData structure
       
    44  *  \see   
       
    45  */
       
    46 
       
    47 
       
    48 /////////////////////////////////////////////////////////////////////////
       
    49 // Database:	IniFileGeneralParam
       
    50 // Command:		TEST_CMD_INI_FILE_GENERAL_PARAM
       
    51 /////////////////////////////////////////////////////////////////////////
       
    52 
       
    53 #define MAX_SMART_REFLEX_PARAM 16
       
    54  
       
    55 typedef struct 
       
    56 {
       
    57 	unsigned char RefClk;                                 
       
    58 	unsigned char SettlingTime;                                                                 
       
    59 	unsigned char ClockValidOnWakeup;                      
       
    60 	unsigned char DC2DCMode;                               
       
    61 	unsigned char Single_Dual_Band_Solution;               
       
    62 
       
    63 	unsigned char	TXBiPFEMAutoDetect;
       
    64 	unsigned char	TXBiPFEMManufacturer; 
       
    65     unsigned char   GeneralSettings;
       
    66 
       
    67     unsigned char   SRState;
       
    68     char  SRF1[MAX_SMART_REFLEX_PARAM];
       
    69     char  SRF2[MAX_SMART_REFLEX_PARAM];
       
    70     char  SRF3[MAX_SMART_REFLEX_PARAM];
       
    71 
       
    72     unsigned char padding[2];
       
    73 
       
    74 }IniFileGeneralParam;  
       
    75 
       
    76 typedef enum 
       
    77 {		
       
    78 	FEM_MANUAL_DETECT_MODE_E,
       
    79 	FEM_AUTO_DETECT_MODE_E
       
    80 
       
    81 }FEM_DETECT_MODE_ENM;
       
    82 
       
    83 typedef enum 
       
    84 {		
       
    85 
       
    86 	FEM_RFMD_TYPE_E,
       
    87 	FEM_TRIQUINT_TYPE_E,
       
    88 	NUMBER_OF_FEM_TYPES_E
       
    89 
       
    90 }FEM_TYPE_ENM;
       
    91 
       
    92 typedef enum 
       
    93 {		
       
    94 	REF_CLK_19_2_E,
       
    95 	REF_CLK_26_E,
       
    96 	REF_CLK_38_4_E,
       
    97 	REF_CLK_52_E
       
    98 
       
    99 }REF_CLK_ENM;
       
   100 
       
   101 typedef enum 
       
   102 {		
       
   103 	REF_CLK_NOT_VALID_E,
       
   104 	REF_CLK_VALID_AND_STABLE_E
       
   105 
       
   106 }CLK_VALID_ON_WAKEUP_ENM;
       
   107 
       
   108 typedef enum 
       
   109 {		
       
   110 	BT_SPI_IS_NOT_USED_E,
       
   111 	MUX_DC2DC_TO_BT_FUNC2_E
       
   112 
       
   113 }DC2DC_MODE_ENM;
       
   114 
       
   115 typedef enum 
       
   116 {		
       
   117 	SINGLE_BAND_SOLUTION_E,
       
   118 	DUAL_BAND_SOLUTION_E
       
   119 
       
   120 }SINGLE_DUAL_BAND_SOLUTION_ENM;
       
   121 
       
   122 /////////////////////////////////////////////////////////////////////////
       
   123 // Database:	IniFileRadioParam
       
   124 // Command:		TEST_CMD_INI_FILE_RADIO_PARAM
       
   125 /////////////////////////////////////////////////////////////////////////
       
   126 
       
   127 #define RSSI_AND_PROCESS_COMPENSATION_TABLE_SIZE   (15)
       
   128 #define NUMBER_OF_SUB_BANDS_IN_5G_BAND_E           (7) 
       
   129 #define NUMBER_OF_RATE_GROUPS_E                    (6)
       
   130 #define NUMBER_OF_2_4_G_CHANNELS                   (14)
       
   131 #define NUMBER_OF_5G_CHANNELS                      (35)
       
   132 
       
   133 typedef struct 
       
   134 {	
       
   135 	unsigned char RxTraceInsertionLoss_2_4G;																							
       
   136 	unsigned char TXTraceLoss_2_4G;																							
       
   137 	char  RxRssiAndProcessCompensation_2_4G[RSSI_AND_PROCESS_COMPENSATION_TABLE_SIZE];						
       
   138 
       
   139     unsigned char padding;
       
   140     
       
   141 }TStatRadioParams;  
       
   142 
       
   143 typedef struct 
       
   144 {
       
   145 	// SECTION 1: 2.4G parameters
       
   146 	short TXBiPReferencePDvoltage_2_4G;
       
   147 	char  TxBiPReferencePower_2_4G;
       
   148 	char  TxBiPOffsetdB_2_4G;
       
   149 	char  TxPerRatePowerLimits_2_4G_Normal[NUMBER_OF_RATE_GROUPS_E];
       
   150 	char  TxPerRatePowerLimits_2_4G_Degraded[NUMBER_OF_RATE_GROUPS_E];
       
   151     char  TxPerRatePowerLimits_2_4G_Extreme[NUMBER_OF_RATE_GROUPS_E];
       
   152 	char  TxPerChannelPowerLimits_2_4G_11b[NUMBER_OF_2_4_G_CHANNELS];
       
   153 	char  TxPerChannelPowerLimits_2_4G_OFDM[NUMBER_OF_2_4_G_CHANNELS];
       
   154 	char  TxPDVsRateOffsets_2_4G[NUMBER_OF_RATE_GROUPS_E];
       
   155 	unsigned char TxIbiasTable_2_4G[NUMBER_OF_RATE_GROUPS_E];
       
   156 	unsigned char RxFemInsertionLoss_2_4G;
       
   157     unsigned char DegradedLowToNormalThr_2_4G;
       
   158     unsigned char NormalToDegradedHighThr_2_4G;
       
   159     
       
   160     unsigned char padding;
       
   161      
       
   162 }TDynRadioParams;  
       
   163 
       
   164 
       
   165 /////////////////////////////////////////////////////////////////////////
       
   166 // Addition to: WHA and TRIOSCOPE (not public_radion.h !!!)
       
   167 /////////////////////////////////////////////////////////////////////////
       
   168 
       
   169 typedef struct 
       
   170 {
       
   171  IniFileGeneralParam  tGeneralParams;
       
   172  TStatRadioParams	  tStatRadioParams;
       
   173  TDynRadioParams	  tDynRadioParams[NUMBER_OF_FEM_TYPES_E];
       
   174 
       
   175 }TAutoRadioIniParams;