/* * THIS FILE IS GENERATED AUTOMATICALLY BY ./gentbl, DO NOT EDIT! */ /* * small cosine table in U8 format */ #define OFFSCOSTABBITS 6 #define OFFSCOSTABSIZE (1<>10)&0x3f] /* * more accurate cosine table */ static const short costab[64] = { 32767, 32609, 32137, 31356, 30272, 28897, 27244, 25329, 23169, 20787, 18204, 15446, 12539, 9511, 6392, 3211, 0, -3211, -6392, -9511, -12539, -15446, -18204, -20787, -23169, -25329, -27244, -28897, -30272, -31356, -32137, -32609, -32767, -32609, -32137, -31356, -30272, -28897, -27244, -25329, -23169, -20787, -18204, -15446, -12539, -9511, -6392, -3211, 0, 3211, 6392, 9511, 12539, 15446, 18204, 20787, 23169, 25329, 27244, 28897, 30272, 31356, 32137, 32609 }; #define COS(x) costab[((x)>>10)&0x3f] #define SIN(x) COS((x)+0xc000) /* * afsk2400 specific tables (tcm3105 clk 7372800.000000Hz) */ #define AFSK24_TX_FREQ_LO 1995 #define AFSK24_TX_FREQ_HI 3658 #define AFSK24_BITPLL_INC 9830 #define AFSK24_SAMPLERATE 16000 static const int afsk24_tx_lo_i[] = { 10, 11, 0, -43, -89, -80, -1, 87, 112, 64, 0, -24, -16, -7 }; #define SUM_AFSK24_TX_LO_I 24 static const int afsk24_tx_lo_q[] = { 0, 11, 35, 43, 0, -78, -125, -89, -1, 62, 61, 25, 0, -7 }; #define SUM_AFSK24_TX_LO_Q -63 static const int afsk24_tx_hi_i[] = { 10, 2, -34, -24, 76, 69, -86, -101, 53, 83, -14, -35, 0, 10 }; #define SUM_AFSK24_TX_HI_I 9 static const int afsk24_tx_hi_q[] = { 0, 16, 9, -56, -45, 88, 90, -74, -98, 31, 59, -3, -16, -1 }; #define SUM_AFSK24_TX_HI_Q 0