10 #ifndef __BRP_BALTECH_SDK_CMDS_ULTRALIGHT_H__ 11 #define __BRP_BALTECH_SDK_CMDS_ULTRALIGHT_H__ 12 #include "../typedefs.h" 16 #define BRP_Ultralight_ErrNoTag BRP_ERR_STATUS(0x2500, 0x01) 20 #define BRP_Ultralight_ErrAuth BRP_ERR_STATUS(0x2500, 0x02) 24 #define BRP_Ultralight_ErrHf BRP_ERR_STATUS(0x2500, 0x03) 28 #define BRP_Ultralight_ErrKey BRP_ERR_STATUS(0x2500, 0x04) 32 #define BRP_Ultralight_ErrNack BRP_ERR_STATUS(0x2500, 0x05) 36 #define BRP_Ultralight_ErrInterface BRP_ERR_STATUS(0x2500, 0x18) 40 #define BRP_Ultralight_ErrCmd BRP_ERR_STATUS(0x2500, 0x19) 44 #define BRP_Ultralight_ErrHwNotSupported BRP_ERR_STATUS(0x2500, 0x20) 45 #ifdef BALTECH_SDK_INTERNAL 49 #define BRP_Ultralight_ErrFirmwareNotSupported BRP_ERR_STATUS(0x2500, 0x21) 50 #endif // BALTECH_SDK_INTERNAL 56 #define BRP_Ultralight_BreakErr BRP_ERR_STATUS(0x2500, 0x28) 78 #ifdef BRP_SUPPORT_LEGACY_METHODS 98 #ifdef BRP_SUPPORT_LEGACY_METHODS 116 #ifdef BRP_SUPPORT_LEGACY_METHODS 144 #ifdef BRP_SUPPORT_LEGACY_METHODS 164 #ifdef BRP_SUPPORT_LEGACY_METHODS 180 #ifdef BRP_SUPPORT_LEGACY_METHODS
brp_errcode brp_Ultralight_AuthE2(brp_Ultralight_AuthE2_t params)
Authenticates to a Ultralight-c card.
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
brp_Ultralight_AuthUser_CryptoMode CryptoMode
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
brp_Ultralight_AuthE2_DivMode
Specifies diversification algorithm.
struct brp_mempool_object_t * brp_mempool
mempool handle.
brp_errcode brp_Ultralight_AuthUser(brp_Ultralight_AuthUser_t params)
Authenticates to an Ultralight-C/EV1 card.
brp_errcode brp_Ultralight_Write(brp_Ultralight_Write_t params)
Standard write command for Ultralight cards.
brp_Ultralight_AuthUser_CryptoMode
Sets the encryption algorithm.
brp_errcode brp_Ultralight_SectorSwitch(brp_Ultralight_SectorSwitch_t params)
Selects a sector of an Ultralight-C/EV1 card.
brp_Ultralight_AuthE2_DivMode DivMode
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
brp_errcode brp_Ultralight_Read(brp_Ultralight_Read_t params)
Standard read command for Ultralight cards.
brp_errcode brp_Ultralight_ExecCmd(brp_Ultralight_ExecCmd_t params)
Generic command to communicate to a Mifare Ultralight card.