C API for BALTECH SDK
lt.h
Go to the documentation of this file.
1 
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)
17 
20 #define BRP_LT_ErrLtCrc BRP_ERR_STATUS(0xA000, 0x02)
21 
24 #define BRP_LT_ErrLtParity BRP_ERR_STATUS(0xA000, 0x05)
25 
28 #define BRP_LT_LtNackReceived BRP_ERR_STATUS(0xA000, 0x06)
29 
32 #define BRP_LT_ErrLtHf BRP_ERR_STATUS(0xA000, 0x07)
33 
36 #define BRP_LT_ErrLtSnr BRP_ERR_STATUS(0xA000, 0x08)
37 
40 #define BRP_LT_ErrLtBitcount BRP_ERR_STATUS(0xA000, 0x0B)
41 
44 #define BRP_LT_ErrLtFileov BRP_ERR_STATUS(0xA000, 0x0C)
45 
48 #define BRP_LT_ErrLtCom BRP_ERR_STATUS(0xA000, 0x0D)
49 
52 #define BRP_LT_ErrLtCmd BRP_ERR_STATUS(0xA000, 0x13)
53 
56 #define BRP_LT_ErrLtEepRead BRP_ERR_STATUS(0xA000, 0x15)
57 
60 #define BRP_LT_ErrLtEepWrite BRP_ERR_STATUS(0xA000, 0x16)
61 
72 brp_errcode brp_LT_Request(brp_protocol protocol, bool ReqAll, brp_buf* ATQA, brp_mempool *mempool);
83 brp_errcode brp_LT_Anticoll(brp_protocol protocol, unsigned BitCount, brp_buf PreSelectedSnr, brp_buf* SelectedSnr, brp_mempool *mempool);
109 brp_errcode brp_LT_ReadBlock(brp_protocol protocol, unsigned Adr, brp_buf* Data, brp_mempool *mempool);
121 brp_errcode brp_LT_ReadMultipleBlocks(brp_protocol protocol, unsigned Adr, unsigned NumBlocks, brp_buf* Data, size_t* Data_len, brp_mempool *mempool);
130 brp_errcode brp_LT_WriteBlock(brp_protocol protocol, unsigned Adr, brp_buf Data);
141 brp_errcode brp_LT_ReadWord(brp_protocol protocol, unsigned BlockAdr, unsigned WordAdr, unsigned* DataLo, unsigned* DataHi);
152 brp_errcode brp_LT_WriteWord(brp_protocol protocol, unsigned BlockAdr, unsigned WordAdr, unsigned DataLo, unsigned DataHi);
163 brp_errcode brp_LT_WriteFile(brp_protocol protocol, unsigned FileNr, unsigned Mode, unsigned BlockAdr, brp_buf Data);
174 brp_errcode brp_LT_Test(brp_protocol protocol, unsigned Mode, unsigned* Teststatus, brp_buf* Snr, brp_mempool *mempool);
183 brp_errcode brp_LT_FastWriteBlock(brp_protocol protocol, unsigned Adr, brp_buf Data);
194 brp_errcode brp_LT_FastWriteWord(brp_protocol protocol, unsigned BlockAdr, unsigned WordAdr, unsigned DataLo, unsigned DataHi);
204 brp_errcode brp_LT_HighSpeedWriteBlock(brp_protocol protocol, unsigned Adr, brp_buf Data);
216 brp_errcode brp_LT_GetBootStatus(brp_protocol protocol, unsigned Mode, unsigned* BootStatusLo, unsigned* BootStatusHi);
229 brp_errcode brp_LT_ContinousReadBlocks(brp_protocol protocol, unsigned Adr, unsigned NumBlocks, brp_buf* Data, size_t* Data_len, brp_mempool *mempool);
237 brp_errcode brp_LT_SetReturnLink(brp_protocol protocol, unsigned Mode);
247 brp_errcode brp_LT_HFReset(brp_protocol protocol, unsigned OffDurationLo, unsigned OffDurationHi);
256 brp_errcode brp_LT_Reset(brp_protocol protocol, unsigned Quit);
266 brp_errcode brp_LT_GetInfo(brp_protocol protocol, char** Info, brp_mempool *mempool);
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);
303 brp_errcode brp_LT_ReadBlockExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, brp_buf* Data, brp_mempool *mempool);
313 brp_errcode brp_LT_WriteBlockExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, brp_buf Data);
325 brp_errcode brp_LT_ReadWordExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, unsigned WordAdr, unsigned* DataLo, unsigned* DataHi);
337 brp_errcode brp_LT_WriteWordExtended(brp_protocol protocol, unsigned BlockAdrLo, unsigned BlockAdrHi, unsigned WordAdr, unsigned DataLo, unsigned DataHi);
350 brp_errcode brp_LT_ReadMultipleBlocksExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, unsigned NumBlocks, brp_buf* Data, size_t* Data_len, brp_mempool *mempool);
362 brp_errcode brp_LT_FastWriteWordExtended(brp_protocol protocol, unsigned BlockAdrLo, unsigned BlockAdrHi, unsigned WordAdr, unsigned DataLo, unsigned DataHi);
375 brp_errcode brp_LT_ContinousReadBlocksExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, unsigned NumBlocks, brp_buf* Data, size_t* Data_len, brp_mempool *mempool);
386 brp_errcode brp_LT_HighSpeedWriteBlockExtended(brp_protocol protocol, unsigned AdrLo, unsigned AdrHi, brp_buf Data);
387 #endif
388 
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.
Definition: errorcodes.h:23
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.
Definition: protocol.h:34
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.
Definition: mempool.h:27
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.
Definition: common.h:61
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.