4. Linux SDK
bcSetYearAutoIncFlag
Prototype
BOOL bcSetYearAutoIncFlag (BC_PCI_HANDLE hBC_
PCI, BYTE yrinc);
Packet
0x42
BC_PCI_HANDLE hBC_PCI : Handle returned from
'bcStartPci' function
yrinc = unsigned char value for enabling/disabling year auto-
increment flag.
The allowed values are defined in the 'bcuser.h' file:
enum { YEAR_AUTO_ENA
= 0x01 };
enum { YEAR_AUTO_DIS
= 0x00 };
Returns
TRUE On Success
FALSE On Failure
Description: Sets the year auto increment flag. Note: this function is no longer applicable. The year
is always auto incremented in the V2 hardware. Please refer to the Chapter 1 for details.
bcAdjustClock
Prototype
BOOL bcAdjustClock (BC_PCI_HANDLE hBC_PCI, long cval);
Packet
0x29
Input Parameter
BC_PCI_HANDLE hBC_PCI : Handle returned from 'bcStartPci' function
cval = long value for adjusting the clock
Returns
TRUE On Success
FALSE On Failure
Description: Advance/Retard clock value.
bcCommand
Prototype
void bcCommand (BC_PCI_HANDLE hBC_PCI, BYTE cmd);
Packet
0x1A
Input Parameter
BC_PCI_HANDLE hBC_PCI : Handle returned from 'bcStartPci' function
cmd = unsigned char value for software reset.
The allowed value is defined in the 'bcuser.h' file:
enum { CMD_WARMSTART = 0x01 };
Returns
None
Description: Software reset.
bcForceJam
Prototype
BOOL bcForceJam (BC_PCI_HANDLE hBC_PCI);
Packet
0x22
- 168 -
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com