viPeek16(3)
HP-UX
NAME
viPeek16 − Reads a 16-bit value from the specified address location
SYNOPSIS
viPeek16(ViSession vi, ViAddr addr, ViPUInt16 val16);
Description
This function reads a 16-bit value from the address location specified in addr. The address must be a valid memory address in the current process mapped by a previous viMapAddress call.
Parameters
vi An input parameter. Unique logical identifier to a session.
addr An input parameter. Specifies the source address to read the value.
val16 An output parameter. Data read from bus (16-bits).
NOTE ViAddr is defined as a void *. To do pointer arithmetic, you must cast this to an appropriate type (ViUInt8). Then be sure the offset is correct for the type of pointer you are using. For example, (ViUInt8 *)addr + 4 points to the same location as (ViUInt16 *)addr + 2.
Return Values
None.
See Also
viPoke8 and viPoke16, viMapAddress
AUTHOR
viPeek16 was developed by HP
Hewlett-Packard Comapny — September 29, 1999