2018-09-14 22:20:11 +08:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2017 Oticon A/S
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
|
|
|
#ifndef BSIM_NRF_ARGS_H
|
|
|
|
#define BSIM_NRF_ARGS_H
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include "NRF_hw_args.h"
|
2019-01-04 21:20:11 +08:00
|
|
|
#include "bs_cmd_line.h"
|
2018-09-14 22:20:11 +08:00
|
|
|
#include "bs_cmd_line_typical.h"
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define MAXPARAMS_TESTCASES 1024
|
|
|
|
|
|
|
|
struct NRF_bsim_args_t {
|
|
|
|
BS_BASIC_DEVICE_OPTIONS_FIELDS
|
|
|
|
char *test_case_argv[MAXPARAMS_TESTCASES];
|
|
|
|
int test_case_argc;
|
|
|
|
nrf_hw_sub_args_t nrf_hw;
|
|
|
|
};
|
|
|
|
|
2019-01-04 21:20:11 +08:00
|
|
|
struct NRF_bsim_args_t *nrfbsim_argsparse(int argc, char *argv[]);
|
|
|
|
void bs_add_extra_dynargs(bs_args_struct_t *args_struct_toadd);
|
2021-08-24 15:54:35 +08:00
|
|
|
char *get_simid(void);
|
|
|
|
unsigned int get_device_nbr(void);
|
2018-09-14 22:20:11 +08:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|