PebbleOS v4.47.0
Loading...
Searching...
No Matches
temp.h File Reference
#include <stdint.h>
#include <pbl/device.h>
#include <pbl/kernel/mutex.h>

Data Structures

struct  pbl_temp_ops
 Temperature sensor driver operations, called with the device lock held. More...
 
struct  pbl_temp_state
 Temperature sensor runtime state. More...
 
struct  pbl_temp
 Temperature sensor. More...
 

Macros

#define PBL_TEMP_STATE_DEFINE(sym)
 Define the class state of a temperature sensor.
 
#define PBL_TEMP_INIT(sym, _name, _parent, _deps, _ops)
 Initialize a struct pbl_temp.
 

Functions

int pbl_temp_read (const struct pbl_temp *temp, int32_t *millicelsius)
 Read the temperature.
 

Variables

const struct pbl_temp *const DIE_TEMP
 The board's die temperature sensor.