I don't think you want to use absolute value here. We need to know positive vs. negative. And we probably should swap order (should be out - in). e.g. if target delta pressure is zero, a negative delta (out - in) would tell us that the RO pump is pulling water faster than the drain pump is pushing (creating a vacuum between them) and we would want the drain pump to speed up. And if delta is positive, that means the drain pump is pushing water faster than the RO pump (creating a pressure build up between them) and we would want the drain pump to slow down.
The mL to L is only used in ultrafiltration and only for volume and only for display on screen. it wasn't worth including utility class here which costs more code and build time only for a division/multiplication. comment will suffice.
This was part of SystemCommMessages.c which has not been updated to new Doxygen format. I think these structures will be moved eventually to their respective module header files and this header file will go away.
I would think this alarm would be triggered generally by driver because current mode said we shouldn't see syringe yet. Can we just set stopPump to TRUE here and nothing else?
This is the TI copyright that we got these API files originally. Yes, they are different from the other TI files that are generated by HALCoGen but they are still TI files and not ours. When I was working on the copyright script, I realized the script did not realize they are not our files and added our copyright. I enhanced the algorithm that checks whether a file belongs to Diality or not, so this issue will not happen. At the same time, I removed the Diality copyright. I am not sure why there is a "?" in their copyright that does not affect the script's parsing capabilities.