ZI_PERCENTAGE_MAX
*percent = ((uint32_t)(val * ZI_PERCENTAGE_MAX));
uint32_t maximum = (frequency <= 100) ? 100 : ZI_PERCENTAGE_MAX;