C API for BALTECH SDK
em.h
Go to the documentation of this file.
1 
10 #ifndef __BRP_BALTECH_API_CMDS_EM_H__
11 #define __BRP_BALTECH_API_CMDS_EM_H__
12 #include "../typedefs.h"
16 #define BRP_EM_ErrEmNoTag BRP_ERR_STATUS(0x3100, 0x01)
17 
20 #define BRP_EM_ErrEmRxdata BRP_ERR_STATUS(0x3100, 0x03)
21 
24 #define BRP_EM_ErrEmChecksum BRP_ERR_STATUS(0x3100, 0x04)
25 
28 #define BRP_EM_ErrEmParity BRP_ERR_STATUS(0x3100, 0x05)
29 
32 #define BRP_EM_EmCmdError BRP_ERR_STATUS(0x3100, 0x06)
33 
36 #define BRP_EM_EmTagtypeNotDetected BRP_ERR_STATUS(0x3100, 0x07)
37 
40 #define BRP_EM_ErrEmOvTo BRP_ERR_STATUS(0x3100, 0x08)
41 
44 #define BRP_EM_EmParamError BRP_ERR_STATUS(0x3100, 0x09)
45 
48 #define BRP_EM_ErrEmHfreqctrl BRP_ERR_STATUS(0x3100, 0x0A)
49 
52 #define BRP_EM_ErrEmHw BRP_ERR_STATUS(0x3100, 0x0B)
53 
56 #define BRP_EM_ErrEmHwNotSupported BRP_ERR_STATUS(0x3100, 0x0D)
57 
66 brp_errcode brp_EM_DecodeCfg(brp_protocol protocol, brp_EM_DecodeCfg_RxMod RxMod, unsigned RxBaud);
75 brp_errcode brp_EM_Read4100(brp_protocol protocol, brp_buf* Data, size_t* Data_len, brp_mempool *mempool);
83 brp_errcode brp_EM_Read4205(brp_protocol protocol, unsigned Address, unsigned* Page);
91 brp_errcode brp_EM_Write4205(brp_protocol protocol, unsigned Address, unsigned Page);
104 brp_errcode brp_EM_Login4205(brp_protocol protocol, unsigned Password);
111 brp_errcode brp_EM_Protect4205(brp_protocol protocol, unsigned ProtectMask);
119 brp_errcode brp_EM_Read4469(brp_protocol protocol, unsigned Address, unsigned* Page);
127 brp_errcode brp_EM_Write4469(brp_protocol protocol, unsigned Address, unsigned Page);
140 brp_errcode brp_EM_Login4469(brp_protocol protocol, unsigned Password);
151 brp_errcode brp_EM_Read4450(brp_protocol protocol, unsigned StartAdr, unsigned EndAdr, unsigned** PageNr, size_t* PageNr_len, brp_mempool *mempool);
152 #endif
153 
brp_errcode brp_EM_Read4205(brp_protocol protocol, unsigned Address, unsigned *Page)
Reads a page from EM4205/4305 labels.
brp_errcode brp_EM_Login4469(brp_protocol protocol, unsigned Password)
Login to a EM4469/4569 tag with data has to match block 1.
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_EM_Read4100(brp_protocol protocol, brp_buf *Data, size_t *Data_len, brp_mempool *mempool)
Reads the UID from EM4100/4102 labels.
brp_errcode brp_EM_Halt4205(brp_protocol protocol)
Disables a 4205 tag until next power on.
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_EM_Login4205(brp_protocol protocol, unsigned Password)
Login to a 4205 tag with data has to match block 1.
brp_errcode brp_EM_Read4469(brp_protocol protocol, unsigned Address, unsigned *Page)
Reads a page from EM4469/4569 labels.
brp_errcode brp_EM_Read4450(brp_protocol protocol, unsigned StartAdr, unsigned EndAdr, unsigned **PageNr, size_t *PageNr_len, brp_mempool *mempool)
Reads pages from a EM4450 tag (start to end address).
brp_EM_DecodeCfg_RxMod
Definition: typedefs.h:923
brp_errcode brp_EM_Write4205(brp_protocol protocol, unsigned Address, unsigned Page)
Writes a page to EM4205/4305 labels.
brp_errcode brp_EM_Write4469(brp_protocol protocol, unsigned Address, unsigned Page)
Writes a page to EM4469/4569 labels.
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
Definition: common.h:61
brp_errcode brp_EM_DecodeCfg(brp_protocol protocol, brp_EM_DecodeCfg_RxMod RxMod, unsigned RxBaud)
Configures Mod and Baudtype of receiver.
brp_errcode brp_EM_Halt4469(brp_protocol protocol)
Disables a EM4469/4569 tag until next power on.
brp_errcode brp_EM_Protect4205(brp_protocol protocol, unsigned ProtectMask)
Protects data from being modified.