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

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

#include <temperature.h>

Data Fields

int(* init )(const struct pbl_temp *temp)
 Optional.
 
int(* read )(const struct pbl_temp *temp, int32_t *millicelsius)
 Read the temperature, in millidegrees Celsius.
 

Detailed Description

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

Field Documentation

◆ init

int(* pbl_temp_ops::init) (const struct pbl_temp *temp)

Optional.

Bring the hardware up.

◆ read

int(* pbl_temp_ops::read) (const struct pbl_temp *temp, int32_t *millicelsius)

Read the temperature, in millidegrees Celsius.


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