SysPciWriteValue (FUN)

FUNCTION SysPciWriteValue : RTS_IEC_RESULT

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

InOut:

Scope

Name

Type

Comment

Return

SysPciWriteValue

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 entry</param>

pbyData

POINTER TO BYTE

<param name=”pbyData” type=”IN”>Pointer to data to write to PCI</param>

usSize

WORD

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