sdr.NCO.__call__(freq: NDArray[float_] | None = None, phase: NDArray[float_] | None = None) NDArray[complex_]

Steps the NCO with variable frequency and/or phase signals.

Parameters:
freq: NDArray[float_] | None = None

The variable frequency signal f[n] in radians/sample. This input signal varies the per-sample phase increment of the NCO. If None, the signal is all zeros.

phase: NDArray[float_] | None = None

The variable phase signal p[n] in radians. This input signal varies the per-sample phase offset of the NCO. If None, the signal is all zeros.

Returns:

The output complex signal y[n].

Examples

See the Phase-locked loops example.