3. Windows SDK
bcReadDecTime
Prototype
int bcReadDecTime (struct tm *ptm, ULONG *min, UCHAR
*stat);
Packet
N/A
Input Parameter
ptm = pointer to tm struct to store major time (calendar format).
min = pointer to unsigned long to store microseconds.
stat = pointer to unsigned char to store status bits.
Returns
RC_OK On Success
RC_ERROR On Failure
Description: Latches and returns time captured from the time registers.
Note:
The function use the shared critical section object to synchronize the two 32 bit major and minor reg-
ister reads.
bcReadDecTimeEx
Prototype
int bcReadDecTimeEx (struct tm *ptm, ULONG *min, USHORT *nano,
UCHAR *stat);
Packet
N/A
Input Parameter
ptm = pointer to tm struct to store major time (calendar format).
min = pointer to unsigned long to store microseconds.
nano = pointer to unsigned short to store 100 nano seconds count.
stat = pointer to unsigned char to store status bits.
Returns
RC_OK On Success
RC_ERROR On Failure
Description: Latches and returns time captured from the time registers.
Note: The function uses the shared critical section object to synchronize the two 32 bit major and
minor register reads.
ReadBinTimeNoSync
Prototype
int bcReadBinTimeNoSync (ULONG *major, ULONG *min, UCHAR *
stat);
Packet
N/A
- 112 -
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com