tsens_mC_to_hw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 πŸ¦‹


source/version: ./drivers/thermal/qcom β€” date: October 2026. bye bestie, go convert some temps πŸ’…πŸ«Ά

πŸ“¦ where this page comes from