a2lfile
a2lfile is a library that allows you to read, modify and write a2l files.
Features
- full support for files using A2L version 1.61
- nearly complete support for version 1.71. It handles existing files, but unusual elements might cause problems.
- it is fast
- the layout and formatting of the input file is preserved. The intention is that afer reading, modifying and then writing a file the resulting diff should be minimal
- easy access to application-specific data inside of IF_DATA blocks is provided through a macro that generates code based on an A2ML specification
What is an a2l file
A2l files are commonly used during the development and testing of automotive ECUs. The consumer of the a2l file typically performs online calibration over a protocol such as XCP and/or offline tuning by generating flashable parameter sets.
If you have never seen an a2l file then you are unlikely to need this library.
Tools
The program a2ltool is based on this library.
Documentation
Add this to your Cargo.toml:
[]
= "0.8.2"
A simple program based on the a2lfile library might look like this:
use *;
License
Licensed under either of
- Apache License, Version 2.0 (
LICENSE-APACHEor http://www.apache.org/licenses/LICENSE-2.0) - MIT license (
LICENSE-MITor http://opensource.org/licenses/MIT)