//  [7/28/2009 ThinkPad]
#ifndef __Te5x7READER__
#define __Te5x7READER__


//return successful result
#define  LIB_SUCCESS      0  
//return failed result
#define  LIB_FAILED       1

#define  MAX_RF_BUFFER    1024
#pragma once
/*
Open the PC of connected to the specified device
_port:the device of port
_band:Baud rate of equipment
*/
int (WINAPI* rf_init_com)(int _port,long _baud);

/* Close the specified device
  Parameters None                                                                   */
int (WINAPI* rf_ClosePort)();

/* Equipment buzzer  
icdev:device ID
msec:Sound duration
*/

int (WINAPI* rf_beep)(unsigned short icdev, unsigned char msec);
/*The color of light control equipment          
color£º[IN] 0 £½ turn off
1 £½ Red
2 £½ green
3 £½ yellow
*/
int(WINAPI* rf_light)(unsigned short icdev, unsigned char color);
/*
Standards prepared to write card operations
opcode:operations code
lock: is lock
Data:The data to be written
block: block 
*/
int (WINAPI*  Standard_Write)(unsigned  char opcode ,unsigned char lock ,
							  unsigned char * Data ,unsigned char block );
/*
Read Card Operation
length:Back to read the data length
data:Return to the data read
*/
int (WINAPI*  T55x7_Read)(unsigned char * length , unsigned char * Data );
#endif