PebbleOS
Loading...
Searching...
No Matches
Data Fields
Npm1300Ops_t Struct Reference

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.
 

Detailed Description

Extra nPM1300 operations for other drivers.

Field Documentation

◆ dischg_limit_ma_set

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.

◆ gpio_set

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.

◆ ldo2_set_enabled

bool(* Npm1300Ops_t::ldo2_set_enabled) (bool enabled)

Switch load switch 2.

Returns true on success.


The documentation for this struct was generated from the following file: