HF-MAX22200 Driver 0.1.0-dev
HF-MAX22200 C++ Driver
Loading...
Searching...
No Matches
max22200::DpmConfig Struct Reference

DPM (Detection of Plunger Movement) algorithm configuration. More...

#include <max22200_types.hpp>

Public Member Functions

 DpmConfig ()
 
uint32_t toRegister () const
 
void fromRegister (uint32_t val)
 
uint8_t getPlungerMovementStartCurrent () const
 
uint8_t getPlungerMovementDebounceTime () const
 
uint8_t getPlungerMovementCurrentThreshold () const
 

Public Attributes

uint8_t plunger_movement_start_current
 DPM_ISTART (0-127) — starting current for dip search.
 
uint8_t plunger_movement_debounce_time
 DPM_TDEB (0-15) — min dip duration in chopping periods.
 
uint8_t plunger_movement_current_threshold
 DPM_IPTH (0-15) — min dip amplitude threshold.
 

Detailed Description

DPM (Detection of Plunger Movement) algorithm configuration.

Maps to the CFG_DPM register (0x0A). Settings are global and apply to all channels that have DPM_EN set. See datasheet "Detection of Plunger Movement Register Description (CFG_DPM)".

  • plunger_movement_start_current: Starting current for DPM (0-127). ISTART = value × (IFS/127).
  • plunger_movement_debounce_time: Debounce in chopping periods (0-15). TDEB = value / fCHOP.
  • plunger_movement_current_threshold: Current dip threshold (0-15). IPTH = value × (IFS/127).

Constructor & Destructor Documentation

◆ DpmConfig()

max22200::DpmConfig::DpmConfig ( )
inline

Member Function Documentation

◆ fromRegister()

void max22200::DpmConfig::fromRegister ( uint32_t val)
inline

◆ getPlungerMovementCurrentThreshold()

uint8_t max22200::DpmConfig::getPlungerMovementCurrentThreshold ( ) const
inline

◆ getPlungerMovementDebounceTime()

uint8_t max22200::DpmConfig::getPlungerMovementDebounceTime ( ) const
inline

◆ getPlungerMovementStartCurrent()

uint8_t max22200::DpmConfig::getPlungerMovementStartCurrent ( ) const
inline

◆ toRegister()

uint32_t max22200::DpmConfig::toRegister ( ) const
inline

Member Data Documentation

◆ plunger_movement_current_threshold

uint8_t max22200::DpmConfig::plunger_movement_current_threshold

DPM_IPTH (0-15) — min dip amplitude threshold.

Examples
/home/runner/work/hf-max22200-driver/hf-max22200-driver/inc/max22200_types.hpp.

◆ plunger_movement_debounce_time

uint8_t max22200::DpmConfig::plunger_movement_debounce_time

DPM_TDEB (0-15) — min dip duration in chopping periods.

Examples
/home/runner/work/hf-max22200-driver/hf-max22200-driver/inc/max22200_types.hpp.

◆ plunger_movement_start_current

uint8_t max22200::DpmConfig::plunger_movement_start_current

DPM_ISTART (0-127) — starting current for dip search.

Examples
/home/runner/work/hf-max22200-driver/hf-max22200-driver/inc/max22200_types.hpp.

The documentation for this struct was generated from the following file: