Michael Smith wrote:
> Jan I think what I can gather from the example that this should be
> enough to get things done. I'm just not clear on what the
> "rtmac_waitinfo" structure returns, what does the three return
> variables do nl. cycle_no, cycle_start, clock_offset? From what
> reference point are these values calculated? I assume it might be from
> the start of each frame, but I'm not sure.

Yeah, yeah, documentation. :)

 - cycle_no:     Continuous counter for the sync frames the master
                 issued (it's guaranteed to not jump even on backup
                 master overtake)
 - cycle_start:  Calculated start time of the current cycle based on the
                 local clock
 - cycle_offset: Offset between local and master clock for this cycle
                 (local + offset = master)

Note that the current implementation of the cycle_offset does guarantee
a strictly monotonic global clock, but the jitter is in orders of the
IRQ latency for the particular platform (a few 10 us).

HTH,
Jan

Attachment: signature.asc
Description: OpenPGP digital signature

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
RTnet-users mailing list
RTnet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rtnet-users

Reply via email to