Velocity Userspace
|
ini2bin API functions More...
Functions | |
int | switchtec_convert_ini2bin (FILE *szINIFileName, char *pclog, BYTE *m_pBinConfig, int *binlength) |
Converts an INI configuration file to a binary format. More... | |
ini2bin API functions
These are functions used for converting INI file to BIN for OTP configuration record
int switchtec_convert_ini2bin | ( | FILE * | szINIFileName, |
char * | pclog, | ||
BYTE * | m_pBinConfig, | ||
int * | binlength | ||
) |
Converts an INI configuration file to a binary format.
This function reads an INI configuration file, processes its key-value pairs, and generates a binary configuration buffer. It supports various modes such as writing bytes, setting bits, clearing bits, and patching code. The function ensures valid addressing and handles mode switches appropriately.
szINIFileName | Pointer to the INI file to be converted. |
pclog | Pointer to a log buffer for storing debug or error messages. |
m_pBinConfig | Pointer to the output binary configuration buffer. |
binlength | Pointer to an integer where the length of the binary buffer will be stored. |