/* * 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) /* * afsk1200 specific tables */ #define AFSK12_SAMPLE_RATE 9600 #define AFSK12_TX_FREQ_LO 1200 #define AFSK12_TX_FREQ_HI 2200 #define AFSK12_CORRLEN 8 static const int afsk12_tx_lo_i[] = { 127, 89, 0, -89, -127, -89, 0, 89 }; #define SUM_AFSK12_TX_LO_I 0 static const int afsk12_tx_lo_q[] = { 0, 89, 127, 89, 0, -89, -127, -89 }; #define SUM_AFSK12_TX_LO_Q 0 static const int afsk12_tx_hi_i[] = { 127, 16, -122, -48, 109, 77, -89, -100 }; #define SUM_AFSK12_TX_HI_I -30 static const int afsk12_tx_hi_q[] = { 0, 125, 32, -117, -63, 100, 89, -77 }; #define SUM_AFSK12_TX_HI_Q 89