Project

General

Profile

Bug #867

Updated by Veronique bouzid over 7 years ago

 
 J ai testé la fonction serFBinMask avec les parametres décrits ci-dessous 
 setFBinMask( fbins_mask, rw_f, deltaFreq, flag ); 

 rw_f = 96.0 
 deltaFreq= 96.0 

 flag=1 

 Voila la trace du calcul 

 --> on trouve 3 bins à masquer 0,1,2 
 *Channel = 0 and Freq = 96.000000* 
 binBelow = 1     and binAbove = 1 
 closestBin = 1 
 *bin0 = 0     and bin1= 1    and bin2= 2*  

 +le premier masque calculé pour le bin 0+ 
  Byte Range is 15     and previous mask is 0xff     (condition initiale) 
  Byte Range is 15     and mask is 0xfe                 le maque calculé 
 au final 
  *Byte Range is 15     and current mask is 0xfe*  

 +le masque calculé pour le bin 1+ 
  Byte Range is 15     and previous mask is 0xfe 
  Byte Range is 15     and mask is 0xfc                    le masque calculé 
  *Byte Range is 15     and current mask is 0xfc* 

 l+e masque calculé pour le bin 2+ 
  Byte Range is 15     and previous mask is 0xfc 
  Byte Range is 15     and mask is 0xf8                     le masque calculé 
  Byte Range is 15     and current mask is 0xf8 

 et ensuite le tour en plus lié au k=3 
  Byte Range is 15     and previous mask is 0xf8 
  Byte Range is 15     and mask is 0xf8 
  Byte Range is 15     and current mask is 0xf8 

 On obtient donc pour rw_f=96 hz et le channel 0, le masque suivant 
 Byte Range is 15     and current mask is 0xf8 ce qui signifie que les 3  

 Hors le tableau des frequences à F0 est le suivant  
 F0  
 : 88 bins ([17,104]) 
 [     *96     192*     288     384     480     576     672     768 
    864     960    1056    1152    1248    1344    1440    1536 
   1632    1728    1824    1920    2016    2112    2208    2304 
   2400    2496    2592    2688    2784    2880    2976    3072 
   3168    3264    3360    3456    3552    3648    3744    3840 
   3936    4032    4128    4224    4320    4416    4512    4608 
   4704    4800    4896    4992    5088    5184    5280    5376 
   5472    5568    5664    5760    5856    5952    6048    6144 
   6240    6336    6432    6528    6624    6720    6816    6912 
   7008    7104    7200    7296    7392    7488    7584    7680 
   7776    7872    7968    8064    8160    8256    8352    8448 
   8544    8640    8736    8832    8928    9024    9120    9216 
   9312    9408    9504    9600    9696    9792    9888    9984 
  10080 10176 10272 10368 10464 10560 10656 10752 
  10848 10944 11040 11136 11232 11328 11424 11520 
  11616 11712 11808 11904 12000 12096 12192 12288] 

 et donc on devrait obtenir comme *masque 0xfc* puisque que 96 et 192 doivent etre masquées. 

 Je rappelle que la fréquence 0 n est pas à considérer comme indiqué dans le REQ-RPW-LFR-2407 du document RPW-MEB-LFR-00003 (Technical specifications) 



Back