tsens_mC_to_hw(9)
π tsens_mC_to_hw(9) π
okay so bestie, this page is from the Kernel API Manual β and it's giving "temperature converter, but make it hardware" energy. No cap. π
πΈ NAME πΈ
tsens_mC_to_hw β Convert temperature to hardware register value
β¨ SYNOPSIS β¨
int tsens_mC_to_hw (const struct tsens_sensor *s , int temp );
π ARGUMENTS π
sβ Pointer to sensor struct. lowkey essential.tempβ temperature in milliCelsius to be programmed to hardware. yes bestie, milliCelsius, not a typo.
π DESCRIPTION π
bestie, this function outputs the value to be written to hardware in ADC code or deciCelsius depending on IP version. that's the whole vibe β the IP version decides which flavor comes out, periodt. π₯
π₯ RETURN π₯
ADC code or temperature in deciCelsius. slay.
π¦ SEE ALSO π¦
- Kernel file
./drivers/thermal/qcom/tsens.c struct tsens_irq_data(9)tsens_read_temp(9)tsens_hw_to_mC(9)tsens_set_interrupt(9)tsens_threshold_violated(9)tsens_critical_irq_thread(9)tsens_irq_thread(9)tsens_combined_irq_thread(9)
source/version: ./drivers/thermal/qcom β date: October 2026. bye bestie, go convert some temps π
π«Ά
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms