Replace logic with a temp parameter (call it whatever you like) and then use that parameter in the function call. This will make the code a lot more legible.
Replace logic with a temp parameter (call it whatever you like) and then use that parameter in the function call. This will make the code a lot more legible.
If both of these functions are using the same constant, why do we have two functions? Use just one (unless it is planned for them to inherit different constants down the road).
If both of these functions are using the same constant, why do we have two functions? Use just one (unless it is planned for them to inherit different constants down the road).
Preferred architecture is to just set flag here and then let your state machine see the flag and change the state and command the fpga when it next executes.
Preferred architecture is to just set flag here and then let your state machine see the flag and change the state and command the fpga when it next executes.
Preferred architecture is to just set a request flag here and then let your state machine see the flag and change the state and command the FPGA action the next time it executes.
Preferred architecture is to just set a request flag here and then let your state machine see the flag and change the state and command the FPGA action the next time it executes.
One is for the Blood Leak Detector status (blood leaked or blood not leaked), and the other one is for the Blood Leak Detector state of its state machine. This is just in case we wanted to have ind...
One is for the Blood Leak Detector status (blood leaked or blood not leaked), and the other one is for the Blood Leak Detector state of its state machine. This is just in case we wanted to have independent control over these time constants.
This is more of a request to run a self test by a mode (probably pre-treatment mode), so I think boolean is appropriate to indicate request was accepted.
This is more of a request to run a self test by a mode (probably pre-treatment mode), so I think boolean is appropriate to indicate request was accepted.