Table of Contents

Class Tmp117.Sim

Namespace
Pamoja.Sensors
Assembly
Pamoja.Sensors.dll

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

float

Methods

Part(byte)

Makes a part reading Celsius.

public static WordPart Part(byte address)

Parameters

address byte

The 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

address byte

The address it answers to.

celsius float

The temperature it reports, which lands on the nearest 7.8125 millidegrees.

Returns

WordPart

The part, to put on a simulated bus.