PCIe driver: add functions to load/save internal packet generator memory

This commit is contained in:
2023-09-06 09:19:39 +02:00
parent caf950f99f
commit 7904a03e4b
8 changed files with 90 additions and 6 deletions
+6
View File
@@ -201,3 +201,9 @@ std::string PCIExpressDevice::GetIPv4Address() const {
"Failed getting MAC address", errno);
return IPv4AddressToStr(tmp);
}
void PCIExpressDevice::HW_ReadInternalPacketGen(uint16_t *tmp) const {
if (ioctl(fd, IOCTL_JFJOCH_GET_INT_PKT, tmp) != 0)
throw JFJochException(JFJochExceptionCategory::PCIeError,
"Failed getting internal packet generator frame", errno);
}