Synchronizable timecode generator with compact pci bus interface (46 pages)
Summary of Contents for Spectracom TSAT-PCI
Page 1
TPRO/TSAT-PCI SYNCHRONIZABLE TIMECODE GENERATOR with UNIVERSAL PCI BUS INTERFACE Windows Driver Application Programmer’s Guide 95 Methodist Hill Drive Rochester, NY 14623 Phone: US +1.585.321.5800 Fax: US +1.585.321.5219 www.spectracomcorp.com Part Number 1186-5002-0050 Manual Revision C December 2010...
Page 3
Spectracom’s judgment the defective condition in a Spectracom Spectracom be liable for any direct, indirect, special or product is for a cause listed above for which Spectracom is not consequential damages whether the claims are grounded in responsible, Spectracom will make the repairs or replacement of contract, tort (including negligence), or strict liability.
Spectracom Corporation TPRO-PCI-U/TSAT-PCI-U — Windows Driver Table of Contents ....................OVERVIEW ................INSTALLING THE DRIVER Running the TPRO/TSAT Control Utility ..................2-2 Clock Daemon Utilities........................2-2 Example Executables and Source Code ..................2-4 INTERFACE TO THE WINDOWS API ..............Header File ............................ 3-1 TPRO API —...
A Control Utility that can be used to retrieve data from the card and/or modify card settings • A Time Daemon tray Utility and Time Daemon service that query the TPRO/TSAT-PCI card and sets the computer’s system clock at a user-defined interval Synchronizable Timecode Generator Application Programmer’s Guide...
To install the driver, perform the following steps: 1. Install the TPRO/TSAT-PCI card in a vacant slot on the computer to be used. 2. Switch on the PC power. Once the PC is running, Windows may prompt you to install the newly found hardware.
A small icon — — will show up in the system tray. Double click on that icon to display a window. A shortcut can also be found in the “Start/Spectracom Corp/PCI” Windows Start menu. Synchronizable Timecode Generator Application Programmer’s Guide...
Page 11
Daemon.exe”, but it will run as a Windows service. It will run automatically at boot-up and does not need to be added to the user’s Startup folder. The program can be found in the folder C:\Program Files\KSI\control and a shortcut can be found in the “Start/Spectracom Corp/PCI” Windows Start menu.
TPRO-PCI-U/TSAT-PCI-U — Windows Driver Spectracom Corporation 2.3 Example Executables and Source Code The driver package includes folders with example programs to interface to the board. The source code and make files for the example programs are included. All of the example programs were compiled using Visual Studio 2005.
** Purpose: Contains structures and definions used to interface with the TPRO-PCI or TSAT-PCI API. Applications that access the API should include this header. ** Copyright(C) 2007 Spectracom Corporation. All Rights Reserved ****************************************************************** ** Modifications: 08/08/2007 Multi-user enablement ******************************************************************/ #ifndef _defined_TPRO_...
Page 14
TPRO-PCI-U/TSAT-PCI-U — Windows Driver Spectracom Corporation ** Length of firmware rev string #define TPRO_FIRMWARE_LENGTH ( 4 ) ** Length of driver version string "XX.YY" ** (not including termination) #define TPRO_DRV_VERSION_LENGTH ( 5 ) Match constants #define MATCH_TIME_START // start time...
Spectracom Corporation TPRO-PCI-U/TSAT-PCI-U — Windows Driver 3.2 TPRO API — Routine Descriptions The TPRO-PCI driver permits overlapping use of the TPRO-waitXXX routines and other device access routines. NOTE: Simultaneous access to the device requires multiple open device handles. (If an application requires access to the device driver from two different threads, each thread must have its own device handle.)
Page 20
TPRO-PCI-U/TSAT-PCI-U — Windows Driver Spectracom Corporation 3.2.1.1.4 TPRO_getDate unsigned char TPRO_getDate (TPRO_BoardObj *hnd, TPRO_DateObj *Datep); This routine retrieves the current date from the TPRO/TSAT board. The date is in Gregorian Format. Arguments: Pointer to TPRO_BoardObj Pointer to TPRO_DateObj Returns: TPRO_INVALID_BOARD_TYPE_ERR – invalid board type for function...
Page 21
Spectracom Corporation TPRO-PCI-U/TSAT-PCI-U — Windows Driver 3.2.1.1.7 TPRO_getSatInfo unsigned char TPRO_getSatInfo(TPRO_BoardObj *hnd, TPRO_SatObj *Satp); This routine retrieves the number of satellites tracked from the TSAT device. Arguments: Pointer to the TPRO_BoardObj Pointer to the TPRO_SatObj Returns: TPRO_INVALID_BOARD_TYPE_ERR – invalid board type for function...
Page 22
TPRO-PCI-U/TSAT-PCI-U — Windows Driver Spectracom Corporation 3.2.1.1.11 TPRO_setHeartbeat unsigned char TPRO_setHeartbeat(TPRO_BoardObj *hnd, TPRO_HeartObj *Heartp); This routine controls the hearbeat output. The heartbeat output may be a square wave or pulse at various frequencies. Arguments: Pointer to the TPRO_BoardObj Pointer to the TPRO_HeartObj Returns: TPRO_FREQ_ERR –...
Page 23
Spectracom Corporation TPRO-PCI-U/TSAT-PCI-U — Windows Driver 3.2.1.1.14 TPRO_setTime unsigned char TPRO_setTime(TPRO_BoardObj *hnd, TPRO_TimeObj *Timep); This routine sets the time on the on-board clock of the TPRO/TSAT device. If the board is synchronized to a GPS antenna this value will not be accepted.
Page 24
TPRO-PCI-U/TSAT-PCI-U — Windows Driver Spectracom Corporation 3.2.1.1.17 TPRO_synchControl unsigned char TPRO_synchControl(TPRO_BoardObj *hnd, unsigned char *enbp); This routine commands the TPRO/TSAT device to synchronize to input or freewheel. This distinction is made using the enable argument. If the enable argument is (0) the clock will freewheel, otherwise it will synchronize to input.
Page 25
Spectracom Corporation TPRO-PCI-U/TSAT-PCI-U — Windows Driver 3.2.1.1.20 TPRO_waitHeartbeat unsigned char TPRO_waitHeartbeat(TPRO_BoardObj *hnd, unsigned int *ticks); This routine will reports the condition of the heartbeat output. The routine will block for a given number of ticks (in milliseconds) until a heartbeat occurs or the timeout period has been reached.
Page 27
Spectracom Corporation TPRO-PCI-U/TSAT-PCI-U — Windows Driver Document Revision History Description Date 2325 First draft of Spectracom documentation for this product. Minor corrections. 2332 2552 Added 32/64-bit Lib/DLL comments. Added Windows 7 support December 2010 comment. Other minor corrections. Synchronizable Timecode Generator Application Programmer’s Guide...
Page 28
Spectracom Corporation 95 Methodist Hill Drive Rochester, NY 14623 www.spectracomcorp.com Phone: US +1.585.321.5800 Fax: US +1.585.321.5219...
Need help?
Do you have a question about the TSAT-PCI and is the answer not in the manual?
Questions and answers