3.4. Library definitions
bcSetBinTime
Input Parameter
newtime = unsigned long time value to set (Unix format).
Returns
RC_OK On Success RC_ERROR On Failure
Description: Sets the major time buffer.
bcSetBCDTime
Prototype
int bcSetBCDTime (struct tm stm);
Packet
0x12
Input Parameter
stm = tm struct containing new time values to set.
Returns
RC_OK On Success
RC_ERROR On Failure
Description: Sets the major time buffer.
bcSetYear
Prototype
int bcSetYear (INT year);
Packet
0x13
Input Parameter
year = int value of new year (1990-2036).
Returns
RC_OK On Success
RC_ERROR On Failure
Description: Sets the current year value.
bcSetMode
Prototype
int bcSetMode (UCHAR mode);
Packet
0x10
Input Parameter
UCHAR mode: Sets the TFP operating mode.
Note: The following are defined in the "Bc637pci.h" header file; #define MODE _
IRIG 0x00
#define MODE _FREE 0x01 #define MODE_1pps 0x02 #define MODE _RTC
0x03 #define MODE _GPS 0x06
Returns
RC_OK On Success
RC_ERROR On Failure
Description: Sets the operating mode of the board.
bcCommand
Prototype
int bcCommand (INT command);
Packet
0x1A
Input Parameter
int command = requested command action
Note: The following are defined in the "Bc637pci.h" header file. #define CMD_
- 115 -
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com