Lines Matching refs:modeCfg

201     uint8_t modeCfg[16];  in PCA9420_WriteModeConfigs()  local
228modeCfg[i * 4U] = (uint8_t)(((uint32_t)(configs[i].shipModeEnable)) | ((uint32_t)(configs[i].… in PCA9420_WriteModeConfigs()
230modeCfg[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()
236modeCfg[i * 4U + 3U] = (uint8_t)(((uint32_t)(configs[i].wdogTimerCfg)) | ((uint32_t)(configs[i].ld… in PCA9420_WriteModeConfigs()
239 result = PCA9420_WriteRegs(handle, modeCfgRegBase, modeCfg, 4U * num); in PCA9420_WriteModeConfigs()
252 uint8_t modeCfg[16] = {0U}; in PCA9420_ReadModeConfigs() local
277 result = PCA9420_ReadRegs(handle, modeCfgRegBase, modeCfg, 4U * num); in PCA9420_ReadModeConfigs()
285 …configs[i].shipModeEnable = (pca9420_ship_en_t)(uint8_t)(modeCfg[i * 4U] & PCA9420_MODECFG_0_SHIP_… in PCA9420_ReadModeConfigs()
286 …configs[i].modeSel = (pca9420_mode_sel_t)(uint8_t)(modeCfg[i * 4U] & PCA9420_MODECFG_0_MODE_CTR… in PCA9420_ReadModeConfigs()
287 …configs[i].sw1OutVolt = (pca9420_sw1_out_t)(uint8_t)(modeCfg[i * 4U] & PCA9420_MODECFG_0_SW1_OUT_M… in PCA9420_ReadModeConfigs()
289 …configs[i].onCfg = (pca9420_on_cfg_t)(uint8_t)(modeCfg[i * 4U + 1U] & PCA9420_MODECFG_1_ON_CF… in PCA9420_ReadModeConfigs()
290 …configs[i].sw2OutVolt = (pca9420_sw2_out_t)(uint8_t)(modeCfg[i * 4U + 1U] & PCA9420_MODECFG_1_SW2_… in PCA9420_ReadModeConfigs()
292 …configs[i].ldo1OutVolt = (pca9420_ldo1_out_t)(uint8_t)(modeCfg[i * 4U + 2U] & PCA9420_MODECFG_2_L… in PCA9420_ReadModeConfigs()
293 …configs[i].enableSw1Out = ((modeCfg[i * 4U + 2U] & ((uint8_t)kPCA9420_RegulatorSwitch1)) != 0U) ? … in PCA9420_ReadModeConfigs()
294 …configs[i].enableSw2Out = ((modeCfg[i * 4U + 2U] & ((uint8_t)kPCA9420_RegulatorSwitch2)) != 0U) ? … in PCA9420_ReadModeConfigs()
295 …configs[i].enableLdo1Out = ((modeCfg[i * 4U + 2U] & ((uint8_t)kPCA9420_RegulatorLdo1)) != 0U) ? tr… in PCA9420_ReadModeConfigs()
296 …configs[i].enableLdo2Out = ((modeCfg[i * 4U + 2U] & ((uint8_t)kPCA9420_RegulatorLdo2)) != 0U) ? tr… in PCA9420_ReadModeConfigs()
298 …configs[i].wdogTimerCfg = (pca9420_wd_timer_t)(uint8_t)(modeCfg[i * 4U + 3U] & PCA9420_MODECFG_3_W… in PCA9420_ReadModeConfigs()
299 …configs[i].ldo2OutVolt = (pca9420_ldo2_out_t)(uint8_t)(modeCfg[i * 4U + 3U] & PCA9420_MODECFG_3_L… in PCA9420_ReadModeConfigs()