PebbleOS v4.47.0-505-g4bbc630fa
Loading...
Searching...
No Matches
pbl_pressure_ops Struct Reference

Pressure sensor driver operations, called with the device lock held. More...

#include <pressure.h>

Data Fields

int(* init )(const struct pbl_pressure *pressure)
 Bring the hardware up.
 
int(* read )(const struct pbl_pressure *pressure, uint32_t *pa)
 Run one conversion: pressure in pascals.
 

Detailed Description

Pressure sensor driver operations, called with the device lock held.

Field Documentation

◆ init

int(* pbl_pressure_ops::init) (const struct pbl_pressure *pressure)

Bring the hardware up.

Returns 0, -ENODEV if the part does not answer, or a negative errno.

◆ read

int(* pbl_pressure_ops::read) (const struct pbl_pressure *pressure, uint32_t *pa)

Run one conversion: pressure in pascals.


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