1 #ifndef BS_WLAN_ARGS_H 2 #define BS_WLAN_ARGS_H 3 4 #include "bs_types.h" 5 #include "bs_pc_2G4_types.h" 6 #include "bs_cmd_line_typical.h" 7 8 #ifdef __cplusplus 9 extern "C" { 10 #endif 11 12 #define WLAN_actmod_MAX_TIMES 256 13 14 #define WLAN_MAX_NBR_PORTS 255 15 16 typedef struct{ 17 ARG_S_ID 18 ARG_P_ID 19 unsigned int device_nbr[WLAN_MAX_NBR_PORTS]; 20 ARG_GDEV_NBR 21 ARG_VERB 22 ARG_SEED 23 unsigned int number_ports; 24 double ports_probs[WLAN_MAX_NBR_PORTS]; 25 ARG_STARTO 26 27 p2G4_power_t powerdBm; 28 p2G4_freq_t centerfreq; 29 p2G4_modulation_t modulation; 30 31 uint n_times_start; 32 uint n_times_end; 33 bs_time_t times_start[WLAN_actmod_MAX_TIMES]; 34 bs_time_t times_end[WLAN_actmod_MAX_TIMES]; 35 36 unsigned int PacketMinSize; 37 unsigned int PacketMaxSize; 38 unsigned int PacketHeaderSize; 39 double DataRate; 40 double SIFS; 41 unsigned int ACKBe; 42 double ACKT; 43 double AveCWSize; 44 double BeaconPeriod; 45 46 double p; 47 double sigma; 48 double kappa; 49 50 double DIFS; 51 } WLAN_actmod_args_t; 52 53 void WLAN_actmod_argparse(int argc, char *argv[], WLAN_actmod_args_t *args); 54 55 #ifdef __cplusplus 56 } 57 #endif 58 59 #endif 60