4 * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
6 * Support for Busmaster log file format
7 * Copyright (c) 2019 by Maksim Salau <maksim.salau@gmail.com>
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef BUSMASTER_PRIV_H__
13 #define BUSMASTER_PRIV_H__
16 #include <wiretap/wtap.h>
17 #include <wiretap/socketcan.h>
19 //#define BUSMASTER_DEBUG
20 //#define BUSMASTER_PARSER_TRACE
28 LOG_ENTRY_FOOTER_AND_HEADER
,
41 DATA_MODE_UNKNOWN
= 0,
47 TIME_MODE_UNKNOWN
= 0,
83 uint8_t data
[CANFD_MAX_DLEN
];
101 int64_t file_start_offset
;
102 int64_t file_end_offset
;
103 protocol_type_t protocol
;
104 data_mode_t data_mode
;
105 time_mode_t time_mode
;
106 msg_date_t start_date
;
107 msg_time_t start_time
;
112 int64_t file_bytes_read
;
120 log_entry_type_t entry_type
;
121 busmaster_priv_t header
;
126 run_busmaster_parser(busmaster_state_t
*state
,
127 int *err
, char **err_info
);
129 #ifdef BUSMASTER_DEBUG
131 #define busmaster_debug_printf(...) printf(__VA_ARGS__)
133 #define busmaster_debug_printf(...) (void)0
136 #endif /* BUSMASTER_PRIV_H__ */