HF-MAX22200 Driver 0.1.0-dev
HF-MAX22200 C++ Driver
Loading...
Searching...
No Matches
Enable

Enable or disable DPM (plunger movement detection) on selected channels.

Enable or disable DPM (plunger movement detection) on selected channelsReads each channel's config, sets or clears the DPM_EN bit according to channel_mask, and writes the config back. All other channel settings are unchanged. DPM algorithm parameters (start current, debounce, threshold) are global and set via ConfigureDpm() or WriteDpmConfig().

Parameters
channel_maskBit N = 1 to enable DPM on channel N, 0 to disable (channels 0–7).
Returns
DriverStatus::OK if all selected channels updated successfully.

DPM on channels 0, 2, and 5:

driver.SetDpmEnabledChannels((1u << 0) | (1u << 2) | (1u << 5));