C API for BALTECH SDK
hitag.h File Reference

This are Hitag 125 kHz card commands. More...

#include "../typedefs.h"

Go to the source code of this file.

Macros

#define BRP_Hitag_ErrHtgNoTag   BRP_ERR_STATUS(0x3000, 0x01)
 No tag error. More...
 
#define BRP_Hitag_ErrHtgCollision   BRP_ERR_STATUS(0x3000, 0x02)
 Collision occurred. More...
 
#define BRP_Hitag_ErrHtgRxdata   BRP_ERR_STATUS(0x3000, 0x03)
 Wrong length or wrong data. More...
 
#define BRP_Hitag_HtgChecksum   BRP_ERR_STATUS(0x3000, 0x04)
 Receive checksum error. More...
 
#define BRP_Hitag_HtgWrongParam   BRP_ERR_STATUS(0x3000, 0x07)
 Wrong command parameter. More...
 
#define BRP_Hitag_ErrHtgAuth   BRP_ERR_STATUS(0x3000, 0x09)
 Authentication error. More...
 
#define BRP_Hitag_ErrHtgOvTo   BRP_ERR_STATUS(0x3000, 0x08)
 ISR buffer overflow during send/receive, TO during send. More...
 
#define BRP_Hitag_ErrHtgHw   BRP_ERR_STATUS(0x3000, 0x0A)
 Reader chip HW error. More...
 
#define BRP_Hitag_ErrHtgCr   BRP_ERR_STATUS(0x3000, 0x0B)
 Crypt processor HW error. More...
 
#define BRP_Hitag_ErrHtgCfg   BRP_ERR_STATUS(0x3000, 0x0C)
 Update of configuration not successful. More...
 
#define BRP_Hitag_ErrHtgHfreqctrl   BRP_ERR_STATUS(0x3000, 0x0D)
 Another task requested control over HF via hf_request_control. More...
 
#define BRP_Hitag_ErrHtgHwNotSupported   BRP_ERR_STATUS(0x3000, 0x0F)
 Hardware not supported. More...
 

Functions

brp_errcode brp_Hitag_Request (brp_protocol protocol, brp_Hitag_Request_TagType TagType, brp_Hitag_Request_Mode Mode, unsigned *Snr)
 Request and AC / according to Mode byte you can request Hitag-1 and Hitag-S tags. More...
 
brp_errcode brp_Hitag_Select (brp_protocol protocol, brp_Hitag_Select_SelMode SelMode, unsigned Pwd, unsigned *Page1)
 Selects a Hitag-1 or Hitag-S tag and returns page 1. More...
 
brp_errcode brp_Hitag_Halt (brp_protocol protocol)
 Sets a Hitag1/S label in halt mode. More...
 
brp_errcode brp_Hitag_Read (brp_protocol protocol, unsigned Address, bool InvRead, bool KeyB, bool Encrypt, bool BlockRead, unsigned **PageNr, size_t *PageNr_len, brp_mempool *mempool)
 Reads a Hitag1/S label. More...
 
brp_errcode brp_Hitag_Write (brp_protocol protocol, unsigned Address, bool KeyB, bool Encrypt, bool BlockWrite, unsigned *PageNr, size_t PageNr_len)
 Writes data to a Hitag1/S label. More...
 
brp_errcode brp_Hitag_PersonaliseHtg (brp_protocol protocol, bool Reset, bool HtgS, unsigned *Len, size_t Len_len)
 Writes personalization data for Hitag1/2 to coprocessor. More...
 

Detailed Description

This are Hitag 125 kHz card commands.

Definition in file hitag.h.