clock_rec_init

Creation of a clock recovery object.

Calling sequence

cr = clock_rec_init(osf)
cr = clock_rec_init(osf,ted,itrp,tc)

Parameters

osf:

Input signal oversampling factor (e.g. ratio of input signal frequency vs symbol frequency)

ted:

Timing error detector object (default is Gardner detector). A ted can be created with the ted_init function.

itrp:

Interpolator object (default is cardinal cubic spline interpolator). A interpolator can be created with the itrp_init function.

tc:

Time constant of the loop, in symbols (default is 5 symbols)

cr:

Resulting clock recovery object

Description

This function will create a clock recovery object, that can be used afterwards to resynchronize and resample an incoming NRZ stream with implicit clock.

Optionnaly, the user can choose a specific Timing Error Detector (default is Gardner), and a specific interpolator (default is cardinal cubic spline).

Example

// Create a clock recovery object for an oversampling ratio of 8
cr = clock_rec_init(8);