a2lfile
a2lfile
is a library that allows you to read, modify and write a2l files.
Features
- full support for files using A2L version 1.7.1
- it is fast
- the layout and format of the input file is preserved. The intention is that after 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
:
[]
= "2.0"
A simple program based on the a2lfile
library might look like this:
use *;
License
Licensed under either of
- Apache License, Version 2.0 (
LICENSE-APACHE
or http://www.apache.org/licenses/LICENSE-2.0) - MIT license (
LICENSE-MIT
or http://opensource.org/licenses/MIT)