Home > Back-end >  Who can help me have a look at this dynamic library functions use Delphi how do ah!
Who can help me have a look at this dynamic library functions use Delphi how do ah!

Time:10-05

Int __stdcall K101_CheckCardPosition (HANDLE ComHandle, bool bHasMac_Addr, BYTE Mac_Addr, BYTE CardStates [2], char * RecordInfo);
Function: read the location of the card in the machine
Parameters: [in] ComHandle already open handle to the serial port
[in] whether bHasMac_Addr communicates multiple versions (use refer to the front of the document "public interface function parameter specification")
[in] MacAddr machine address, effective value (0 to 15)
[out] CardStates [2] CardStates [0], said channel card position, the following specific meaning
=0 x30: channel without card
=0 x31: read magnetic card position have card
=0 x32: IC card location have card
=0 x33: front clip card position have card
=0 x34: front end don't clip card position have card
=0 x35: card is not in the standard (the standard location refers to the above five position
(0 x30 ~ 0 x34). When the card is not in standard position, can through the mobile card
Command the card to the standard mobile location)
CardStates [1], said hopper card state
=0 x30: hopper card
=0 x31: hopper card is insufficient, remind need yucca
=0 x32: hopper card enough
[out] RecrodInfo store which command communication records
Return value: right=0, wrong=0
  • Related