Add FFI Functions for Clamp Control
close #2547
Let's do your usual appraoch here where Luke/Tim can test the FFI functions before we write the tests.
If the current clamp mode for the headstage in MIES is different from the specific calmp mode of an amplifier setting (e.g. auto bridge balance that applies only to IC) then it is ignored by MIES.
I gave this a try today:
- I need a way to get the state of the clamp for any mode, not just the currently active mode. I suggest always returning all fields for both modes regardless of the current clamp mode (much simpler, but is there a cost to assembling these structures?). Alternatively, add a
modeargument to FFI_GetClampState that can optionally be -1 to request the current mode. - missing GetHeadstageActive (or is there another way to get this?)
- missing SetHoldingPotentialEnable and SetBiasCurrentEnable
If the current clamp mode for the headstage in MIES is different from the specific calmp mode of an amplifier setting (e.g. auto bridge balance that applies only to IC) then it is ignored by MIES.
That makes sense for any of the TriggerAuto* functions, but all other parameters I would expect to be settable even when the mode is not active (for example, I should be able to set the auto bias parameters before switching to IC)