C API for BALTECH SDK
srix.h
Go to the documentation of this file.
1 
10 #ifndef __BRP_BALTECH_API_CMDS_SRIX_H__
11 #define __BRP_BALTECH_API_CMDS_SRIX_H__
12 #include "../typedefs.h"
16 #define BRP_Srix_ErrNoTag BRP_ERR_STATUS(0x2400, 0x01)
17 
20 #define BRP_Srix_ErrFrame BRP_ERR_STATUS(0x2400, 0x03)
21 
24 #define BRP_Srix_ErrHf BRP_ERR_STATUS(0x2400, 0x04)
25 
28 #define BRP_Srix_ErrCom BRP_ERR_STATUS(0x2400, 0x05)
29 
32 #define BRP_Srix_ErrSrixCardtypeNotSupported BRP_ERR_STATUS(0x2400, 0x06)
33 
36 #define BRP_Srix_ErrHwNotSupported BRP_ERR_STATUS(0x2400, 0x07)
37 
40 #define BRP_Srix_ErrCmdBreak BRP_ERR_STATUS(0x2400, 0x08)
41 
49 brp_errcode brp_Srix_Select(brp_protocol protocol, brp_buf* Snr, size_t* Snr_len, brp_mempool *mempool);
59 brp_errcode brp_Srix_Read(brp_protocol protocol, unsigned Adr, brp_buf* Data, size_t* Data_len, brp_mempool *mempool);
68 brp_errcode brp_Srix_Write(brp_protocol protocol, unsigned Adr, brp_buf Data, size_t Data_len);
69 #endif
70 
brp_errcode brp_Srix_Select(brp_protocol protocol, brp_buf *Snr, size_t *Snr_len, brp_mempool *mempool)
This command selects a label including anticollision.
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
Definition: errorcodes.h:23
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
Definition: protocol.h:34
struct brp_mempool_object_t * brp_mempool
mempool handle.
Definition: mempool.h:27
brp_errcode brp_Srix_Read(brp_protocol protocol, unsigned Adr, brp_buf *Data, size_t *Data_len, brp_mempool *mempool)
This command reads a secure data page.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
brp_errcode brp_Srix_Write(brp_protocol protocol, unsigned Adr, brp_buf Data, size_t Data_len)
This command writes data to a page address of a label.