4. Linux SDK
bcSetDecTime
Prototype
BOOL bcSetDecTime (BC_PCI_HANDLE hBC_PCI, struct tm);
Packet
0x12
Input Parameter
BC_PCI_HANDLE hBC_PCI : Handle returned from 'bcStartPci' function
tm = tm struct containing new time values to set.
Returns
TRUE On Success
FALSE On Failure
Description: Set the major time buffer.
bcReqYear
Prototype
BOOL bcReqYear (BC_PCI_HANDLE hBC_PCI, PDWORD year);
Packet
0x19
Input Parameter
BC_PCI_HANDLE hBC_PCI : Handle returned from 'bcStartPci' function
year = pointer to unsigned long value of new year (1990-2036).
Returns
TRUE On Success
FALSE On Failure
Description: Request the current year value.
bcSetYear
Prototype
BOOL bcSetYear (BC_PCI_HANDLE hBC_PCI, DWORD year);
Packet
0x13
Input Parameter
BC_PCI_HANDLE hBC_PCI : Handle returned from 'bcStartPci' function
year = value of new year (1990-2036).
Returns
TRUE On Success
FALSE On Failure
Description: Set the current year value.
bcReadEventTime
Prototype
BOOL bcReadEventTime (BC_PCI_HANDLE hBC_PCI, PDWORD
maj, PDWORD min, PBYTE stat);
Packet
N/A
Input Parameter
BC_PCI_HANDLE hBC_PCI : Handle returned from 'bcStartPci' func-
tion
maj = pointer to unsigned long to store major time (Unix format).
min = pointer to unsigned long to store microseconds.
stat = unsigned char to store status bits.
Returns
TRUE On Success
FALSE On Failure
- 160 -
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com