MegaRAC Hardware Health Function SDK
14
HHF Access Script
This is the most important HVL data that SDK creates. The
access script tells how to access a particular type of
hardware. This script is generic to cover almost all types of
hardware access. It follows the method described below.
Primary Access
Operation in order
Final Access
Each script command for hardware access has three steps.
They are defined as HVL OpCodes.
Step 1
This is the primary access, which can be hardware or
simply data. It means the primary access from hardware or
read from the data supplied by the user.
For example, primary hardware access can be of a type of
hardware, Read Port, and a method, either I2C, Standard
I/O or Memory mapped I/O. This also can be from the data
supplied by the user; in that case it is set to Read Local
Data. Also, it can be from the last hardware access; in that
case it is set to Read Global Data.
Step 2
In this step, the data is prepared by up to three logical
operations. The operations are AND, OR, and XOR, which
take place in that order.
Step 3
In this step, the final prepared data is used. The data can be
written to a hardware or stored as a global variable for
future access.
These three-step commands build a complete HHF access
script.