Skip to main content

Module tsensor

Module tsensor 

Source
Expand description

Temperature Sensor (TSENSOR) driver for WS63.

The WS63 temperature sensor provides a 10-bit digital temperature code covering approximately -40°C to +125°C. It supports automatic refresh, high/low temperature thresholds, and over-temperature detection.

§Temperature calculation

Temperature code range: 114 to 896 (approximate). Temperature (°C) can be derived from the code using chip-specific calibration data. Without calibration, the raw code is provided.

§Interrupts

  • Conversion done interrupt
  • Out-of-threshold interrupt (temperature outside [low, high])
  • Over-temperature interrupt

Structs§

TempSensor
Temperature sensor driver.

Constants§

TEMP_CODE_MAX
TEMP_CODE_MIN
Temperature code range constants.