Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Usage: ini_2_c [options] –input <ini file name> -output <C filename> -format <C|H|BIN> -sdat <SDAT file name> [ -preset <Preset name> ] [ -sip_addr <DEVICE_I2C_ADDR>]
  • Usage: ini_2_c -help

Example:

  • ini_2_c -verboase verbose –input AR0833-REV1.ini -output AR0833-REV1.c -format C -sdat AR0833-REV1.xsdat

Example for binary output

  • ini_2_c -verbose –input AR0833-REV1.ini -output AR0833-REV1.c -format BIN -sdat AR0833-REV1.xsdat -preset "Demo Initialzation" -sip_addr 0x6c

Command line parameters

-input <ini file name >
Specify the input ini file.

-output <C/H/Binary filename>
Specify the filename for the C output file. The next parameter will control if output is header file format or code block format. If not given, default is stdout. 

-format <C/H>
Specify the output format. "C" will instruct the program to create C language code block; "H" will cause the program to create C header file format. If this switch is missing, or in default case, Ini_2_C will produce header file format output.

 

-sdat < sdat or .xsdat file name >
Specify the sdat/xsdat files input. If this file is missing, the program will stop.

 

-verbose
The program will output excessive message to output, including all presets and line inforamtion. Default is not to output debuging messages.

-preset <Preset Name>

The program will convert only the entered preset into binary file. This option has no effect on the C and H outputs. Default is "Demo Initialization". 

-sip_addr <I2C_ADDR>

The program adds the sip_addr to the binary configuration. This is a compulsory input parameter when binary output is required. There is no default.

-help
This message.Gives usage of the tool.