I have absolutely no experience or knowledge regarding hardware registers and how to interact with them through code. However, my current C # project requires me to read temperatures from the chip on SMBus, and I think I will need to get my hands dirty. If you want to know, the temperature sensor is Winbond W83793G.
I have a long way to go, but I started by looking at this document on page 5: smbus.org/specs/smbb10.pdf
It seems that the first step to completing my task is to write to the following hardware registers: AX, BH, BL, CH, CL and read the return values from the following: Carry, AH, AL, BL, CH, CL, DX. Using this, I can determine if the "SMBus BIOS Interface" is available. More importantly, if I can do much with C #, I can follow the rest of the documentation to ultimately read from Winbond W83793G and pull out the values I want from the temperature sensors. And no, OpenHardwareMonitor does not currently support SMBus, so I cannot reference it for code.
So my main question is: what is a simple and efficient way to read and write to hardware registers using C #?
And besides, if you could provide any feedback on my specific chip reading problem, that would be a bonus for me, and I would really appreciate it!
Dalal source share