Leonardo Pappagallo wrote: > hi Jan, > I need to synchronizate my user application with real transmission time of > packets on the channel. > I have seen that there is a parameter called RTMAC_WAIT_ON_XMIT, but it > seems that it isn't implemented yet. > I would like to use this function both master and slave machines. > > how could I do this? >
Take a look at the tdma module. There is already a rtdm_event_t being used to signal the beginning of a cycle (i.e. the reception of a sync frame). You may add another rtdm_event_t to the tdma discipline structure, signal the event after transmitting a frame in some slot, and extend tdma_dev.c appropriately so that RTMAC_WAIT_ON_XMIT lets the caller block on this new event. Patches are welcome! And if you don't understand any details of the existing code, feel free to ask. Jan
signature.asc
Description: OpenPGP digital signature