Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ipeek(3) — HP-UX Instrument Control Library C.03.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

imap(3)

iread(3)

iwrite(3)

IPEEK(3)

HP-UX

NAME

ibpeek, iwpeek, ilpeek, ibpoke, iwpoke, ilpoke

SYNOPSIS

 #include <sicl.h>
 unsigned char ibpeek (addr); /* Byte Peek */
 unsigned char *addr;
 
 unsigned short iwpeek (addr); /* Word Peek */
 unsigned short *addr;
 
 unsigned long ilpeek (addr); /* Longword Peek */
 unsigned long *addr;
 
 void ibpoke (addr,val); /* Byte Poke */
 unsigned char *addr;
 unsigned char val;
 
 void iwpoke (addr,val); /* Word Poke */
 unsigned short *addr;
 unsigned short val;
 
 void ilpoke (addr,val); /* Longword Poke */
 unsigned long *addr;
 unsigned long val;
 

DESCRIPTION

Ibpeek, iwpeek, and ilpeek will read the value stored at the memory address pointed to by addr and return the result. 
 
Ibpoke, iwpoke, and ilpoke will take the given value and store it at the memory address pointed to by addr. 
 
These routines should only be used on interfaces which support mapping, (see imap(3)).
 
The address parameter must be a valid memory address for the current process (presumabley mapped in with the imap call). 
 
The iwpeek, ilpeek, iwpoke, and ilpoke routines will perform byte swapping (if necessary), so that VXI memory accesses will follow correct MOTOROLA byte ordering.
 
Note: These routines are actually macros which are defined in sicl.h. 

RETURN VALUE

Ibpeek, iwpeek, and ilpeek will return the result of the memory read. 
 

SEE ALSO

imap(3), iread(3), iwrite(3)

AUTHOR

ibpeek, iwpeek, ilpeek, ibpoke, iwpoke, and were developed by HP. 
 

Hewlett-Packard Company  —  May 05, 1994

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026