1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

fpga: use snake case for low_latency_mode

Signed-off-by: Niklas Eiling <niklas.eiling@eonerc.rwth-aachen.de>
This commit is contained in:
Niklas Eiling 2024-05-28 09:38:39 +02:00 committed by pipeacosta
parent 8320e4f7c3
commit 6180e1019d

View file

@ -118,10 +118,10 @@ int FpgaNode::parse(json_t *json) {
vfioContainer = std::make_shared<kernel::vfio::Container>();
}
ret =
json_unpack_ex(json, &err, 0, "{ s: o, s?: o, s?: b, s?: b, s?: f}",
ret = json_unpack_ex(json, &err, 0, "{ s: o, s?: o, s?: b, s?: b, s?: f}",
"card", &jsonCard, "connect", &jsonConnectStrings,
"lowLatencyMode", &lowLatencyMode, "timestep", &timestep);
"low_latency_mode", &lowLatencyMode, "timestep",
&timestep);
if (ret) {
throw ConfigError(json, err, "node-config-fpga",
"Failed to parse configuration of node {}",
@ -225,6 +225,7 @@ int FpgaNode::fastWrite(Sample *smps[], unsigned cnt) {
mem[i] = smp->data[i].i;
}
}
dma->writeScatterGatherFast();
auto written = dma->writeScatterGatherPoll() /
sizeof(float); // The number of samples written