|
PebbleOS
|
Extra nPM1300 operations for other drivers. More...
#include <npm1300.h>
Data Fields | |
| bool(* | gpio_set )(Npm1300GpioId_t id, bool is_high) |
| Drive a GPIO as an output. | |
| bool(* | ldo2_set_enabled )(bool enabled) |
| Switch load switch 2. | |
| bool(* | dischg_limit_ma_set )(uint32_t ilim_ma) |
| Set the discharge current limit in mA, 200 or 1000. | |
Extra nPM1300 operations for other drivers.
| bool(* Npm1300Ops_t::dischg_limit_ma_set) (uint32_t ilim_ma) |
Set the discharge current limit in mA, 200 or 1000.
Returns true on success.
| bool(* Npm1300Ops_t::gpio_set) (Npm1300GpioId_t id, bool is_high) |
Drive a GPIO as an output.
Only GPIO2 and GPIO3 are supported. Returns true on success.
| bool(* Npm1300Ops_t::ldo2_set_enabled) (bool enabled) |
Switch load switch 2.
Returns true on success.