C API for BALTECH SDK
iso15.h
Go to the documentation of this file.
1 
59 #ifndef __BRP_BALTECH_API_CMDS_ISO15_H__
60 #define __BRP_BALTECH_API_CMDS_ISO15_H__
61 #include "../typedefs.h"
66 #define BRP_Iso15_ErrNoTag BRP_ERR_STATUS(0x2100, 0x01)
67 
74 #define BRP_Iso15_ErrCollision BRP_ERR_STATUS(0x2100, 0x02)
75 
79 #define BRP_Iso15_ErrHf BRP_ERR_STATUS(0x2100, 0x04)
80 
84 #define BRP_Iso15_ErrLabel BRP_ERR_STATUS(0x2100, 0x05)
85 
89 #define BRP_Iso15_ErrCom BRP_ERR_STATUS(0x2100, 0x10)
90 
94 #define BRP_Iso15_ErrCmd BRP_ERR_STATUS(0x2100, 0x20)
95 
99 #define BRP_Iso15_ErrParamNotSupported BRP_ERR_STATUS(0x2100, 0x23)
100 
104 #define BRP_Iso15_ErrMem BRP_ERR_STATUS(0x2100, 0x24)
105 
109 #define BRP_Iso15_ErrLabelBlocksize BRP_ERR_STATUS(0x2100, 0x25)
110 
114 #define BRP_Iso15_ErrHwNotSupported BRP_ERR_STATUS(0x2100, 0x26)
115 
126 brp_errcode brp_Iso15_SetParam(brp_protocol protocol, bool ModulationIndex, bool TXMode, bool HighDataRate, bool DualSubcarrier);
137 brp_errcode brp_Iso15_GetParam(brp_protocol protocol, unsigned* ModulationIndex, unsigned* TXMode, unsigned* HighDataRate, unsigned* DualSubcarrier);
173 brp_errcode brp_Iso15_GetUIDList(brp_protocol protocol, bool EnAFI, bool NextBlock, bool AutoQuiet, bool EnDSFID, bool En16Slots, unsigned AFI, unsigned* More, brp_Iso15_GetUIDList_Labels_Entry** Labels, size_t* Labels_len, brp_mempool *mempool);
188 brp_errcode brp_Iso15_SetMode(brp_protocol protocol, unsigned Mode, brp_buf UID);
226 brp_errcode brp_Iso15_ReadBlock(brp_protocol protocol, unsigned BlockID, unsigned BlockNum, bool EnBlockSec, unsigned* LabelStat, unsigned* BlockLen, brp_Iso15_ReadBlock_Data_Entry** Data, size_t* Data_len, brp_mempool *mempool);
249 brp_errcode brp_Iso15_WriteBlock(brp_protocol protocol, unsigned BlockID, unsigned BlockNum, unsigned BlockLen, bool OptionFlag, brp_buf* Data, size_t Data_len, unsigned* LabelStat);
261 brp_errcode brp_Iso15_LockBlock(brp_protocol protocol, unsigned BlockID, bool OptionFlag, unsigned* LabelStat);
273 brp_errcode brp_Iso15_ResetToReady(brp_protocol protocol, unsigned* LabelStat);
285 brp_errcode brp_Iso15_WriteAFI(brp_protocol protocol, unsigned AFI, bool OptionFlag, unsigned* LabelStat);
296 brp_errcode brp_Iso15_LockAFI(brp_protocol protocol, bool OptionFlag, unsigned* LabelStat);
308 brp_errcode brp_Iso15_WriteDSFID(brp_protocol protocol, unsigned DSFID, bool OptionFlag, unsigned* LabelStat);
319 brp_errcode brp_Iso15_LockDSFID(brp_protocol protocol, bool OptionFlag, unsigned* LabelStat);
340 brp_errcode brp_Iso15_GetSystemInformation(brp_protocol protocol, unsigned* LabelStat, bool* EnICRef, bool* EnMemSize, bool* EnAFI, bool* EnDSFID, brp_buf* SNR, unsigned* DSFID, unsigned* AFI, unsigned* BlockNum, unsigned* BlockSize, unsigned* ICRef, brp_mempool *mempool);
355 brp_errcode brp_Iso15_GetSecurityStatus(brp_protocol protocol, unsigned BlockID, unsigned BlockNum, unsigned* LabelStat, unsigned** BlockStat, size_t* BlockStat_len, brp_mempool *mempool);
376 brp_errcode brp_Iso15_CustomCommand(brp_protocol protocol, unsigned Cmd, unsigned Opt, unsigned MFC, unsigned TO, brp_buf RequestData, size_t RequestData_len, unsigned* LabelStat, brp_buf* ResponseData, size_t* ResponseData_len, brp_mempool *mempool);
393 brp_errcode brp_Iso15_ReadSingleBlock(brp_protocol protocol, unsigned BlockID, bool EnBlockSec, unsigned* LabelStat, brp_buf* Payload, size_t* Payload_len, brp_mempool *mempool);
410 brp_errcode brp_Iso15_WriteSingleBlock(brp_protocol protocol, unsigned BlockID, unsigned BlockLen, bool OptionFlag, brp_buf SingleBlockData, size_t SingleBlockData_len, unsigned* LabelStat);
440 brp_errcode brp_Iso15_TransparentCmdLegacy(brp_protocol protocol, bool EnRxWait, bool EnCRCRX, bool EnCRCTX, unsigned Len, unsigned Timeout, brp_buf Data, unsigned RxWait, brp_buf* LabelData, size_t* LabelData_len, brp_mempool *mempool);
456 brp_errcode brp_Iso15_WriteMultipleBlocks(brp_protocol protocol, unsigned FirstBlockId, brp_Iso15_WriteMultipleBlocks_WriteBlocks_Entry* WriteBlocks, size_t WriteBlocks_len, bool OptionFlag, unsigned* LabelStat);
476 brp_errcode brp_Iso15_ReadMultipleBlocks(brp_protocol protocol, unsigned FirstBlockId, unsigned BlockCount, bool EnBlockSec, unsigned* LabelStat, brp_Iso15_ReadMultipleBlocks_RecvBlocks_Entry** RecvBlocks, size_t* RecvBlocks_len, unsigned** BlocksSecData, size_t* BlocksSecData_len, brp_mempool *mempool);
500 brp_errcode brp_Iso15_TransparentCmd(brp_protocol protocol, brp_buf SendData, size_t SendData_len, unsigned Timeout, bool EnCrcRx, bool EnCrcTx, unsigned RxWait, brp_buf* RecvData, size_t* RecvData_len, brp_mempool *mempool);
501 #endif
502 
Definition: typedefs.h:1775
brp_errcode brp_Iso15_TransparentCmdLegacy(brp_protocol protocol, bool EnRxWait, bool EnCRCRX, bool EnCRCTX, unsigned Len, unsigned Timeout, brp_buf Data, unsigned RxWait, brp_buf *LabelData, size_t *LabelData_len, brp_mempool *mempool)
brp_errcode brp_Iso15_SetMode(brp_protocol protocol, unsigned Mode, brp_buf UID)
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_Iso15_LockAFI(brp_protocol protocol, bool OptionFlag, unsigned *LabelStat)
brp_errcode brp_Iso15_WriteAFI(brp_protocol protocol, unsigned AFI, bool OptionFlag, unsigned *LabelStat)
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
brp_errcode brp_Iso15_GetParam(brp_protocol protocol, unsigned *ModulationIndex, unsigned *TXMode, unsigned *HighDataRate, unsigned *DualSubcarrier)
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:27
brp_errcode brp_Iso15_ReadMultipleBlocks(brp_protocol protocol, unsigned FirstBlockId, unsigned BlockCount, bool EnBlockSec, unsigned *LabelStat, brp_Iso15_ReadMultipleBlocks_RecvBlocks_Entry **RecvBlocks, size_t *RecvBlocks_len, unsigned **BlocksSecData, size_t *BlocksSecData_len, brp_mempool *mempool)
brp_errcode brp_Iso15_GetUIDList(brp_protocol protocol, bool EnAFI, bool NextBlock, bool AutoQuiet, bool EnDSFID, bool En16Slots, unsigned AFI, unsigned *More, brp_Iso15_GetUIDList_Labels_Entry **Labels, size_t *Labels_len, brp_mempool *mempool)
brp_errcode brp_Iso15_LockBlock(brp_protocol protocol, unsigned BlockID, bool OptionFlag, unsigned *LabelStat)
brp_errcode brp_Iso15_TransparentCmd(brp_protocol protocol, brp_buf SendData, size_t SendData_len, unsigned Timeout, bool EnCrcRx, bool EnCrcTx, unsigned RxWait, brp_buf *RecvData, size_t *RecvData_len, brp_mempool *mempool)
Definition: typedefs.h:1761
brp_errcode brp_Iso15_GetSecurityStatus(brp_protocol protocol, unsigned BlockID, unsigned BlockNum, unsigned *LabelStat, unsigned **BlockStat, size_t *BlockStat_len, brp_mempool *mempool)
brp_errcode brp_Iso15_GetSystemInformation(brp_protocol protocol, unsigned *LabelStat, bool *EnICRef, bool *EnMemSize, bool *EnAFI, bool *EnDSFID, brp_buf *SNR, unsigned *DSFID, unsigned *AFI, unsigned *BlockNum, unsigned *BlockSize, unsigned *ICRef, brp_mempool *mempool)
brp_errcode brp_Iso15_ResetToReady(brp_protocol protocol, unsigned *LabelStat)
brp_errcode brp_Iso15_ReadSingleBlock(brp_protocol protocol, unsigned BlockID, bool EnBlockSec, unsigned *LabelStat, brp_buf *Payload, size_t *Payload_len, brp_mempool *mempool)
brp_errcode brp_Iso15_CustomCommand(brp_protocol protocol, unsigned Cmd, unsigned Opt, unsigned MFC, unsigned TO, brp_buf RequestData, size_t RequestData_len, unsigned *LabelStat, brp_buf *ResponseData, size_t *ResponseData_len, brp_mempool *mempool)
Definition: typedefs.h:1791
brp_errcode brp_Iso15_LockDSFID(brp_protocol protocol, bool OptionFlag, unsigned *LabelStat)
brp_errcode brp_Iso15_WriteBlock(brp_protocol protocol, unsigned BlockID, unsigned BlockNum, unsigned BlockLen, bool OptionFlag, brp_buf *Data, size_t Data_len, unsigned *LabelStat)
brp_errcode brp_Iso15_WriteMultipleBlocks(brp_protocol protocol, unsigned FirstBlockId, brp_Iso15_WriteMultipleBlocks_WriteBlocks_Entry *WriteBlocks, size_t WriteBlocks_len, bool OptionFlag, unsigned *LabelStat)
Definition: typedefs.h:1805
brp_errcode brp_Iso15_WriteDSFID(brp_protocol protocol, unsigned DSFID, bool OptionFlag, unsigned *LabelStat)
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
brp_errcode brp_Iso15_ReadBlock(brp_protocol protocol, unsigned BlockID, unsigned BlockNum, bool EnBlockSec, unsigned *LabelStat, unsigned *BlockLen, brp_Iso15_ReadBlock_Data_Entry **Data, size_t *Data_len, brp_mempool *mempool)
brp_errcode brp_Iso15_WriteSingleBlock(brp_protocol protocol, unsigned BlockID, unsigned BlockLen, bool OptionFlag, brp_buf SingleBlockData, size_t SingleBlockData_len, unsigned *LabelStat)
brp_errcode brp_Iso15_StayQuiet(brp_protocol protocol)
brp_errcode brp_Iso15_SetParam(brp_protocol protocol, bool ModulationIndex, bool TXMode, bool HighDataRate, bool DualSubcarrier)