Help: ICE_ICELIB_PIC_TUNER_FREQ
Returns the nearest supported down conversion freq
Function PIC_TUNER_FREQ - Returns the nearest supported down conversion freq
PIC p Handle to Device
double fcyn Tuner frequency/nyquist desired
int flags Run-time modifiers
Returns:
double PIC_TUNER_FREQ Actual (33bit rounded) frequency
The Harris HSP50016 DDC has a 33 bit phase accumulator resulting in a tuning
resolution of (input freq)/(2**33).
The Graychip GC4014/4016 has a 32 bit phase accumulator resulting in a tuning
resolution of (input freq)/(2**32).
The Xilinx FPGA Tuner Core has a 32 bit phase accumulator resulting in a tuning
resolution of (input freq)/(2**32).
The input frequency is rounded to the nearest legal value.
This routine returns what PIC_TUNER will actually apply so that
application code can easily find the actual tuned frequency.
If this function is not called on the tuners active handle,
(i.e. PICD GET <device> NFREQ fcny), then the flags must contain
any parameters that will affect the rounding. Namely:
OVSR=n if not 1
RATIO=x if PRESAMP is being used (don't use for RESAMP)
FTTM=2|3 if FTT modes are being exercised