analogdevicesinc / ad936x-filter-wizard

MATLAB-based FIR filter design
Other
50 stars 40 forks source link

add support for generating no-OS filter structures #6

Closed radhermit closed 8 years ago

radhermit commented 8 years ago

Example structures similar to the following:

AD9361_RXFIRConfig rx_fir_config = {    // BPF PASSBAND 3/20 fs to 1/4 fs
    3, // rx
    0, // rx_gain
    2, // rx_dec
    {-4, -6, -37, 35, 186, 86, -284, -315,
    107, 219, -4, 271, 558, -307, -1182, -356,
    658, 157, 207, 1648, 790, -2525, -2553, 748,
    865, -476, 3737, 6560, -3583, -14731, -5278, 14819,
    14819, -5278, -14731, -3583, 6560, 3737, -476, 865,
    748, -2553, -2525, 790, 1648, 207, 157, 658,
    -356, -1182, -307, 558, 271, -4, 219, 107,
    -315, -284, 86, 186, 35, -37, -6, -4,
    0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0}, // rx_coef[128]
    64, // rx_coef_size
    {983040000,491520000,245760000,122880000,122880000,61440000}, // rx_path_clks[6]
    18000 // rx_bandwidth
};

AD9361_TXFIRConfig tx_fir_config = {    // BPF PASSBAND 3/20 fs to 1/4 fs
    3, // tx
    -6, // tx_gain
    2, // tx_int
    {-4, -6, -37, 35, 186, 86, -284, -315,
    107, 219, -4, 271, 558, -307, -1182, -356,
    658, 157, 207, 1648, 790, -2525, -2553, 748,
    865, -476, 3737, 6560, -3583, -14731, -5278, 14819,
    14819, -5278, -14731, -3583, 6560, 3737, -476, 865,
    748, -2553, -2525, 790, 1648, 207, 157, 658,
    -356, -1182, -307, 558, 271, -4, 219, 107,
    -315, -284, 86, 186, 35, -37, -6, -4,
    0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0,
    0, 0, 0, 0, 0, 0, 0, 0}, // tx_coef[128]
    64, // tx_coef_size
    {983040000,245760000,122880000,122880000,122880000,61440000}, // tx_path_clks[6]
    18000 // tx_bandwidth
};