Camera Link PCI Express (PCIe) Gen1 Framegrabbers
Appendix C: Timestamping
EDT, Inc.
2012 March 16
35
To clear the error flags
had_irig_error
and
had_pps_error
( “sticky” bits, indicating respective errors
in the IRIG transfer or the 1 pps signal):
void pdv_irig_reset_errors(PdvDev *pdv)
To set the board in slave mode to use 1 pps or IRIG-B values received from another EDT board, rather than
from the Lemo connector (note – this function requires a special cable from EDT):
void pdv_irig_set_slave(PdvDev *pdv_p, int onoff)
To use the direct register access to the current time value to fill in an Irig2Record structure (with the valid
elements being counts, tickspps, status, and the IRIG seconds / bcd values):
void pdv_irig_get_current(PdvDev *pdv_p, Irig2Record *footer)
irigdump.c
The EDT PDV driver also contains a simple example program named
irigdump.c.
This program, based
on
simple_take.c,
exercises most of the functions described above.
To display the command line arguments, run
irigdump -help.