In reply to moshiko:
What do you mean by “the middle of the clock”—the opposite clock edge? or some other clock? It has to be synchronized to something that comes before you send your first packet. You will have to trace back the code that comes before it.