11 #ifndef __BRP_BALTECH_API_CMDS_HITAG_H__ 12 #define __BRP_BALTECH_API_CMDS_HITAG_H__ 13 #include "../typedefs.h" 18 #define BRP_Hitag_ErrHtgNoTag BRP_ERR_STATUS(0x3000, 0x01) 23 #define BRP_Hitag_ErrHtgCollision BRP_ERR_STATUS(0x3000, 0x02) 28 #define BRP_Hitag_ErrHtgRxdata BRP_ERR_STATUS(0x3000, 0x03) 33 #define BRP_Hitag_HtgChecksum BRP_ERR_STATUS(0x3000, 0x04) 38 #define BRP_Hitag_HtgWrongParam BRP_ERR_STATUS(0x3000, 0x07) 43 #define BRP_Hitag_ErrHtgAuth BRP_ERR_STATUS(0x3000, 0x09) 48 #define BRP_Hitag_ErrHtgOvTo BRP_ERR_STATUS(0x3000, 0x08) 53 #define BRP_Hitag_ErrHtgHw BRP_ERR_STATUS(0x3000, 0x0A) 58 #define BRP_Hitag_ErrHtgCr BRP_ERR_STATUS(0x3000, 0x0B) 63 #define BRP_Hitag_ErrHtgCfg BRP_ERR_STATUS(0x3000, 0x0C) 68 #define BRP_Hitag_ErrHtgHfreqctrl BRP_ERR_STATUS(0x3000, 0x0D) 73 #define BRP_Hitag_ErrHtgHwNotSupported BRP_ERR_STATUS(0x3000, 0x0F) 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)
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
brp_errcode brp_Hitag_Request(brp_protocol protocol, brp_Hitag_Request_TagType TagType, brp_Hitag_Request_Mode Mode, unsigned *Snr)
struct brp_mempool_object_t * brp_mempool
mempool handle.
brp_errcode brp_Hitag_Write(brp_protocol protocol, unsigned Address, bool KeyB, bool Encrypt, bool BlockWrite, unsigned *PageNr, size_t PageNr_len)
brp_Hitag_Request_TagType
brp_errcode brp_Hitag_Select(brp_protocol protocol, brp_Hitag_Select_SelMode SelMode, unsigned Pwd, unsigned *Page1)
brp_errcode brp_Hitag_Halt(brp_protocol protocol)
brp_errcode brp_Hitag_PersonaliseHtg(brp_protocol protocol, bool Reset, bool HtgS, unsigned *Len, size_t Len_len)