This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2340R5: VBATMon driver for zephyr

Part Number: CC2340R5
Other Parts Discussed in Thread: BQ27Z746

Hello,

Is there a zephyr driver planned for the vbatmon subsystem? Or if there isn't is it initialized somewhere so a customer could just read the voltage value?

Munan

  • Hi !

    There is currently no driver for an vbatmon subsytem for Zephyr on the CC2340R5.

    Some batteries like the BQ27Z746 from TI has a fuel gauge driver in Zephyr, allowing you to use the common Zephyr API for this. If you just have a regular battery where you want to measure the voltage and take decisions based on this voltage, you can simply use the ADC driver in Zephyr that the CC2340R5 supports. You then connect the ADC pin and the battery, run some ADC measurements from time to time, and estimate the battery level based on the voltage.

    Kind regards,
    Lea