File: /usr/src/linux/drivers/net/hamradio/soundmodem/sm_tbl_afsk2400_7.h

1     /*
2      * THIS FILE IS GENERATED AUTOMATICALLY BY ./gentbl, DO NOT EDIT!
3      */
4     
5     
6     /*
7      * small cosine table in U8 format
8      */
9     #define OFFSCOSTABBITS 6
10     #define OFFSCOSTABSIZE (1<<OFFSCOSTABBITS)
11     
12     static unsigned char offscostab[OFFSCOSTABSIZE] = {
13     	 255, 254, 252, 249, 245, 240, 233, 226,
14     	 217, 208, 198, 187, 176, 164, 152, 140,
15     	 128, 115, 103,  91,  79,  68,  57,  47,
16     	  38,  29,  22,  15,  10,   6,   3,   1,
17     	   1,   1,   3,   6,  10,  15,  22,  29,
18     	  38,  47,  57,  68,  79,  91, 103, 115,
19     	 127, 140, 152, 164, 176, 187, 198, 208,
20     	 217, 226, 233, 240, 245, 249, 252, 254
21     };
22     
23     #define OFFSCOS(x) offscostab[((x)>>10)&0x3f]
24     
25     
26     /*
27      * more accurate cosine table
28      */
29     
30     static const short costab[64] = {
31     	 32767,  32609,  32137,  31356,  30272,  28897,  27244,  25329, 
32     	 23169,  20787,  18204,  15446,  12539,   9511,   6392,   3211, 
33     	     0,  -3211,  -6392,  -9511, -12539, -15446, -18204, -20787, 
34     	-23169, -25329, -27244, -28897, -30272, -31356, -32137, -32609, 
35     	-32767, -32609, -32137, -31356, -30272, -28897, -27244, -25329, 
36     	-23169, -20787, -18204, -15446, -12539,  -9511,  -6392,  -3211, 
37     	     0,   3211,   6392,   9511,  12539,  15446,  18204,  20787, 
38     	 23169,  25329,  27244,  28897,  30272,  31356,  32137,  32609
39     };
40     
41     #define COS(x) costab[((x)>>10)&0x3f]
42     #define SIN(x) COS((x)+0xc000)
43     
44     
45     /*
46      * afsk2400 specific tables (tcm3105 clk 7372800.000000Hz)
47      */
48     #define AFSK24_TX_FREQ_LO 1995
49     #define AFSK24_TX_FREQ_HI 3658
50     #define AFSK24_BITPLL_INC 9830
51     #define AFSK24_SAMPLERATE 16000
52     
53     static const int afsk24_tx_lo_i[] = {
54     	   10,   11,    0,  -43,  -89,  -80,   -1,   87,  112,   64,    0,  -24,  -16,   -7 
55     };
56     #define SUM_AFSK24_TX_LO_I 24
57     
58     static const int afsk24_tx_lo_q[] = {
59     	    0,   11,   35,   43,    0,  -78, -125,  -89,   -1,   62,   61,   25,    0,   -7 
60     };
61     #define SUM_AFSK24_TX_LO_Q -63
62     
63     static const int afsk24_tx_hi_i[] = {
64     	   10,    2,  -34,  -24,   76,   69,  -86, -101,   53,   83,  -14,  -35,    0,   10 
65     };
66     #define SUM_AFSK24_TX_HI_I 9
67     
68     static const int afsk24_tx_hi_q[] = {
69     	    0,   16,    9,  -56,  -45,   88,   90,  -74,  -98,   31,   59,   -3,  -16,   -1 
70     };
71     #define SUM_AFSK24_TX_HI_Q 0
72     
73