PebbleOS v4.47.0
Loading...
Searching...
No Matches

SiFli SF32LB die temperature sensor (TSEN). More...

Data Structures

struct  pbl_temp_sf32lb
 SF32LB die temperature sensor. More...
 

Macros

#define PBL_TEMP_SF32LB_DEFINE(sym, _name, _base, _clk, _cfg)
 Define the temperature sensor.
 

Detailed Description

SiFli SF32LB die temperature sensor (TSEN).


Data Structure Documentation

◆ pbl_temp_sf32lb

struct pbl_temp_sf32lb

SF32LB die temperature sensor.

Data Fields
uintptr_t base Registers.
uintptr_t cfg HPSYS configuration registers, holding the analog bandgap enable.
struct pbl_clk clk Clock.
struct pbl_temp temp Temperature sensor.

Macro Definition Documentation

◆ PBL_TEMP_SF32LB_DEFINE

#define PBL_TEMP_SF32LB_DEFINE (   sym,
  _name,
  _base,
  _clk,
  _cfg 
)
Value:
PBL_DEVICE_INSTANCE(sym, struct pbl_temp_sf32lb, struct pbl_temp, temp) { \
.temp = PBL_TEMP_INIT(sym, _name, nullptr, nullptr, &pbl_temp_sf32lb_ops), .base = (_base), \
.clk = _clk, .cfg = (_cfg), \
}
SF32LB die temperature sensor.
Definition sf32lb.h:19
Temperature sensor.
Definition temp.h:46
#define PBL_TEMP_INIT(sym, _name, _parent, _deps, _ops)
Initialize a struct pbl_temp.
Definition temp.h:81
#define PBL_TEMP_STATE_DEFINE(sym)
Define the class state of a temperature sensor.
Definition temp.h:68

Define the temperature sensor.

Parameters
symSymbol.
_nameDevice name.
_baseRegisters.
_clkClock, from PBL_CLK().
_cfgHPSYS configuration registers.