Hhf Script Example - American Megatrends 780 Hardware Manual

Hardware health function sdk
Hide thumbs Also See for 780:
Table of Contents

Advertisement

HHF Script Example

This section provides an example of the HHF Script. In
this example, we read the temperature on device LM78 on
the I2C bus with the slave ID 0x2C. This requires two
access scripts.
1st Access Script:
Select Read Local Data as the primary access.
Select I2C as the access method.
Select I2C slave ID as the Port value. Set the value as
0x2C.
Enter 0x20 (LM78 temperature register) in the Local
Data field.
Select unsigned byte as the data type.
Select Write Back To Port as the Final Access.
2nd Access Script:
Select Read Port as the primary access.
Set I2C as the access method.
Enter 0x2C as the Port value.
Select signed byte as the data type.
Select Save To Global Data as the final access. This
reads the final value from the device to the global data.
All read devices must end by reading the value to the
global data.
Using the MegaRAC Hardware Health Function
15

Advertisement

Table of Contents
loading

This manual is also suitable for:

Megarac

Table of Contents