Commit 55bbb65b authored by Jean-Claude BAU's avatar Jean-Claude BAU Committed by Adam Wujek

Add asymmetryCorrectionPortDS.enable

parent f35600f9
......@@ -276,6 +276,7 @@ int main(int argc, char **argv)
ppi->timestampCorrectionPortDS.egressLatency=picos_to_interval(ppi->cfg.egressLatency_ps);
ppi->timestampCorrectionPortDS.ingressLatency=picos_to_interval(ppi->cfg.ingressLatency_ps);
ppi->timestampCorrectionPortDS.messageTimestampPointLatency=0;
ppi->asymmetryCorrectionPortDS.enable=TRUE;
ppi->asymmetryCorrectionPortDS.constantAsymmetry=picos_to_interval(ppi->cfg.constantAsymmetry_ps);
ppi->asymmetryCorrectionPortDS.scaledDelayCoefficient=
(RelativeDifference)(ppi->cfg.delayCoefficient * (double)pow(2.0, REL_DIFF_FRACBITS_AS_FLOAT));
......
......@@ -330,6 +330,7 @@ typedef struct { /*draft P1588_v_29: page 128*/
typedef struct { /*draft P1588_v_29: page129*/
TimeInterval constantAsymmetry;
RelativeDifference scaledDelayCoefficient;
Boolean enable;
} asymmetryCorrectionPortDS_t;
typedef struct {/*draft P1588_v_29: Clause 17.6.3 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment