Other Parts Discussed in Thread: LMK05318, LMK5B12204, LMK5B33216, CDCI6214, CDCE6214
Tool/software:
I'm working on a set of Python tools to make my workflow on Linux easier. As part of that, I'd like to be able to generate the register export and eeprom map directly from the tcs file and the device's configuration ini file. First, I fully acknowledge that these are internal files and subject to change without notice. Having said that...I already have a Python module that can take the device's ini file and convert it to XML which makes it much easier to search. I also have modules that use that XML and can use a variety of I2C devices to get status and configuration data in a nice format, at least for the LMK05318 and LMK5B12204. I also have Python modules that can load register exports and EEPROM maps to the device. The next step for me though is to be able to generate those myself from the tcs file rather than having to export them from TICS Pro every time. So, can you confirm...
* Generating the register export should be as simple as running through the [MODES] section of the tcs file using the REGISTER_LENGTH, CONTROL_LENGTH_OFFSET and CONTROL_LENGTH fields from the ini file to separate the register location from the value?
* Generating the EEPROM map isn't quite so simple but still straightforward... Run through the [EEPROM_EETYPE_DEFINITION] section in the device's ini file, looking each field name up in the [BITS] section to get its register, offset and length, getting the values from the tcs file [MODES] section, then packing them into contiguous bytes. From my experimentation this looks to produce the exact same results as doing a eeprom map export from TICS Pro but I wanted to confirm.
Finally, is there anything proprietary about the tcs and device ini files that would prevent me from creating an open-source package containing my Python tools? Is there anything that would prevent me from including in that package the XML device configuration derived from the device's ini file? I'd include appropriate copyrights, licenses and disclaimers of course. Alternatively, I could just include instructions for grabbing the device ini files from the TICS Pro install and converting them to XML.
Thanks...george