Runtime Enable/Disable of nPM1300 Charging

I’m using the Zephyr nordic,npm1300-charger driver on an nRF52840 to control the nPM1300 PMIC charger. At runtime I need to be able to turn charging on and off—on command, while the application is running—rather than via a build-time Devicetree flag.

Specifically, I need to invoke a function (or Zephyr API call) from my application code that:

  • Disables the charger so the battery stops charging immediately.

  • Re-enables the charger when desired.

I’m looking for the recommended Zephyr/NCS API or example code snippet to perform these operations at runtime. Are there particular sensor attributes or PMIC driver functions I should call? Any guidance on register sequences, required delays, or best practices would be greatly appreciated.

Thank you!

Parents Reply Children
No Data
Related