PebbleOS v4.47.0-1362-gd278268fe
Loading...
Searching...
No Matches
SF32LB TSEN

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_sensor sensor 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_sensor, sensor) { \
.sensor = PBL_SENSOR_INIT(sym, _name, nullptr, &pbl_temp_sf32lb_ops, pbl_temp_sf32lb_chans, \
.base = (_base), .clk = _clk, .cfg = (_cfg), \
}
A sensor.
Definition driver.h:142
#define PBL_SENSOR_STATE_DEFINE(sym)
Define the class state of sensor sym, without batch buffers, for sensors that are only read.
Definition driver.h:170
#define PBL_SENSOR_MOUNT_IDENTITY
Identity mounting, for sensors aligned with the device or without vector types.
Definition driver.h:71
#define PBL_SENSOR_INIT(sym, _name, _parent, _ops, _chans, _events,...)
Initializer for the struct pbl_sensor of sensor sym.
Definition driver.h:206
SF32LB die temperature sensor.
Definition sf32lb.h:19

Define the temperature sensor.

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