Lines Matching refs:volt
132 void PCA9420_GetRegulatorVolt(pca9420_modecfg_t *config, pca9420_regulator_mv_t *volt) in PCA9420_GetRegulatorVolt() argument
135 assert(volt); in PCA9420_GetRegulatorVolt()
140 volt->mVoltSw1 = 500U + (uint32_t)config->sw1OutVolt * 25U; in PCA9420_GetRegulatorVolt()
144 volt->mVoltSw1 = 1500U; in PCA9420_GetRegulatorVolt()
148 volt->mVoltSw1 = 1800U; in PCA9420_GetRegulatorVolt()
153 volt->mVoltSw2 = 1500U + (uint32_t)config->sw2OutVolt * 25U; in PCA9420_GetRegulatorVolt()
157 volt->mVoltSw2 = 2100U; in PCA9420_GetRegulatorVolt()
161 …volt->mVoltSw2 = 2700U + ((uint32_t)config->sw2OutVolt - (uint32_t)kPCA9420_Sw2OutVolt2V700) * 25U; in PCA9420_GetRegulatorVolt()
165 volt->mVoltSw2 = 3300U; in PCA9420_GetRegulatorVolt()
170 …volt->mVoltLdo1 = 1700U + (((uint32_t)config->ldo1OutVolt) >> PCA9420_MODECFG_2_LDO1_OUT_SHIFT) * … in PCA9420_GetRegulatorVolt()
174 volt->mVoltLdo1 = 1900U; in PCA9420_GetRegulatorVolt()
179 volt->mVoltLdo2 = 1500U + (uint32_t)config->ldo2OutVolt * 25U; in PCA9420_GetRegulatorVolt()
183 volt->mVoltLdo2 = 2100U; in PCA9420_GetRegulatorVolt()
187 …volt->mVoltLdo2 = 2700U + ((uint32_t)config->ldo2OutVolt - (uint32_t)kPCA9420_Ldo2OutVolt2V700) * … in PCA9420_GetRegulatorVolt()
191 volt->mVoltLdo2 = 3300U; in PCA9420_GetRegulatorVolt()