10 #ifndef __BRP_BALTECH_API_CMDS_LT_H__    11 #define __BRP_BALTECH_API_CMDS_LT_H__    12 #include "../typedefs.h"    16 #define BRP_LT_ErrLtNoTag BRP_ERR_STATUS(0xA000, 0x01)    20 #define BRP_LT_ErrLtCrc BRP_ERR_STATUS(0xA000, 0x02)    24 #define BRP_LT_ErrLtParity BRP_ERR_STATUS(0xA000, 0x05)    28 #define BRP_LT_LtNackReceived BRP_ERR_STATUS(0xA000, 0x06)    32 #define BRP_LT_ErrLtHf BRP_ERR_STATUS(0xA000, 0x07)    36 #define BRP_LT_ErrLtSnr BRP_ERR_STATUS(0xA000, 0x08)    40 #define BRP_LT_ErrLtBitcount BRP_ERR_STATUS(0xA000, 0x0B)    44 #define BRP_LT_ErrLtFileov BRP_ERR_STATUS(0xA000, 0x0C)    48 #define BRP_LT_ErrLtCom BRP_ERR_STATUS(0xA000, 0x0D)    52 #define BRP_LT_ErrLtCmd BRP_ERR_STATUS(0xA000, 0x13)    56 #define BRP_LT_ErrLtEepRead BRP_ERR_STATUS(0xA000, 0x15)    60 #define BRP_LT_ErrLtEepWrite BRP_ERR_STATUS(0xA000, 0x16)   292 brp_errcode brp_LT_TransparentCmd(
brp_protocol protocol, 
unsigned EnBitMode, 
unsigned EnCRCRX, 
unsigned EnCRCTX, 
unsigned ParityMode, 
unsigned EnParity, 
unsigned LenLo, 
unsigned LenHi, 
unsigned TimeoutLo, 
unsigned TimeoutHi, 
unsigned DSI, 
unsigned DRI, 
brp_buf Data, 
size_t Data_len, 
unsigned* ReturnLenLo, 
unsigned* ReturnLenHi, 
unsigned* ColPos, 
brp_buf* ReturnData, 
size_t* ReturnData_len, 
brp_mempool *mempool);
 brp_errcode brp_LT_Halt(brp_protocol protocol)
Switch PICC to halt state. 
 
brp_errcode brp_LT_ReadMultipleBlocksExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, unsigned NumBlocks, brp_buf *Data, size_t *Data_len, brp_mempool *mempool)
Reads several blocks (32 Byte) from the transponder. 
 
brp_errcode brp_LT_ReadBlockExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, brp_buf *Data, brp_mempool *mempool)
Reads a block (32 Byte) from the transponder using a 16-bit block address. 
 
brp_errcode brp_LT_ContinousReadBlocks(brp_protocol protocol, unsigned Adr, unsigned NumBlocks, brp_buf *Data, size_t *Data_len, brp_mempool *mempool)
Reads several blocks (32 Byte) from the transponder. 
 
brp_errcode brp_LT_ContinousReadBlocksExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, unsigned NumBlocks, brp_buf *Data, size_t *Data_len, brp_mempool *mempool)
Reads several blocks (32 Byte) from the transponder using fast mode. 
 
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions. 
 
brp_errcode brp_LT_FastWriteWord(brp_protocol protocol, unsigned BlockAdr, unsigned WordAdr, unsigned DataLo, unsigned DataHi)
Writes a word to the transponder, write time is reduced (LT5). 
 
brp_errcode brp_LT_ReadWordExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, unsigned WordAdr, unsigned *DataLo, unsigned *DataHi)
Reads a word (2 Byte) from the transponder using a 16-bit address. 
 
brp_errcode brp_LT_FastWriteWordExtended(brp_protocol protocol, unsigned BlockAdrLo, unsigned BlockAdrHi, unsigned WordAdr, unsigned DataLo, unsigned DataHi)
Writes a word to the transponder using a 16-bit block address + fast mode. 
 
brp_errcode brp_LT_HighSpeedWriteBlock(brp_protocol protocol, unsigned Adr, brp_buf Data)
Writes a block (32 Byte) to the transponder, write time is reduced (LT5), block 1 has to be unprotect...
 
brp_errcode brp_LT_Reset(brp_protocol protocol, unsigned Quit)
This command reboots the reader. 
 
