viPoke16(3)
HP-UX
NAME
viPoke16 − Stores a 16-bit value into memory
SYNOPSIS
viPoke16(ViSession vi, ViAddr addr, ViUInt16 val16);
Description
This function takes a 16-bit value and stores its content to the address pointed to by 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 destination address to store the value.
val16 An input 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 or ViUInt16). 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
viPeek8 and viPeek16, viMapAddress
AUTHOR
viPoke16 was developed by HP
Hewlett-Packard Comapny — September 29, 1999