14 #ifndef __BRP_BALTECH_SDK_CMDS_VHL_H__ 15 #define __BRP_BALTECH_SDK_CMDS_VHL_H__ 16 #include "../typedefs.h" 28 #define BRP_VHL_ErrNoTag BRP_ERR_STATUS(0x0100, 0x01) 32 #define BRP_VHL_ErrCardNotSelected BRP_ERR_STATUS(0x0100, 0x02) 36 #define BRP_VHL_ErrHf BRP_ERR_STATUS(0x0100, 0x03) 40 #define BRP_VHL_ErrConfig BRP_ERR_STATUS(0x0100, 0x04) 44 #define BRP_VHL_ErrAuth BRP_ERR_STATUS(0x0100, 0x05) 48 #define BRP_VHL_ErrRead BRP_ERR_STATUS(0x0100, 0x06) 52 #define BRP_VHL_ErrWrite BRP_ERR_STATUS(0x0100, 0x07) 56 #define BRP_VHL_ConfcardRead BRP_ERR_STATUS(0x0100, 0x08) 57 #ifdef BALTECH_SDK_INTERNAL 61 #define BRP_VHL_ErrInvalidCardType BRP_ERR_STATUS(0x0100, 0x09) 62 #endif // BALTECH_SDK_INTERNAL 63 #ifdef BALTECH_SDK_INTERNAL 67 #define BRP_VHL_ErrNotSupported BRP_ERR_STATUS(0x0100, 0x0A) 68 #endif // BALTECH_SDK_INTERNAL 69 #ifdef BALTECH_SDK_INTERNAL 73 #define BRP_VHL_ErrFormat BRP_ERR_STATUS(0x0100, 0x0B) 74 #endif // BALTECH_SDK_INTERNAL 78 #define BRP_VHL_ErrHw BRP_ERR_STATUS(0x0100, 0x0C) 82 #define BRP_VHL_ErrApdu BRP_ERR_STATUS(0x0100, 0x0D) 123 #ifdef BRP_SUPPORT_LEGACY_METHODS 147 #ifdef BRP_SUPPORT_LEGACY_METHODS 173 #ifdef BRP_SUPPORT_LEGACY_METHODS 195 #ifdef BRP_SUPPORT_LEGACY_METHODS 211 #ifdef BRP_SUPPORT_LEGACY_METHODS 216 #ifdef BALTECH_SDK_INTERNAL 222 } brp_VHL_GetLegacyATR_t;
240 #ifdef BRP_SUPPORT_LEGACY_METHODS 243 brp_errcode brp_VHL_GetLegacyATR(brp_VHL_GetLegacyATR_t params);
245 #endif // BALTECH_SDK_INTERNAL 277 #ifdef BRP_SUPPORT_LEGACY_METHODS 369 #ifdef BRP_SUPPORT_LEGACY_METHODS 370 brp_errcode brp_VHL_Setup(
brp_protocol protocol,
brp_CardType ConsideredCardType,
brp_VHL_Setup_HasMifareKey HasMifareKey,
brp_buf MifareKey,
brp_VHL_Setup_MifareHasAsKeyA MifareHasAsKeyA,
bool MifareAsKeyA,
brp_VHL_Setup_MifareHasMadId MifareHasMadId,
unsigned MifareMadId,
brp_VHL_Setup_DesfireHasAppId DesfireHasAppId,
unsigned DesfireAppId,
brp_VHL_Setup_HasDesfireFileDesc HasDesfireFileDesc,
brp_DesfireFileDescription DesfireFileDesc,
brp_buf DesfireKey,
size_t DesfireKey_len,
brp_buf LegicSegmentInfo,
size_t LegicSegmentInfo_len,
brp_VHL_Setup_LegicHasEnStamp LegicHasEnStamp,
bool LegicEnStamp,
brp_VHL_Setup_LegicHasAdrMode LegicHasAdrMode,
brp_VHL_Setup_LegicAdrMode LegicAdrMode,
brp_VHL_Setup_Iso15HasFirstBlock Iso15HasFirstBlock,
unsigned Iso15FirstBlock,
brp_VHL_Setup_Iso15HasBlockCount Iso15HasBlockCount,
unsigned Iso15BlockCount,
brp_VHL_Setup_Iso15HasOptionFlag Iso15HasOptionFlag,
brp_VHL_Setup_Iso15OptionFlag Iso15OptionFlag,
brp_VHL_Setup_Iso15HasBlockSize Iso15HasBlockSize,
unsigned Iso15BlockSize,
unsigned Iso14SelectFileCmdListLen,
brp_VHL_Setup_Iso14SelectFileCmdList_Entry* Iso14SelectFileCmdList,
size_t Iso14SelectFileCmdList_len,
brp_VHL_Setup_Iso14HasFileLen Iso14HasFileLen,
unsigned Iso14FileLen,
brp_VHL_Setup_Iso14HasApduTimeout Iso14HasApduTimeout,
unsigned Iso14ApduTimeout);
374 #ifdef BALTECH_SDK_INTERNAL 380 } brp_VHL_SetupMifare_t;
396 #ifdef BRP_SUPPORT_LEGACY_METHODS 399 brp_errcode brp_VHL_SetupMifare(brp_VHL_SetupMifare_t params);
401 #endif // BALTECH_SDK_INTERNAL 402 #ifdef BALTECH_SDK_INTERNAL 409 } brp_VHL_SetupLegic_t;
428 #ifdef BRP_SUPPORT_LEGACY_METHODS 431 brp_errcode brp_VHL_SetupLegic(brp_VHL_SetupLegic_t params);
433 #endif // BALTECH_SDK_INTERNAL 434 #ifdef BALTECH_SDK_INTERNAL 440 } brp_VHL_SetupISO15_t;
456 #ifdef BRP_SUPPORT_LEGACY_METHODS 457 brp_errcode brp_VHL_SetupISO15(
brp_protocol protocol,
unsigned FirstBlock,
unsigned BlockCount,
bool OptionFlag);
459 brp_errcode brp_VHL_SetupISO15(brp_VHL_SetupISO15_t params);
461 #endif // BALTECH_SDK_INTERNAL 475 #ifdef BRP_SUPPORT_LEGACY_METHODS 522 #ifdef BRP_SUPPORT_LEGACY_METHODS 550 #ifdef BRP_SUPPORT_LEGACY_METHODS 570 #ifdef BRP_SUPPORT_LEGACY_METHODS 575 #ifdef BALTECH_SDK_INTERNAL 589 #ifdef BRP_SUPPORT_LEGACY_METHODS 592 brp_errcode brp_VHL_Format(brp_VHL_Format_t params);
594 #endif // BALTECH_SDK_INTERNAL 619 #ifdef BRP_SUPPORT_LEGACY_METHODS 637 #ifdef BRP_SUPPORT_LEGACY_METHODS
brp_VHL_Setup_Iso15HasBlockSize Iso15HasBlockSize
brp_VHL_Setup_HasMifareKey HasMifareKey
unsigned Iso14ApduTimeout
brp_VHL_Setup_MifareHasAsKeyA MifareHasAsKeyA
brp_VHL_Setup_MifareHasMadId
unsigned Iso14SelectFileCmdListLen
brp_errcode brp_VHL_CheckReconfigErr(brp_VHL_CheckReconfigErr_t params)
This command returns the status of the last reconfiguration with a ConfigCard using the brp_VHL_Selec...
brp_errcode brp_VHL_Read(brp_VHL_Read_t params)
This command reads data from a card based on a VHL file.
brp_VHL_Setup_Iso15HasBlockSize
size_t Iso14SelectFileCmdList_len
brp_DesfireFileDescription DesfireFileDesc
brp_VHL_Setup_LegicHasEnStamp LegicHasEnStamp
brp_VHL_Setup_HasDesfireFileDesc HasDesfireFileDesc
brp_errcode brp_VHL_ResolveFilename(brp_VHL_ResolveFilename_t params)
This command returns the ID of a VHL file based on its filename.
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
size_t LegicSegmentInfo_len
brp_errcode brp_VHL_Write(brp_VHL_Write_t params)
This command writes data to a card based on a VHL file.
brp_VHL_Setup_LegicAdrMode
Specifies the addressing mode.
brp_VHL_Setup_HasMifareKey
brp_VHL_Setup_Iso15HasBlockCount Iso15HasBlockCount
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
brp_VHL_Setup_Iso14HasApduTimeout
brp_CardFamilies CardFamiliesFilter
brp_CardType ConsideredCardType
brp_VHL_Setup_Iso15HasFirstBlock
brp_VHL_Setup_LegicAdrMode LegicAdrMode
brp_VHL_Setup_LegicHasEnStamp
struct brp_mempool_object_t * brp_mempool
mempool handle.
brp_errcode brp_VHL_GetFileInfo(brp_VHL_GetFileInfo_t params)
This command returns the available size of the VHL-file whose ID is specified by the ID parameter...
brp_errcode brp_VHL_GetCardType(brp_VHL_GetCardType_t params)
This command returns the card type of the currently selected card.
brp_VHL_Setup_Iso14HasApduTimeout Iso14HasApduTimeout
brp_VHL_Setup_LegicHasAdrMode
brp_errcode brp_VHL_Setup(brp_VHL_Setup_t params)
This command creates a VHL file dynamically and transfers it to the reader's RAM. ...
brp_VHL_Setup_HasDesfireFileDesc
brp_VHL_Setup_Iso14HasFileLen Iso14HasFileLen
brp_errcode brp_VHL_IsSelected(brp_VHL_IsSelected_t params)
This command checks if the card/label selected by the last execution of the brp_VHL_Select() command ...
brp_VHL_Setup_Iso15HasBlockCount
brp_CardType AssumedCardType
brp_errcode brp_VHL_Select(brp_VHL_Select_t params)
This command selects a card or tag in the antenna field for further operations.
brp_errcode brp_VHL_GetSnr(brp_VHL_GetSnr_t params)
This command returns the serial number (UID) of the currently selected card.
brp_VHL_Setup_Iso15OptionFlag
Option flag value for read/write operations.
brp_VHL_Setup_Iso15HasOptionFlag
brp_VHL_Setup_Iso15HasOptionFlag Iso15HasOptionFlag
brp_errcode brp_VHL_GetATR(brp_VHL_GetATR_t params)
This command returns the Answer to Reset (ATR) of the currently selected card as defined in the PC/SC...
brp_VHL_Setup_Iso14HasFileLen
brp_VHL_Setup_DesfireHasAppId DesfireHasAppId
brp_VHL_Setup_DesfireHasAppId
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
brp_errcode brp_VHL_ExchangeLongAPDU(brp_VHL_ExchangeLongAPDU_t params)
This command sends basic Inter-Industry commands to the currently selected card in accordance with th...
brp_VHL_Setup_Iso14SelectFileCmdList_Entry * Iso14SelectFileCmdList
brp_CardType AssumedCardType
brp_VHL_Setup_MifareHasMadId MifareHasMadId
brp_CardType * SelectedCardType
brp_VHL_Setup_LegicHasAdrMode LegicHasAdrMode
brp_VHL_Setup_Iso15OptionFlag Iso15OptionFlag
brp_VHL_Setup_MifareHasAsKeyA
brp_errcode brp_VHL_ExchangeAPDU(brp_VHL_ExchangeAPDU_t params)
This command sends APDUs to the currently selected card.
brp_VHL_Setup_Iso15HasFirstBlock Iso15HasFirstBlock
brp_CardType * SelectedCardType