1 /* 2 * Copyright 2018 Oticon A/S 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 #ifndef BS_BURSTINT_ARGS_H 7 #define BS_BURSTINT_ARGS_H 8 9 #include "bs_types.h" 10 #include "bs_pc_2G4_types.h" 11 #include "bs_cmd_line.h" 12 #include "bs_cmd_line_typical.h" 13 14 #ifdef __cplusplus 15 extern "C" { 16 #endif 17 18 #define BS_BUSRTINT_MAX_TIMES 256 19 20 typedef struct{ 21 BS_BASIC_DEVICE_OPTIONS_FIELDS 22 p2G4_power_t powerdBm; 23 p2G4_freq_t center_freq; 24 p2G4_modulation_t type; 25 uint n_times_start; 26 uint n_times_end; 27 bs_time_t times_start[BS_BUSRTINT_MAX_TIMES]; 28 bs_time_t times_end[BS_BUSRTINT_MAX_TIMES]; 29 } burstint_args_t; 30 31 void bs_burstint_argsparse(int argc, char *argv[], burstint_args_t *args); 32 33 #ifdef __cplusplus 34 } 35 #endif 36 37 #endif 38