![Terasic DE10-Agiles User Manual Download Page 127](http://html1.mh-extra.com/html/terasic/de10-agiles/de10-agiles_user-manual_1088476127.webp)
DE10-Agilex
User Manual
127
www.terasic.com
January 29,
2021
PCIE_BAR PcieBar,
PCIE_ADDRESS PcieAddress,
uint32_t dwData);
Parameters:
hPCIE:
A PCIe handle return by PCIE_Open function.
PcieBar:
Specify the target BAR.
PcieAddress:
Specify the target address in FPGA.
dwData:
Specify a 32-bit data which will be written to FPGA board.
Return Value:
Return
true
if write data is successful; otherwise
false
is returned.
PCIE_Read8
Function:
Read an 8-bit data from the FPGA board.
Prototype:
bool PCIE_Read8(
PCIE_HANDLE hPCIE,
PCIE_BAR PcieBar,
PCIE_ADDRESS PcieAddress,
uint8_t *pByte);
Parameters:
hPCIE:
A PCIe handle return by PCIE_Open function.
PcieBar:
Specify the target BAR.
PcieAddress:
Specify the target address in FPGA.
pByte:
A buffer to retrieve the 8-bit data.
Return Value:
Return
true
if read data is successful; otherwise
false
is returned.