10 #ifndef __BRP_BALTECH_SDK_CMDS_MAIN_H__ 11 #define __BRP_BALTECH_SDK_CMDS_MAIN_H__ 12 #include "../typedefs.h" 13 #ifdef BALTECH_SDK_INTERNAL 17 #define BRP_Main_ErrOutdatedFirmware BRP_ERR_STATUS(0xF000, 0x01) 18 #endif // BALTECH_SDK_INTERNAL 19 #ifdef BALTECH_SDK_INTERNAL 23 #define BRP_Main_ErrUnknownVersion BRP_ERR_STATUS(0xF000, 0x02) 24 #endif // BALTECH_SDK_INTERNAL 28 #define BRP_Main_ErrInvalidState BRP_ERR_STATUS(0xF000, 0x10) 32 #define BRP_Main_ErrReadFile BRP_ERR_STATUS(0xF000, 0x11) 36 #define BRP_Main_ErrInvalidFormat BRP_ERR_STATUS(0xF000, 0x12) 40 #define BRP_Main_ErrInvalidCustomerKey BRP_ERR_STATUS(0xF000, 0x13) 44 #define BRP_Main_ErrInvalidConfigSecurityCode BRP_ERR_STATUS(0xF000, 0x14) 48 #define BRP_Main_ErrInvalidConfigVersion BRP_ERR_STATUS(0xF000, 0x15) 52 #define BRP_Main_ErrInvalidCmac BRP_ERR_STATUS(0xF000, 0x16) 56 #define BRP_Main_ErrUpload BRP_ERR_STATUS(0xF000, 0x17) 60 #define BRP_Main_ErrUnsupportedFirmware BRP_ERR_STATUS(0xF000, 0x18) 64 #define BRP_Main_ErrAlreadyUpToDate BRP_ERR_STATUS(0xF000, 0x19) 68 #define BRP_Main_ErrMissingConfigSecurityCode BRP_ERR_STATUS(0xF000, 0x1A) 72 #define BRP_Main_ErrInvalidEccKey BRP_ERR_STATUS(0xF000, 0x1B) 76 #define BRP_Main_ErrVerify BRP_ERR_STATUS(0xF000, 0x1C) 77 #ifdef BALTECH_SDK_INTERNAL 82 brp_Main_Bf2Upload_ResultCode* ResultCode;
83 unsigned* InvertedResultCode;
84 } brp_Main_Bf2Upload_t;
95 #ifdef BRP_SUPPORT_LEGACY_METHODS 96 brp_errcode brp_Main_Bf2Upload(
brp_protocol protocol,
brp_buf Bf2Line,
size_t Bf2Line_len, brp_Main_Bf2Upload_ResultCode* ResultCode,
unsigned* InvertedResultCode);
98 brp_errcode brp_Main_Bf2Upload(brp_Main_Bf2Upload_t params);
100 #endif // BALTECH_SDK_INTERNAL 101 #ifdef BALTECH_SDK_INTERNAL 104 } brp_Main_SwitchFW_t;
111 #ifdef BRP_SUPPORT_LEGACY_METHODS 114 brp_errcode brp_Main_SwitchFW(brp_Main_SwitchFW_t params);
116 #endif // BALTECH_SDK_INTERNAL 117 #ifdef BALTECH_SDK_INTERNAL 123 } brp_Main_MatchPlatformId2_t;
135 #ifdef BRP_SUPPORT_LEGACY_METHODS 138 brp_errcode brp_Main_MatchPlatformId2(brp_Main_MatchPlatformId2_t params);
140 #endif // BALTECH_SDK_INTERNAL 141 #ifdef BALTECH_SDK_INTERNAL 145 size_t VersionDesc_len;
146 } brp_Main_IsFirmwareUpToDate_t;
155 #ifdef BRP_SUPPORT_LEGACY_METHODS 158 brp_errcode brp_Main_IsFirmwareUpToDate(brp_Main_IsFirmwareUpToDate_t params);
160 #endif // BALTECH_SDK_INTERNAL 177 #ifdef BRP_SUPPORT_LEGACY_METHODS 224 #ifdef BRP_SUPPORT_LEGACY_METHODS 225 brp_errcode brp_Main_Bf3UploadContinue(
brp_protocol protocol,
unsigned DataAdr,
brp_buf Data,
size_t Data_len,
bool* Reconnect,
bool* Continue,
unsigned* ReqDataAdr,
unsigned* ReqDataLen,
bool* ContainsEstimation,
bool* ContainsReconnectRetryTimeout,
unsigned* ReconnectRetryTimeout,
unsigned* EstimatedNumberOfBytes,
unsigned* EstimatedTimeOverhead);
brp_errcode brp_Main_Bf3UploadStart(brp_Main_Bf3UploadStart_t params)
This command starts the upload of a BEC2/BF3 file to update the reader's configuration and/or firmwar...
unsigned * EstimatedTimeOverhead
unsigned int brp_errcode
This type is used library-wide for passing error codes in the return value of functions.
unsigned * EstimatedNumberOfBytes
struct brp_protocol_t * brp_protocol
This is a generic handle of a protocol.
bool * ContainsEstimation
unsigned * ReconnectRetryTimeout
brp_errcode brp_Main_Bf3UploadContinue(brp_Main_Bf3UploadContinue_t params)
This command is used to transfer the data of a BEC2/BF3 file block by block to the reader...
unsigned char * brp_buf
represents a pointer to a protocol data buffer.
bool * ContainsReconnectRetryTimeout