Detecting Clock Master

Development tools setup and usage

Detecting Clock Master

Postby godfrey » Thu Mar 04, 2010 11:06 am

With the tcatdice.exe program, when multiple devices are connected to the firewire bus, it is possible from the combo box to select which device is the clock master. (There is a little picture of a clock to indicate that.)

My question is, is there any way I can detect in the device firmware whether the dice chip has been selected?
godfrey
 
Posts: 7
Joined: Mon Oct 26, 2009 10:21 am

Re: Detecting Clock Master

Postby brian » Thu Mar 04, 2010 12:05 pm

You can use dalClockCtrlGetSyncSrcInfo() to find the current clock source setting.

You can track the setting in your myDiceDriverCallBack() function, which is in myApp.c in the default firmware.
The function is called whenever there is a clock source change from a Host.
In there, you can look for the eDDR_MSG_CLOCK_CHG message, and pData->source will contain the new source.
If the source is eDAL_CLK_SRC_AVS_SYTn, then it is slaving to incoming timestamps and is therefore not the master.
If it is any other then it is clock master.
brian
Site Admin
 
Posts: 58
Joined: Wed Feb 06, 2008 7:04 pm


Return to Firmware

Who is online

Users browsing this forum: No registered users

cron