PebbleOS
Loading...
Searching...
No Matches
pbl_regulator_ops Struct Reference

Regulator driver operations. More...

#include <regulator.h>

Data Fields

int(* init )(const struct pbl_regulator *reg)
 Optional.
 
int(* enable )(const struct pbl_regulator *reg)
 Switch the rail on.
 
int(* disable )(const struct pbl_regulator *reg)
 Switch the rail off.
 

Detailed Description

Regulator driver operations.

Field Documentation

◆ disable

int(* pbl_regulator_ops::disable) (const struct pbl_regulator *reg)

Switch the rail off.

Returns 0 or a negative errno.

◆ enable

int(* pbl_regulator_ops::enable) (const struct pbl_regulator *reg)

Switch the rail on.

Returns 0 or a negative errno.

◆ init

int(* pbl_regulator_ops::init) (const struct pbl_regulator *reg)

Optional.

Apply the rail's static configuration. Returns 0 or a negative errno.


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