C API for BALTECH SDK
em.h File Reference

These are EM-marin 125 kHz card commands. More...

#include "../typedefs.h"

Go to the source code of this file.

Macros

#define BRP_EM_ErrEmNoTag   BRP_ERR_STATUS(0x3100, 0x01)
 No tag error. More...
 
#define BRP_EM_ErrEmRxdata   BRP_ERR_STATUS(0x3100, 0x03)
 Wrong length or wrong data. More...
 
#define BRP_EM_ErrEmChecksum   BRP_ERR_STATUS(0x3100, 0x04)
 Receive checksum error. More...
 
#define BRP_EM_ErrEmParity   BRP_ERR_STATUS(0x3100, 0x05)
 Receive parity error. More...
 
#define BRP_EM_EmCmdError   BRP_ERR_STATUS(0x3100, 0x06)
 Error detected during command execution. More...
 
#define BRP_EM_EmTagtypeNotDetected   BRP_ERR_STATUS(0x3100, 0x07)
 Unknown tag type or modulation not detected. More...
 
#define BRP_EM_ErrEmOvTo   BRP_ERR_STATUS(0x3100, 0x08)
 ISR buffer overflow during send/receive, TO during send. More...
 
#define BRP_EM_EmParamError   BRP_ERR_STATUS(0x3100, 0x09)
 Host command parameter error. More...
 
#define BRP_EM_ErrEmHfreqctrl   BRP_ERR_STATUS(0x3100, 0x0A)
 Another task requested control over HF via hf_request_control. More...
 
#define BRP_EM_ErrEmHw   BRP_ERR_STATUS(0x3100, 0x0B)
 Missing Platform ID or Readerchip error. More...
 
#define BRP_EM_ErrEmHwNotSupported   BRP_ERR_STATUS(0x3100, 0x0D)
 Hardware not supported. More...
 

Functions

brp_errcode brp_EM_DecodeCfg (brp_protocol protocol, brp_EM_DecodeCfg_RxMod RxMod, unsigned RxBaud)
 Configures Mod and Baudtype of receiver. More...
 
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. More...
 
brp_errcode brp_EM_Read4205 (brp_protocol protocol, unsigned Address, unsigned *Page)
 Reads a page from EM4205/4305 labels. More...
 
brp_errcode brp_EM_Write4205 (brp_protocol protocol, unsigned Address, unsigned Page)
 Writes a page to EM4205/4305 labels. More...
 
brp_errcode brp_EM_Halt4205 (brp_protocol protocol)
 Disables a 4205 tag until next power on. More...
 
brp_errcode brp_EM_Login4205 (brp_protocol protocol, unsigned Password)
 Login to a 4205 tag with data has to match block 1. More...
 
brp_errcode brp_EM_Protect4205 (brp_protocol protocol, unsigned ProtectMask)
 Protects data from being modified. More...
 
brp_errcode brp_EM_Read4469 (brp_protocol protocol, unsigned Address, unsigned *Page)
 Reads a page from EM4469/4569 labels. More...
 
brp_errcode brp_EM_Write4469 (brp_protocol protocol, unsigned Address, unsigned Page)
 Writes a page to EM4469/4569 labels. More...
 
brp_errcode brp_EM_Halt4469 (brp_protocol protocol)
 Disables a EM4469/4569 tag until next power on. More...
 
brp_errcode brp_EM_Login4469 (brp_protocol protocol, unsigned Password)
 Login to a EM4469/4569 tag with data has to match block 1. More...
 
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). More...
 

Detailed Description

These are EM-marin 125 kHz card commands.

Definition in file em.h.