14 #ifndef __BRP_BALTECH_API_CMDS_ULTRALIGHT_H__ 15 #define __BRP_BALTECH_API_CMDS_ULTRALIGHT_H__ 16 #include "../typedefs.h" 21 #define BRP_Ultralight_ErrNoTag BRP_ERR_STATUS(0x2500, 0x01) 26 #define BRP_Ultralight_ErrAuth BRP_ERR_STATUS(0x2500, 0x02) 32 #define BRP_Ultralight_ErrHf BRP_ERR_STATUS(0x2500, 0x03) 37 #define BRP_Ultralight_ErrKey BRP_ERR_STATUS(0x2500, 0x04) 43 #define BRP_Ultralight_ErrNack BRP_ERR_STATUS(0x2500, 0x05) 50 #define BRP_Ultralight_ErrInterface BRP_ERR_STATUS(0x2500, 0x18) 55 #define BRP_Ultralight_ErrCmd BRP_ERR_STATUS(0x2500, 0x19) 60 #define BRP_Ultralight_ErrHwNotSupported BRP_ERR_STATUS(0x2500, 0x20) 65 #define BRP_Ultralight_ErrFirmwareNotSupported BRP_ERR_STATUS(0x2500, 0x21) 75 #define BRP_Ultralight_BreakErr BRP_ERR_STATUS(0x2500, 0x28) 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_Ultralight_Write(brp_protocol protocol, unsigned PageAdr, brp_buf PageData)
brp_Ultralight_AuthE2_DivMode
brp_errcode brp_Ultralight_Read(brp_protocol protocol, unsigned PageAdr, brp_buf *PageData, brp_mempool *mempool)
struct brp_mempool_object_t * brp_mempool
mempool handle.
brp_errcode brp_Ultralight_ExecCmd(brp_protocol protocol, unsigned Cmd, brp_buf Param, size_t Param_len, brp_buf *Response, size_t *Response_len, brp_mempool *mempool)
brp_errcode brp_Ultralight_AuthUser(brp_protocol protocol, brp_Ultralight_AuthUser_CryptoMode CryptoMode, brp_buf Key, size_t Key_len)
brp_Ultralight_AuthUser_CryptoMode
brp_errcode brp_Ultralight_AuthE2(brp_protocol protocol, brp_Ultralight_AuthE2_DivMode DivMode, bool HasExtIdx, unsigned KeyIdx, brp_buf DivData, size_t DivData_len, unsigned KeyExtIdx)
unsigned char * brp_buf
represents a pointer to a protocol data buffer.