PMIC configuration structure. Contains various parameters which are needed to prepare PMIC driver handle using Valid params. like, PMIC device type, PMIC interface mode, Slave address, various application defined API function pointers for LLD and Critical sections. Application has to set the corresponding bit in validParams structure member to update the driver with Pmic_CoreCfg_t structure fields. For Example, If the Application needs to configure the PMIC driver pmicDeviceType member of the structure then application has to set PMIC_CFG_DEVICE_TYPE_VALID bit of validParams struct and then call pmic_init().
- Parameters
-
validParams | Validate params Bits. Selection of structure parameters to be set, from the combination of Pmic_ValidParamCfg and the corresponding member value must be updated. |
instType | Instance type. For Valid Values: Pmic_InstType. |
pmicDeviceType | PMIC device type. For Valid Values: Pmic_DeviceType Valid only when PMIC_CFG_DEVICE_TYPE_VALID bit of validParams is set. |
commMode | Interface mode - Single I2C, Dual I2C or SPI. For Valid Values: Pmic_CommMode. Valid only when PMIC_CFG_COMM_MODE_VALID bit of validParams is set. |
slaveAddr | Main Interface Slave Address. Valid only when PMIC_CFG_SLAVEADDR_VALID bit of validParams is set. |
qaSlaveAddr | WDOG QA Interface Slave Address. Valid only when PMIC_CFG_QASLAVEADDR_VALID bit of validParams is set. |
nvmSlaveAddr | NVM Slave Address which provides only read access to CRC status of Page-1 Application shall use this slave address to read only CRC status. Application shall not do any write operations using this slave address Valid only when PMIC_CFG_NVMSLAVEADDR_VALID bit of validParams is set. |
i2c1Speed | Configures I2C1 Speed when commMode is Single or Dual I2C For Valid Values: Pmic_I2CSpeedSel Valid only when PMIC_CFG_I2C1_SPEED_VALID bit is set |
i2c2Speed | Configures I2C2 Speed when commMode is Dual I2C For Valid Values: Pmic_I2CSpeedSel Valid only when PMIC_CFG_I2C2_SPEED_VALID bit is set |
pFnPmicCommIoRead | Pointer to I2C/SPI Comm LLD Read Function. Valid only when PMIC_CFG_COMM_IO_RD_VALID bit of validParams is set. |
pFnPmicCommIoWrite | Pointer to I2C/SPI Comm LLD Write Function. Valid only when PMIC_CFG_COMM_IO_WR_VALID bit of validParams is set. |
pCommHandle | Pointer to Handle for I2C1/SPI Main Interface. Valid only when PMIC_CFG_COMM_HANDLE_VALID bit of validParams is set. |
pQACommHandle | Pointer to Handle for I2C2-QA Interface. Valid only when PMIC_CFG_QACOMM_HANDLE_VALID bit of validParams is set. |
pFnPmicCritSecStart | Pointer to Pmic Critical-Section Start Function. Valid only when PMIC_CFG_CRITSEC_START_VALID bit of validParams is set. |
pFnPmicCritSecStop | Pointer to Pmic Critical-Section Stop Function. Valid only when PMIC_CFG_CRITSECSTOP_VALID bit of validParams is set. |