|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
TI BQ2589X battery charger interface. More...
Files | |
| file | bq2589x.h |
| Header file for the TI BQ2589X MFD driver. | |
Functions | |
| int | mfd_bq2589x_reg_update (const struct device *dev, uint8_t reg, uint8_t mask, uint8_t val) |
| Update selected bits in a BQ2589X register. | |
TI BQ2589X battery charger interface.
#include <zephyr/drivers/mfd/bq2589x.h>
Update selected bits in a BQ2589X register.
The child devices share some registers, so they do all read-modify-write accesses through this function.
| dev | BQ2589X MFD device |
| reg | Register address |
| mask | Mask of the bits to update |
| val | New value of the bits, already shifted into place |