Searched refs:CHGR_BASE (Results 1 – 1 of 1) sorted by relevance
/Zephyr-latest/drivers/sensor/nordic/npm1300_charger/ |
D | npm1300_charger.c | 47 #define CHGR_BASE 0x03U macro 281 ret = mfd_npm1300_reg_read(config->mfd, CHGR_BASE, CHGR_OFFSET_CHG_STAT, &data->status); in npm1300_charger_sample_fetch() 286 ret = mfd_npm1300_reg_read(config->mfd, CHGR_BASE, CHGR_OFFSET_ERR_REASON, &data->error); in npm1300_charger_sample_fetch() 335 config->mfd, CHGR_BASE, CHGR_OFFSET_NTC_TEMPS + (idx * 2U), in set_ntc_thresholds() 358 config->mfd, CHGR_BASE, CHGR_OFFSET_DIE_TEMPS + (idx * 2U), in set_dietemp_thresholds() 383 ret = mfd_npm1300_reg_read(config->mfd, CHGR_BASE, CHGR_OFFSET_EN_SET, &data); in npm1300_charger_attr_get() 465 return mfd_npm1300_reg_write(config->mfd, CHGR_BASE, CHGR_OFFSET_EN_CLR, in npm1300_charger_attr_set() 470 ret = mfd_npm1300_reg_write(config->mfd, CHGR_BASE, CHGR_OFFSET_ERR_CLR, 1U); in npm1300_charger_attr_set() 474 return mfd_npm1300_reg_write(config->mfd, CHGR_BASE, CHGR_OFFSET_EN_SET, 1U); in npm1300_charger_attr_set() 537 ret = mfd_npm1300_reg_write(config->mfd, CHGR_BASE, CHGR_OFFSET_VTERM, idx); in npm1300_charger_init() [all …]
|