qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] Usage of Temperature Sensor (TMP105)


From: andrzej zaborowski
Subject: Re: [Qemu-devel] Usage of Temperature Sensor (TMP105)
Date: Mon, 3 Dec 2012 23:43:54 +0100

Hi Alex,

On 1 December 2012 20:39, Alex Horn <address@hidden> wrote:
> Hello all,
>
> As I have been browsing through QEMU's source code, I've noticed a
> hardware model for a temperature sensor called TMP105. This model
> implements the function tmp105_set(I2CSlave *i2c, int temp) declared
> in i2c.h [0, 1].
>
> Surprisingly, however, I cannot find any code which calls this setter
> function despite the fact that "CONFIG_TMP105=y" in at least one
> target (e.g. [2]).
>
> I am keen to learn who uses this virtual device, i.e. who calls
> tmp105_set(). This may answer my question if there exists a
> "third-party" model which could simulate temperature changes in the
> chip.

Most likely the function has never been in use.  It is there for
completeness of the API.  I was considering using it as a qemu monitor
command if there is ever need to test the guest under changing
temperature (e.g. some UI elements showing temperature changes).

Cheers



reply via email to

[Prev in Thread] Current Thread [Next in Thread]