froks / dlt-core

kotlin dlt library to parse autosar dlt files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maven Central

dlt-core

dlt-core is a kotlin library to parse autosar dlt files.

It currently only supports dlt version 1.

Usage:

Add io.github.froks:dlt-core:<version> to your dependencies - see mavencentral for snippets.

Code:

DltMessageParser.parseFile(Path.of("file.dlt")).forEach { 
    val msg = it.dltMessage as DltMessageV1
    if (msg.extendedHeader?.apIdText != "MYAP") {
        return@forEach
    }
    // do stuff with msg
}

About

kotlin dlt library to parse autosar dlt files

License:Apache License 2.0


Languages

Language:Kotlin 100.0%