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

FAULT register bit field definitions. More...

Variables

constexpr uint32_t OCP_SHIFT = 24
 OCP bit shift (bits 31:24)
 
constexpr uint32_t OCP_MASK = 0xFF000000u
 OCP bitmask.
 
constexpr uint32_t HHF_SHIFT = 16
 HHF bit shift (bits 23:16)
 
constexpr uint32_t HHF_MASK = 0x00FF0000u
 HHF bitmask.
 
constexpr uint32_t OLF_SHIFT = 8
 OLF bit shift (bits 15:8)
 
constexpr uint32_t OLF_MASK = 0x0000FF00u
 OLF bitmask.
 
constexpr uint32_t DPM_SHIFT = 0
 DPM bit shift (bits 7:0)
 
constexpr uint32_t DPM_MASK = 0x000000FFu
 DPM bitmask.
 

Detailed Description

FAULT register bit field definitions.

The FAULT register is 32-bit, read-only, and contains per-channel fault flags. Each fault type has an 8-bit field where bit N corresponds to channel N.

Register Layout

Byte Bits Field Description
3 31:24 OCP[7:0] Per-channel overcurrent flags
2 23:16 HHF[7:0] Per-channel HIT not reached flags
1 15:8 OLF[7:0] Per-channel open-load flags
0 7:0 DPM[7:0] Per-channel plunger movement flags

Clearing Fault Flags

MAX22200: Reading the FAULT register clears all fault flags simultaneously.

MAX22200A (recommended): Selective clear on read. To clear a specific fault bit, read the FAULT register while keeping the corresponding SDI bit HIGH for the channel(s) to clear. Only the bits corresponding to HIGH SDI bits are cleared.

Note
Channel 0 corresponds to the LSB (bit 0) of each fault byte.
Reading the FAULT register also deasserts the nFAULT pin (if no other faults are active).

Variable Documentation

◆ DPM_MASK

constexpr uint32_t max22200::FaultReg::DPM_MASK = 0x000000FFu
constexpr

◆ DPM_SHIFT

◆ HHF_MASK

constexpr uint32_t max22200::FaultReg::HHF_MASK = 0x00FF0000u
constexpr

◆ HHF_SHIFT

◆ OCP_MASK

constexpr uint32_t max22200::FaultReg::OCP_MASK = 0xFF000000u
constexpr

◆ OCP_SHIFT

◆ OLF_MASK

constexpr uint32_t max22200::FaultReg::OLF_MASK = 0x0000FF00u
constexpr

◆ OLF_SHIFT