pub fn dlt_message<'a>(
input: &'a [u8],
filter_config_opt: Option<&ProcessedDltFilterConfig>,
with_storage_header: bool,
) -> Result<(&'a [u8], ParsedMessage), DltParseError>
Expand description
Parse a DLT-message from some binary input data.
A DLT message looks like this: <STANDARD-HEADER><EXTENDED-HEADER><PAYLOAD>
if stored, an additional header is placed BEFORE all of this <storage-header><...>
§example: 444C5401 262CC94D D8A20C00 45435500 3500001F 45435500 3F88623A 16014150 5000434F 4E001100 00000472 656D6F
<STORAGE-HEADER>: 444C5401 262CC94D D8A20C00 45435500
444C5401 = DLT + 0x01 (DLT Pattern)
timestamp_sec: 262CC94D = 0x4DC92C26
timestamp_us: D8A20C00 = 0x000CA2D8
ecu-id: 45435500 = b“ECU\0“