GetIoBitField32()

From PhoenixWiki

Jump to: navigation, search

This macro reads an I/O port and returns the extract bits.

Prototype

#define GetIoBitField32(Port, StartBit, EndBit)

Parameters

Parameter Description
Port An unsigned integer that specifies the I/O port to write.
StartBit An unsigned integer that specifies the lowest bit in the I/O port to extract. StartBit must be less than or equal to EndBit. StartBit must be less than sizeof(Value) * 8.
EndBit An unsigned integer that specifies the highest bit in the I/O port to extract. EndBit must be greater than or equal to EndBit. EndBit must be less than sizeof(Value) * 8.
Value An unsigned integer value to set in the specified bits.

Returns

The extracted value


Copyright (C) 2009 Phoenix Technologies Ltd. All Rights Reserved.

Personal tools