viPeek8(3)
HP-UX
NAME
viPeek8 − Reads an 8-bit value from the specified address location
SYNOPSIS
viPeek8(ViSession vi, ViAddr addr, ViPUInt8 val8);
Description
This function reads an 8-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.
val8 An output parameter. Data read from bus (8-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
viPeek8 was developed by HP
Hewlett-Packard Comapny — September 29, 1999