 |
HT32SX Monarch Scan
Monarch Scan application for HT32SX
|
Go to the documentation of this file.
24 #ifndef RETRIEVER_API_H
25 #define RETRIEVER_API_H
31 typedef uint8_t retr_error_t;
35 KEY_ENC_VARIABLE = 0x02,
88 retr_error_t enc_utils_encrypt(uint8_t* encrypted_data, uint8_t* data_to_encrypt, uint16_t data_len, uint8_t* key, uint8_t useExternalKey);
retr_error_t enc_utils_get_id(uint8_t *id)
Gets the ID from the EEPROM on the board.
retr_error_t enc_utils_set_test_id(uint8_t en)
Switch the to the test ID 0xFEDCBA98.
retr_error_t enc_utils_set_test_key(uint8_t en)
Switch the to the test KEY 0x0123456789ABCDEF0123456789ABCDEF.
uint8_t enc_utils_retrieve_data_from_flash(NVM_BoardDataType *nvmBoardData)
Retrieve board informations accordint to the NVM_BoardDataType and returns it to the caller.
retr_error_t enc_utils_set_public_key(uint8_t en)
Switch the encryption key to the public key: 0x00,0x11,0x22,0x33,0x44,0x55,0x66,0x77,...
retr_error_t enc_utils_get_initial_pac(uint8_t *pac)
Gets the PAC from the EEPROM on the board.
retr_error_t enc_utils_retrieve_data(uint32_t *id, uint8_t *pac, uint8_t *rcz)
Retrieve the ID, PAC and RCZ number of the board and returns it to the caller. The ID should be used ...
Record for board data.
Definition: nvm_api.h:140