5.4. Example Program
Registers
pci_out_freq
Description
Sets the frequency output 1, 5, 10 MHz
Example
ioctl (fd, SELFREQUENCYOUT, FREQ_10MHZ);
Command 0x15, 0x16
pci_time_code
Description
Sets the time code input format and modulation
Example
ioctl (fd, SELTCFORMAT, TC_IRIGB);
ioctl (fd, SELTCMOD, MOD_AM);
Command 0x17
pci_set_prop_delay
Description
Set the time code propagation delay
Example
ioctl (fd, SETTIMINGOFFSET, prop_delay);
Command 0x19
pci_req_time_settings
Description
Request time settings
Example
/* Get Timing Mode */
get.arg = GETDATA_MODE;
if ( !((ioctl (fd, GETDATA, &get)) < 0) )
mode = (int)get.data.tmode;
Command 0x19
pci_req_clock_settings
Description
Requests clock settings
Example
/* Get Clock Source */
get.arg = GETDATA_CLKSRC;
if ( !((ioctl (fd, GETDATA, &get)) < 0) )
clk_scr = (u_char)get.data.clksrc;
Command 0x19
pci_req_offsets_settings
Description
Requests offsets settings
Example
/* Get Local Time Offset */
get.arg = GETDATA_LOCTMOFF;
if ( !((ioctl (fd, GETDATA, &get)) < 0) )
{
- 211 -
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com