Home | History | Annotate | Download | only in inc
      1 
      2 /*
      3  ** Copyright 2003-2010, VisualOn, Inc.
      4  **
      5  ** Licensed under the Apache License, Version 2.0 (the "License");
      6  ** you may not use this file except in compliance with the License.
      7  ** You may obtain a copy of the License at
      8  **
      9  **     http://www.apache.org/licenses/LICENSE-2.0
     10  **
     11  ** Unless required by applicable law or agreed to in writing, software
     12  ** distributed under the License is distributed on an "AS IS" BASIS,
     13  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  ** See the License for the specific language governing permissions and
     15  ** limitations under the License.
     16  */
     17 
     18 
     19 
     20 #define DHF_PARMS_MAX 32               /* homing frame pattern  */
     21 #define NUM_OF_SPMODES 9
     22 
     23 #define PRML 15
     24 #define PRMN_7k NBBITS_7k/PRML + 1
     25 #define PRMN_9k NBBITS_9k/PRML + 1
     26 #define PRMN_12k NBBITS_12k/PRML + 1
     27 #define PRMN_14k NBBITS_14k/PRML + 1
     28 #define PRMN_16k NBBITS_16k/PRML + 1
     29 #define PRMN_18k NBBITS_18k/PRML + 1
     30 #define PRMN_20k NBBITS_20k/PRML + 1
     31 #define PRMN_23k NBBITS_23k/PRML + 1
     32 #define PRMN_24k NBBITS_24k/PRML + 1
     33 
     34 static const Word16 dfh_M7k[PRMN_7k] =
     35 {
     36   3168, 29954, 29213, 16121,
     37 	64, 13440, 30624, 16430,
     38  19008
     39 };
     40 
     41 static const Word16 dfh_M9k[PRMN_9k] =
     42 {
     43    3168, 31665,  9943, 9123,
     44   15599,  4358, 20248, 2048,
     45   17040, 27787, 16816, 13888
     46 };
     47 
     48 static const Word16 dfh_M12k[PRMN_12k] =
     49 {
     50   3168, 31665,  9943,  9128,
     51   3647,  8129, 30930, 27926,
     52  18880, 12319,   496,  1042,
     53   4061, 20446, 25629, 28069,
     54  13948
     55 };
     56 
     57 static const Word16 dfh_M14k[PRMN_14k] =
     58 {
     59     3168, 31665,  9943,  9131,
     60    24815,   655, 26616, 26764,
     61     7238, 19136,  6144,    88,
     62 	4158, 25733, 30567, 30494,
     63 	221, 20321, 17823
     64 };
     65 
     66 static const Word16 dfh_M16k[PRMN_16k] =
     67 {
     68     3168, 31665,  9943,  9131,
     69    24815,   700,  3824,  7271,
     70    26400,  9528,  6594, 26112,
     71      108,  2068, 12867, 16317,
     72    23035, 24632,  7528,  1752,
     73     6759, 24576
     74 };
     75 
     76 static const Word16 dfh_M18k[PRMN_18k] =
     77 {
     78      3168, 31665,  9943,  9135,
     79 	14787, 14423, 30477, 24927,
     80 	25345, 30154,   916,  5728,
     81 	18978,  2048,   528, 16449,
     82 	 2436,  3581, 23527, 29479,
     83 	 8237, 16810, 27091, 19052,
     84 	    0
     85 };
     86 
     87 static const Word16 dfh_M20k[PRMN_20k] =
     88 {
     89      3168, 31665,  9943,  9129,
     90 	 8637, 31807, 24646,   736,
     91 	28643,  2977,  2566, 25564,
     92 	12930, 13960,  2048,   834,
     93 	 3270,  4100, 26920, 16237,
     94 	31227, 17667, 15059, 20589,
     95 	30249, 29123, 0
     96 };
     97 
     98 static const Word16 dfh_M23k[PRMN_23k] =
     99 {
    100 	 3168, 31665,  9943,  9132,
    101 	16748,  3202, 28179, 16317,
    102 	30590, 15857, 19960,  8818,
    103 	21711, 21538,  4260, 16690,
    104 	20224,  3666,  4194,  9497,
    105 	16320, 15388,  5755, 31551,
    106 	14080,  3574, 15932,    50,
    107 	23392, 26053, 31216
    108 };
    109 
    110 static const Word16 dfh_M24k[PRMN_24k] =
    111 {
    112 	 3168, 31665,  9943,  9134,
    113 	24776,  5857, 18475, 28535,
    114 	29662, 14321, 16725,  4396,
    115 	29353, 10003, 17068, 20504,
    116 	  720,     0,  8465, 12581,
    117 	28863, 24774,  9709, 26043,
    118 	 7941, 27649, 13965, 15236,
    119 	18026, 22047, 16681,  3968
    120 };
    121 
    122 
    123 
    124