SysPciReadValue (FUN)

FUNCTION SysPciReadValue : RTS_IEC_RESULT

<description>Read one PCI config value This function allows to read single configuration values of a PCI card by returning a pointer on the associated memory address (pbyData). Thereby the associated bus entry is identified via the bus, device and function number. The component to be read out is indicated by the PciOffset. </description> <result><p>RESULT: Returns the runtime system error code (see CmpErrors.library).</p></result>

InOut:

Scope

Name

Type

Comment

Return

SysPciReadValue

RTS_IEC_RESULT

Input

usBus

WORD

<param name=”usBus” type=”IN”>PCI bus number (index)</param>

usDevice

WORD

<param name=”usDevice” type=”IN”>PCI device number (index)</param>

usFunction

WORD

<param name=”usFunction” type=”IN”>PCI function number (index)</param>

usPciOffset

WORD

<param name=”usPciOffset” type=”IN”>Offset in the PCI config</param>

pbyData

POINTER TO BYTE

<param name=”pbyData” type=”OUT”>Pointer to data to read to PCI</param>

usSize

WORD

<param name=”usSize” type=”IN”>Size in byte of data to read</param>