AM261x MCU+ SDK  26.00.00
hsmclient_utils.h File Reference

Go to the source code of this file.

Macros

#define SOC_TYPE_AM263X   0x1
 SOC TYPE FLAG for AM263X. More...
 
#define SOC_TYPE_AM263P   0x2
 SOC TYPE FLAG for AM263p. More...
 
#define SOC_TYPE_AM273X   0x3
 SOC TYPE FLAG for AM273x. More...
 
#define SOC_TYPE_AWR294X   0x4
 SOC TYPE FLAG for AWR294x. More...
 
#define SOC_TYPE_F29H85x   0x5
 SOC TYPE FLAG for F29H85x. More...
 
#define SOC_TYPE_AM261x   0x6
 SOC TYPE FLAG for AM261x. More...
 
#define NUM_SOC_TYPE   0x7
 Count of all supported SOC's. More...
 
#define DEVICE_TYPE_HS_FS   0x00
 Device type flag for HS-FS. More...
 
#define DEVICE_TYPE_HS_SE   0xFF
 Device type flag for HS-SE. More...
 
#define HSM_V1   0x1
 HSM Version flag. More...
 
#define BIN_TYPE_STANDARD   0x55
 Binary type flag for STANDARD. More...
 
#define BIN_TYPE_CUSTOM   0xAA
 Binary type flag for CUSTOM. More...
 
#define BIN_TYPE_OTPKW   0x33
 Binary type flag for OTPKW. More...
 
#define DEVICE_CONFIG_TYPE_SAFETY   (0U)
 Device configuration type - Safety configuration. More...
 
#define DEVICE_CONFIG_TYPE_SECURITY   (1U)
 Device configuration type - Security configuration. More...
 
#define DEVICE_CONFIG_TYPE_DEBUG   (2U)
 Device configuration type - Debug configuration. More...
 
#define DEVICE_CONFIG_TYPE_ALL   (0xFFU)
 Device configuration type - All configuration types. More...
 
#define FW_UPDATE_COMPLETE   (0x5A5A5A5AU)
 Firmware update complete value. More...
 
#define SECCFG_VALIDATION_SUCCESS   (0x5A5A5A5AU)
 SecCfg validation success value. More...
 
#define DEBUG_STATUS_DISABLED   (0x5A5A5A5AU)
 Debug status disabled value. More...
 
#define DEBUG_STATUS_ENABLED   (0xA5A5A5A5U)
 Debug status enabled value. More...
 
#define BOTH_BANK_INVALID   (0x0000FFFFU)
 Both banks invalid. More...
 
#define BOTH_BANKS_VALID   (0x0000B0B1U)
 Both banks valid. More...
 
#define ONLY_BANK0_VALID   (0x0000B0FFU)
 Only Bank0 valid. More...
 
#define ONLY_BANK1_VALID   (0x0000FFB1U)
 Only Bank1 valid. More...
 
#define BANK0_ACTIVE_VAL   (0xC9U)
 Bank0 active value. More...
 
#define BANK1_ACTIVE_VAL   (0x36U)
 Bank1 active value. More...
 

Functions

int32_t HsmClient_parseVersion (HsmVer_t *tifsMcuVer, char *parsedVer)
 Parses Version string. More...
 
int32_t HsmClient_parseDeviceConfig (uint32_t configType, uint32_t *configData, uint32_t configSize, char *parsedConfig)
 Parses Device Configuration data into a human-readable string. More...