brp_errcode brp_LT_TransparentCmd(brp_protocol protocol, unsigned EnBitMode, unsigned EnCRCRX, unsigned EnCRCTX, unsigned ParityMode, unsigned EnParity, unsigned LenLo, unsigned LenHi, unsigned TimeoutLo, unsigned TimeoutHi, unsigned DSI, unsigned DRI, brp_buf Data, size_t Data_len, unsigned *ReturnLenLo, unsigned *ReturnLenHi, unsigned *ColPos, brp_buf *ReturnData, size_t *ReturnData_len, brp_mempool *mempool)
 
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol. 
 
brp_errcode brp_LT_SetReturnLink(brp_protocol protocol, unsigned Mode)
Sets the transponder baud rate after selection. 
 
brp_errcode brp_LT_HFReset(brp_protocol protocol, unsigned OffDurationLo, unsigned OffDurationHi)
This command controls the antenna of the reader. 
 
struct brp_mempool_object_t * brp_mempool
mempool handle. 
 
brp_errcode brp_LT_GetInfo(brp_protocol protocol, char **Info, brp_mempool *mempool)
Retrieves the firmware string, which provides information regarding the firmware release of the reade...
 
brp_errcode brp_LT_Anticoll(brp_protocol protocol, unsigned BitCount, brp_buf PreSelectedSnr, brp_buf *SelectedSnr, brp_mempool *mempool)
This command performs an anticollision sequence. 
 
brp_errcode brp_LT_Request(brp_protocol protocol, bool ReqAll, brp_buf *ATQA, brp_mempool *mempool)
According to the ReqAll flag, either only PICCs in idle state or also PICCs in halt state will be swi...
 
brp_errcode brp_LT_FastWriteBlock(brp_protocol protocol, unsigned Adr, brp_buf Data)
Writes a block (32 Byte) to the transponder, write time is reduced (LT5). 
 
brp_errcode brp_LT_HighSpeedWriteBlockExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, brp_buf Data)
Writes a block (32 Byte) to the transponder using a 16-bit address, write time is reduced (LT6)...
 
brp_errcode brp_LT_Test(brp_protocol protocol, unsigned Mode, unsigned *Teststatus, brp_buf *Snr, brp_mempool *mempool)
Writes a test file to the reader. 
 
brp_errcode brp_LT_GetBootStatus(brp_protocol protocol, unsigned Mode, unsigned *BootStatusLo, unsigned *BootStatusHi)
Retrieves the boot status of the reader, which describes the state of the readers hardware...
 
brp_errcode brp_LT_ReadMultipleBlocks(brp_protocol protocol, unsigned Adr, unsigned NumBlocks, brp_buf *Data, size_t *Data_len, brp_mempool *mempool)
Reads several blocks (32 Byte) from the transponder. 
 
brp_errcode brp_LT_WriteBlockExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, brp_buf Data)
Writes a block (32 Byte) to the transponder using a 16-bit block address. 
 
brp_errcode brp_LT_Select(brp_protocol protocol, brp_buf Snr)
This command selects a PICC with 4-Byte serial number. 
 
brp_errcode brp_LT_WriteWord(brp_protocol protocol, unsigned BlockAdr, unsigned WordAdr, unsigned DataLo, unsigned DataHi)
Writes a word to the transponder. 
 
brp_errcode brp_LT_WriteFile(brp_protocol protocol, unsigned FileNr, unsigned Mode, unsigned BlockAdr, brp_buf Data)
Writes a test file to the reader. 
 
brp_errcode brp_LT_ReadBlock(brp_protocol protocol, unsigned Adr, brp_buf *Data, brp_mempool *mempool)
Reads a block (32 Byte) from the transponder. 
 
brp_errcode brp_LT_ReadWord(brp_protocol protocol, unsigned BlockAdr, unsigned WordAdr, unsigned *DataLo, unsigned *DataHi)
Reads a word (2 Byte) from the transponder. 
 
unsigned char * brp_buf
represents a pointer to a protocol data buffer. 
 
brp_errcode brp_LT_WriteWordExtended(brp_protocol protocol, unsigned BlockAdrLo, unsigned BlockAdrHi, unsigned WordAdr, unsigned DataLo, unsigned DataHi)
Writes a word to the transponder using a 16-bit block address. 
 
brp_errcode brp_LT_WriteBlock(brp_protocol protocol, unsigned Adr, brp_buf Data)
Writes a block (32 Byte) to the transponder.