User`s manual

B.3 WDC High Level API
236
B.3.18 WDC_ReadMemXXX()
PURPOSE
WDC_ReadMem8/16/32/64()
reads 1 byte (8 bits) / 2 bytes (16 bits) / 4 bytes (32
bits) / 8 bytes (64 bits), respectively, from a specified memory address. The address is
read directly in the calling context (user mode / kernel mode).
PROTOTYPE
BYTE WDC_ReadMem8 ( addr , o f f ) ;
WORD WDC_ReadMem16( addr , o f f ) ;
UINT32 WDC_ReadMem32( addr , o f f ) ;
UINT64 WDC_ReadMem64( addr , o f f ) ;
Note: The
WDC_ReadMemXXX
APIs are implemented as macros. The prototypes above
use functions declaration syntax to emphasize the expected return values.
PARAMETERS
Name Type Input/Output
addr DWORD Input
off DWORD Input
DESCRIPTION
Name Description
addr The memory address space to read from
off The offset from the beginning of the specified address space
(
addr
) to read from
RETURN VALUE
Returns the data that was read from the specified address.