Coverage Report

Created: 2025-06-15 00:57

/src/cmp_tool/programs/rdcu_pkt_to_file.h
Line
Count
Source (jump to first uncovered line)
1
/**
2
 * @file   rdcu_pkt_to_file.h
3
 * @author Dominik Loidolt (dominik.loidolt@univie.ac.at)
4
 * @date   2020
5
 *
6
 * @copyright GPLv2
7
 * This program is free software; you can redistribute it and/or modify it
8
 * under the terms and conditions of the GNU General Public License,
9
 * version 2, as published by the Free Software Foundation.
10
 *
11
 * This program is distributed in the hope it will be useful, but WITHOUT
12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14
 * more details.
15
 *
16
 * @brief RDCU packets to file library header file
17
 */
18
19
#ifndef RDCU_PKT_TO_FILE_H
20
#define RDCU_PKT_TO_FILE_H
21
22
#include <cmp_support.h>
23
24
/* directory where the tc files are stored, when --rdcu_pkt option is set */
25
0
#define TC_DIR "TC_FILES"
26
27
0
#define RDCU_DEST_KEY 0x0
28
29
0
#define MAX_TC_FOLDER_DIR_LEN 256
30
31
/* default values when no .rdcu_pkt_mode_cfg file is available */
32
0
#define DEF_ICU_ADDR 0xA7
33
0
#define DEF_RDCU_ADDR 0xFE
34
0
#define DEF_MTU 4224
35
36
int init_rmap_pkt_to_file(void);
37
38
void set_tc_folder_dir(const char *dir_name);
39
40
int gen_write_rdcu_pkts(const struct rdcu_cfg *rcfg);
41
int gen_read_rdcu_pkts(const struct cmp_info *info);
42
int gen_rdcu_parallel_pkts(const struct rdcu_cfg *rcfg,
43
         const struct cmp_info *last_info);
44
45
#endif /* RDCU_PKT_TO_FILE_H */