extern "C"
{
//********************** commual subroutine ***********************
HANDLE __stdcall ic_init(__int16 port,unsigned long baud);
HANDLE __stdcall auto_init(__int16 port,unsigned long baud);
__int16 __stdcall ic_exit(HANDLE icdev);
__int16 __stdcall srd_ver(HANDLE icdev, __int16 len,
unsigned char *data_buffer);
__int16 __stdcall set_baud(HANDLE icdev, unsigned long baud);
__int16 __stdcall cmp_dvsc(HANDLE icdev, __int16 len,
unsigned char *dta_buffer);
__int16 __stdcall srd_dvsc(HANDLE icdev, __int16 len,
unsigned char *data_buffer);
__int16 __stdcall swr_dvsc(HANDLE icdev, __int16 len,
unsigned char *data_buffer);
__int16 __stdcall setsc_md(HANDLE icdev, __int16 mode);
__int16 __stdcall turn_on(HANDLE icdev);
__int16 __stdcall turn_off(HANDLE icdev);
__int16 __stdcall auto_pull(HANDLE icdev);
__int16 __stdcall get_status(HANDLE icdev,__int16 *state);
//hwj
__int16 __stdcall get_status_DPEx(HANDLE icdev,unsigned char CardType,__int16 *state);
__int16 __stdcall dv_beep(HANDLE icdev, __int16 time);
__int16 __stdcall swr_eeprom(HANDLE icdev, __int16 offset,__int16 len,
unsigned char *data_buffer);
__int16 __stdcall srd_eeprom(HANDLE icdev, __int16 offset,__int16 len,
unsigned char *data_buffer);
__int16 __stdcall srd_snr(HANDLE icdev, __int16 len,
unsigned char *data_buffer);
__int16 __stdcall val_read(HANDLE icdev,unsigned long *p_Value);
__int16 __stdcall val_inc(HANDLE icdev, unsigned long _Value);
__int16 __stdcall val_dec(HANDLE icdev, unsigned long _Value);
__int16 __stdcall val_set(HANDLE icdev, unsigned long _Value);
__int32 __stdcall chk_baud(__int16 port);
__int16 __stdcall chk_card(HANDLE icdev);
__int16 __stdcall ic_encrypt( char *key,char *ptrSource, unsigned short msgLen, char *ptrDest);
__int16 __stdcall ic_decrypt( char *key,char *ptrSource, unsigned short msgLen, char *ptrDest);
unsigned long __stdcall DES_Encrypt( unsigned char *Key,__int16 KeyLen,
unsigned char *Source, unsigned long SrcLen,
unsigned char *result);
unsigned long __stdcall DES_Decrypt( unsigned char *Key,__int16 KeyLen,
unsigned char *Source, unsigned long SrcLen,
unsigned char *result);
__int16 __stdcall lib_ver(char *VerStr);
__int16 __stdcall asc_hex(unsigned char *asc, unsigned char *hex, long pair_len);
__int16 __stdcall hex_asc(unsigned char *hex,unsigned char *asc,long length);
__int16 __stdcall asc_asc(unsigned char *src,unsigned char *des,long len);
__int16 __stdcall float_uchar(float f,unsigned char *c);
__int16 __stdcall uchar_float(unsigned char *c,float *f);
__int16 __stdcall short_uchar(short i,unsigned char *c);
__int16 __stdcall uchar_short(unsigned char *c,short *i);
__int16 __stdcall long_uchar(long l,unsigned char *c);
__int16 __stdcall uchar_long(unsigned char *c,long *l);
//********************** operate sle 4404 **************************
__int16 __stdcall srd_4404(HANDLE icdev,__int16 offset,__int16 len,unsigned char *data_buffer);
__int16 __stdcall swr_4404(HANDLE icdev,__int16 offset,__int16 len,unsigned char *data_buffer);
__int16 __stdcall csc_4404(HANDLE icdev,__int16 len,unsigned char *data_buffer);
__int16 __stdcall wsc_4404(HANDLE icdev,__int16 len,unsigned char *data_buffer);
__int16 __stdcall rsc_4404(HANDLE icdev,__int16 len,unsigned char *data_buffer);
__int16 __stdcall rsct_4404(HANDLE icdev,__int16 *counter);
__int16 __stdcall cesc_4404(HANDLE icdev,__int16 len,unsigned char *data_buffer);
__int16 __stdcall wesc_4404(HANDLE icdev,__int16 len,unsigned char *data_buffer);
__int16 __stdcall resc_4404(HANDLE icdev,__int16 len,unsigned char *data_buffer);
__int16 __stdcall resct_4404(HANDLE icdev,__int16 *counter);
__int16 __stdcall ser_4404(HANDLE icdev,__int16 offset,__int16 len);
__int16 __stdcall fakefus_4404(HANDLE icdev,__int16 mode);
__int16 __stdcall clrpr_4404(HANDLE icdev);
__int16 __stdcall clrrd_4404(HANDLE icdev);
__int16 __stdcall psnl_4404(HANDLE icdev);
__int16 __stdcall chk_4404(HANDLE icdev);
//*********************** operate sle 4406 *************************
__int16 __stdcall srd_4406(HANDLE icdev,__int16 offset,__int16 len,unsigned char *data_buffer);
__int16 __stdcall swr_4406(HANDLE icdev,__int16 offset,__int16 len,unsigned char *data_buffer);
__int16 __stdcall csc_4406(HANDLE icdev,__int16 len,unsigned char *data_buffer);
__int16 __stdcall wsc_4406(HANDLE icdev,__int16 len,unsigned char *data_buffer);
__int16 __stdcall rsc_4406(HANDLE icdev,__int16 len,unsigned char *data_buffer);
__int16 __stdcall rsct_4406(HANDLE icdev,__int16 *Counter);
__int16 __stdcall eswc_4406(HANDLE icdev,__int16 offset);
__int16 __stdcall psnl_4406(HANDLE icdev);
__int16 __stdcall chk_4406(HANDLE icdev);
//*********************** operate at88sc102 ************************
__int16 __stdcall srd_102(HANDLE icdev,__int16 zone,__int16 offset,__int16 len,unsigned char *data_buffer);
__int16 __stdcall swr_102(HANDLE icdev,__int16 zone,__int16 offset,__int16 len,unsigned char *data_buffer);
__int16 __stdcall ser_102(HANDLE icdev,__int16 zone,__int16 offset,__int16 len);
__int16 __stdcall csc_102(HANDLE icdev,__int16 len,unsigned char *data_buffer);
__int16 __stdcall rsc_102(HANDLE icdev,__int16 len,unsigned char *data_buffer);
__int16 __stdcall wsc_102(HANDLE icdev,__int16 len,unsigned char *data_buffer);
__int16 __stdcall rsct_102(HANDLE icdev,__int16 *counter);
__int16 __stdcall cesc_102(HANDLE icdev,__int16 zone,__int16 len,unsigned char *data_buffer);
__int16 __stdcall resc_102(HANDLE icdev,__int16 zone,__int16 len,unsigned char *data_buffer);
__int16 __stdcall wesc_102(HANDLE icdev,__int16 zone,__int16 len,unsigned char *data_buffer);
__int16 __stdcall resct_102(HANDLE icdev,__int16 zone,__int16 *counter);
__int16 __stdcall clrpr_102(HANDLE icdev,__int16 zone);
__int16 __stdcall clrrd_102(HANDLE icdev,__int16 zone);
__int16 __stdcall fakefus_102(HANDLE icdev,__int16 mode);
__int16 __stdcall psnl_102(HANDLE icdev);
__int16 __stdcall chk_102(HANDLE icdev);
//********************* operate at88sc1604 **************************
__int16 __stdcall srd_1604(HANDLE icdev,__int16 zone,__int16 offset,__int16 len,unsigned char *data_buffer);
__int16 __stdcall swr_1604(HANDLE icdev,__int16 zone,__int16 offset,__int16 len,unsigned char *data_buffer);
__int16 __stdcall ser_1604(HANDLE icdev,__int16 zone,__int16 offset,__int16 len);
__int16 __stdcall csc_1604(HANDLE icdev,__int16 zone,__int16 len,unsigned char *data_buffer);
__int16 __stdcall rsc_1604(HANDLE icdev,__int16 zone,__int16 len,unsigned char *data_buffer);
__int16 __stdcall wsc_1604(HANDLE icdev,__int16 zone,__int16 len,unsigned char *data_buffer);
__int16 __stdcall rsct_1604(HANDLE icdev,__int16 zone,__int16 *counter);
__int16 __stdcall cesc_1604(HANDLE icdev,__int16 zone,__int16 len,unsigned char *data_buffer);
__int16 __stdcall resc_1604(HANDLE icdev,__int16 zone,__int16 len,unsigned char *data_buffer);
__int16 __stdcall wesc_1604(HANDLE icdev,__int16 zone,__int16 len,unsigned char *data_buffer);
__int16 __stdcall resct_1604(HANDLE icdev,__int16 zone,__int16 *counter);
__int16 __stdcall clrpr_1604(HANDLE icdev,__int16 zone);
__int16 __stdcall clrrd_1604(HANDLE icdev,__int16 zone);
__int16 __stdcall fakefus_1604(HANDLE icdev,__int16 mode);
__int16 __stdcall psnl_1604(HANDLE icdev);
__int16 __stdcall chk_1604(HANDLE icdev);
//********************* operate at88sc1604b **************************
__int16 __stdcall srd_1604b(HANDLE icdev,__int16 zone,__int16 offset,__int16 len,unsigned char *data_buffer);
__int16 __stdcall swr_1604b(HANDLE icdev,__int16 zone,__int16 offset,__int16 len,unsigned char *data_buffer);
__int16 __stdcall ser_1604b(HANDLE icdev,__int16 zone,__int16 offset,__int16 len);
__int16 __stdcall csc_1604b(HANDLE icdev,__int16 zone,__int16 len,unsigned char *data_buffer);
__int16 __stdcall rsc_160
评论7
最新资源