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
SysPciReadValueRTS_IEC_RESULTInput
usBusWORD<param name=”usBus” type=”IN”>PCI bus number (index)</param>
usDeviceWORD<param name=”usDevice” type=”IN”>PCI device number (index)</param>
usFunctionWORD<param name=”usFunction” type=”IN”>PCI function number (index)</param>
usPciOffsetWORD<param name=”usPciOffset” type=”IN”>Offset in the PCI config</param>
pbyDataPOINTER TO BYTE
<param name=”pbyData” type=”OUT”>Pointer to data to read to PCI</param>
usSizeWORD<param name=”usSize” type=”IN”>Size in byte of data to read</param>