There is something I need to understand in the ptp4l implementation in order to implement my custom clock driver correctly.
Regards clockajd::clockadj_set_freq(... double freq); What does the 'freq' parameter above represent? Does the freq parameter above represent the requested ppb, or the request frequency shift in Hz? Basically I have custom interface in my driver called: shiftCurrentFrequency (freqShiftInHz); That I need to convert the freq (above) to actual frequency shift In Hz. What I am doing now is: __s64 freqShiftInHz = (long long int) (currentFreq * freq) / kPpb; for example, if the requested ppb is 250123, then: freqShiftInHz = (long long int) (100MHz * 2500) / 1000000000; freqShiftInHz = 250 Hz Thank you Bassam
------------------------------------------------------------------------------
_______________________________________________ Linuxptp-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxptp-devel
