This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

tiwlan.ini parameters format

I need some clarification of tiwlan.ini parameters containing integer values.
Some of them are decimal numbers and some hex numbers.
 
For example in my example tiwlan.ini file only two integer parameters are set as hex number:
 
---------------------------
OsDbgState = 0x01e9003c and
SRState = 0x01
---------------------------
 
and the rest are decimal.
 
There are some commented out lines however which are set to hex while equivalent uncommented lines are set to decimal:
 
---------------------------
TXBiPReferencePDvoltage_2_4G = 375  # 0x177
TxBiPReferencePower_2_4G = 128      # 0x80
 
...
 
#TXBiPReferencePDvoltage_2_4G = 0x0164
#TxBiPReferencePower_2_4G  = 0x80
---------------------------
 


So my question are:
 
1) Is there any specific division of integer parameters for those groups those set with decimal and those with hex numbers ? OR
 
2) All (or some) of them can be set with both decimal and hex numbers and driver understand both of them (distinguish hex number from decimal by 0x prefix) ?
 
3) If there are specific parameters that require hex values, is 0x prefix obligatory ? (so 0xa8 is legal while a8 is illegal) ?
 
Thank you in advance.
  • Hi,

    The simplest  way is to go the same way as indicated in the ini file.

    In case there is a need to add new parameter or just for verification then you may look at os registry code that is located at file  platform\os\common\src\osRgstry.c  there you will find 2 kind of functions regReadIntegerParameterHex() and regReadIntegerParameter() that reads the value  from a specific parameter in hex format or in decimal format.

    As per your specific question then TXBiPReferencePDvoltage_2_4G is used by the software as a decimal value and for that reason it gets decimal value, however the physically the bit fields give TI R&D some sense of configuration (for that reason it is written in hex as a comment) , however usually in that case it will be TI internal configuration that a user will not have to modify.

    As for hex format, it advised to start it with 0x prefix   

    Regards,

    Eyal