Class Tmp117.Sim
A TMP117 that is not there, for a bus with nothing plugged in.
public static class Tmp117.Sim
- Inheritance
-
Tmp117.Sim
- Inherited Members
Remarks
Its configuration register keeps the flags the part sets for itself whatever a driver writes, with the data-ready flag set, so every conversion reads as finished.
Fields
Celsius
The temperature Part(byte) reports.
public const float Celsius = 21.25
Field Value
Methods
Part(byte)
Makes a part reading Celsius.
public static WordPart Part(byte address)
Parameters
addressbyteThe address it answers to.
Returns
- WordPart
The part, to put on a simulated bus.
Reporting(byte, float)
Makes a part that reads what it is asked to.
public static WordPart Reporting(byte address, float celsius)
Parameters
addressbyteThe address it answers to.
celsiusfloatThe temperature it reports, which lands on the nearest 7.8125 millidegrees.
Returns
- WordPart
The part, to put on a simulated bus.