Home
last modified time | relevance | path

Searched refs:center_freq (Results 1 – 3 of 3) sorted by relevance

/babblesim_ext_2G4_libPhyComv1-latest/src/
Dbs_pc_2G4_utils.c65 p2G4_freq_t center_freq; in p2G4_center_freq_from_ble_ch_nbr() local
66 if ( p2G4_freq_from_d( freq, 1, &center_freq ) != 0 ){ in p2G4_center_freq_from_ble_ch_nbr()
69 return center_freq; in p2G4_center_freq_from_ble_ch_nbr()
166 int p2G4_freq_from_d(double center_freq, int prevent_OOB, p2G4_freq_t *result){ in p2G4_freq_from_d() argument
167 double i_center_freq = center_freq; in p2G4_freq_from_d()
168 if ( center_freq > 1e9 ){ //they provided it in Hz in p2G4_freq_from_d()
169 center_freq = center_freq/1e6; in p2G4_freq_from_d()
170 } else if ( center_freq > 1e6 ) { //they provided it in KHz.. in p2G4_freq_from_d()
171 center_freq = center_freq/1e3; in p2G4_freq_from_d()
175 …if ( ( center_freq >= 2400-128 ) && ( center_freq <= 2400+128 ) ) //we offset it down to 0 = 2400M… in p2G4_freq_from_d()
[all …]
Dbs_pc_2G4_utils.h25 int p2G4_freq_from_d(double center_freq, int prevent_OOB, p2G4_freq_t *result);
Dbs_pc_2G4_types.h54 p2G4_freq_t center_freq; member