AM263x MCU+ SDK  10.00.00
hsmclient_utils.c File Reference

Functions

static void HsmClient_getSocType (uint8_t soc_type, char *parsedVer)
 Parse SOC Type. More...
 
static void HsmClient_getDeviceType (uint8_t device_type, char *parsedVer)
 Parse Device Type. More...
 
static void HsmClient_getHSMType (uint8_t hsm_type, char *parsedVer)
 Parse Binary Type. More...
 
static void HsmClient_getBinType (uint8_t bin_type, char *parsedVer)
 Parse Binary Type. More...
 
static uint8_t * lib_itoa (uint32_t value, uint8_t *str, uint32_t base)
 Integer to alphanumberic conversion. More...
 
int32_t HsmClient_parseVersion (HsmVer_t *tifsMcuVer, char *parsedVer)
 Parses Version string. More...
 

Variables

static const char soc_type_arr [NUM_SOC_TYPE][8]
 

Function Documentation

◆ HsmClient_getSocType()

static void HsmClient_getSocType ( uint8_t  soc_type,
char *  parsedVer 
)
static

Parse SOC Type.

Parameters
soc_typeSOC Type from version struct.
parsedVerPointer to parsed string.

◆ HsmClient_getDeviceType()

static void HsmClient_getDeviceType ( uint8_t  device_type,
char *  parsedVer 
)
static

Parse Device Type.

Parameters
device_typeDevice Type from version struct.
parsedVerPointer to parsed string.

◆ HsmClient_getHSMType()

static void HsmClient_getHSMType ( uint8_t  hsm_type,
char *  parsedVer 
)
static

Parse Binary Type.

Parameters
hsm_typeBinary Type from version struct.
parsedVerPointer to parsed string.

◆ HsmClient_getBinType()

static void HsmClient_getBinType ( uint8_t  bin_type,
char *  parsedVer 
)
static

Parse Binary Type.

Parameters
bin_typeBinary Type from version struct.
parsedVerPointer to parsed string.

◆ lib_itoa()

static uint8_t * lib_itoa ( uint32_t  value,
uint8_t *  str,
uint32_t  base 
)
static

Integer to alphanumberic conversion.

Parameters
valueNumber to convert to string.
strPointer to buffer large enough to hold number.
baseBase to convert number to.
Returns
Pointer to str.

Variable Documentation

◆ soc_type_arr

const char soc_type_arr[NUM_SOC_TYPE][8]
static
Initial value:
= {
"AM263x",
"AM263p",
"AM273x",
"AWR294x",
"F29H85x"
}