INtime SDK Help
I/O functions

Functions which perform operations in I/O space. I/O functions include:

Function Operation
inbyte 8-bit input operation
inhword 16-bit input operation
inword 32-bit input operation
outbyte 8-bit output operation
outhword 16-bit output operation
outword 32-bit output operation
blockinbyte 8-bit input string operation
blockinhword 16-bit input string operation
blockinword 32-bit input string operation
blockoutbyte 8-bit output string operation
blockouthword 16-bit output string operation
blockoutword 32-bit output string operation
#include <rt.h>
BYTE inbyte (WORD port);
WORD inhword (WORD port);
DWORD inword (WORD port);
void outbyte (WORD port, BYTE value);
void outhword (WORD port, WORD value);
void outword (WORD port, DWORD value);
void blockinbyte (WORD port, BYTE *buffer, unsigned int length);
void blockinhword (WORD port, WORD *buffer, unsigned int length);
void blockinword (WORD port, DWORD *buffer, unsigned int length);
void blockoutbyte (WORD port, BYTE *buffer, unsigned int length);
void blockouthword (WORD port, WORD *buffer, unsigned int length);
void blockoutword (WORD port, DWORD *buffer, unsigned int length);

Parameters

port
I/O port address.
value
Data value to write.
buffer
Pointer to data area for block moves.
length
Number of items to move in block move.