Lines Matching refs:configs

197                               const pca9420_modecfg_t *configs,  in PCA9420_WriteModeConfigs()  argument
228 …modeCfg[i * 4U] = (uint8_t)(((uint32_t)(configs[i].shipModeEnable)) | ((uint32_t)(configs[i].… in PCA9420_WriteModeConfigs()
229 ((uint32_t)(configs[i].sw1OutVolt))); in PCA9420_WriteModeConfigs()
230 …modeCfg[i * 4U + 1U] = (uint8_t)(((uint32_t)(configs[i].onCfg)) | ((uint32_t)(configs[i].sw2OutVol… in PCA9420_WriteModeConfigs()
231 modeCfg[i * 4U + 2U] = (uint8_t)(((uint32_t)(configs[i].ldo1OutVolt)) | in PCA9420_WriteModeConfigs()
232 … (configs[i].enableSw1Out ? (uint32_t)kPCA9420_RegulatorSwitch1 : 0U) | in PCA9420_WriteModeConfigs()
233 … (configs[i].enableSw2Out ? (uint32_t)kPCA9420_RegulatorSwitch2 : 0U) | in PCA9420_WriteModeConfigs()
234 … (configs[i].enableLdo1Out ? (uint32_t)kPCA9420_RegulatorLdo1 : 0U) | in PCA9420_WriteModeConfigs()
235 … (configs[i].enableLdo2Out ? (uint32_t)kPCA9420_RegulatorLdo2 : 0U)); in PCA9420_WriteModeConfigs()
236 …modeCfg[i * 4U + 3U] = (uint8_t)(((uint32_t)(configs[i].wdogTimerCfg)) | ((uint32_t)(configs[i].ld… in PCA9420_WriteModeConfigs()
248 pca9420_modecfg_t *configs, in PCA9420_ReadModeConfigs() argument
285configs[i].shipModeEnable = (pca9420_ship_en_t)(uint8_t)(modeCfg[i * 4U] & PCA9420_MODECFG_0_SHIP_… in PCA9420_ReadModeConfigs()
286configs[i].modeSel = (pca9420_mode_sel_t)(uint8_t)(modeCfg[i * 4U] & PCA9420_MODECFG_0_MODE_CTR… in PCA9420_ReadModeConfigs()
287configs[i].sw1OutVolt = (pca9420_sw1_out_t)(uint8_t)(modeCfg[i * 4U] & PCA9420_MODECFG_0_SW1_OUT_M… in PCA9420_ReadModeConfigs()
289configs[i].onCfg = (pca9420_on_cfg_t)(uint8_t)(modeCfg[i * 4U + 1U] & PCA9420_MODECFG_1_ON_CF… in PCA9420_ReadModeConfigs()
290configs[i].sw2OutVolt = (pca9420_sw2_out_t)(uint8_t)(modeCfg[i * 4U + 1U] & PCA9420_MODECFG_1_SW2_… in PCA9420_ReadModeConfigs()
292configs[i].ldo1OutVolt = (pca9420_ldo1_out_t)(uint8_t)(modeCfg[i * 4U + 2U] & PCA9420_MODECFG_2_L… in PCA9420_ReadModeConfigs()
293configs[i].enableSw1Out = ((modeCfg[i * 4U + 2U] & ((uint8_t)kPCA9420_RegulatorSwitch1)) != 0U) ? … in PCA9420_ReadModeConfigs()
294configs[i].enableSw2Out = ((modeCfg[i * 4U + 2U] & ((uint8_t)kPCA9420_RegulatorSwitch2)) != 0U) ? … in PCA9420_ReadModeConfigs()
295configs[i].enableLdo1Out = ((modeCfg[i * 4U + 2U] & ((uint8_t)kPCA9420_RegulatorLdo1)) != 0U) ? tr… in PCA9420_ReadModeConfigs()
296configs[i].enableLdo2Out = ((modeCfg[i * 4U + 2U] & ((uint8_t)kPCA9420_RegulatorLdo2)) != 0U) ? tr… in PCA9420_ReadModeConfigs()
298configs[i].wdogTimerCfg = (pca9420_wd_timer_t)(uint8_t)(modeCfg[i * 4U + 3U] & PCA9420_MODECFG_3_W… in PCA9420_ReadModeConfigs()
299configs[i].ldo2OutVolt = (pca9420_ldo2_out_t)(uint8_t)(modeCfg[i * 4U + 3U] & PCA9420_MODECFG_3_L… in PCA9420_ReadModeConfigs()