|
HF-MAX22200 Driver 0.1.0-dev
HF-MAX22200 C++ Driver
|
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. | |
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.
| 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 |
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.
DPM bitmask.
DPM bit shift (bits 7:0)
HHF bitmask.
HHF bit shift (bits 23:16)
OCP bitmask.
OCP bit shift (bits 31:24)
OLF bitmask.
OLF bit shift (bits 15:8)