|
HF-MAX22200 Driver 0.1.0-dev
HF-MAX22200 C++ Driver
|
STATUS register structure. More...
#include <max22200_types.hpp>
Public Attributes | |
| uint8_t | channels_on_mask |
| bool | overtemperature_masked |
| OVT fault mask; when true OVT does not assert FAULT pin. | |
| bool | overcurrent_masked |
| OCP fault mask; when true OCP does not assert FAULT pin. | |
| bool | open_load_fault_masked |
| OLF fault mask; when true OLF does not assert FAULT pin. | |
| bool | hit_not_reached_masked |
| HHF fault mask; when true HHF does not assert FAULT pin. | |
| bool | plunger_movement_fault_masked |
| DPM fault mask; when true DPM does not assert FAULT pin. | |
| bool | communication_error_masked |
| COMER mask (default=true); when true COMER does not assert FAULT pin. | |
| bool | undervoltage_masked |
| UVM fault mask; when true UVM does not assert FAULT pin. | |
| bool | master_clock_80khz |
| Master clock base (false=100kHz, true=80kHz); affects fCHOP. | |
| ChannelMode | channel_pair_mode_76 |
| CH6/CH7 pair mode; change only when both CH6 and CH7 are OFF. | |
| ChannelMode | channel_pair_mode_54 |
| CH4/CH5 pair mode. | |
| ChannelMode | channel_pair_mode_32 |
| CH2/CH3 pair mode. | |
| ChannelMode | channel_pair_mode_10 |
| CH0/CH1 pair mode. | |
| bool | active |
| Global enable (0=low-power, 1=normal); set to 1 during init. | |
| bool | overtemperature |
| OVT fault flag (read-only); die over temp. | |
| bool | overcurrent |
| OCP fault flag (read-only); output exceeded OCP level. | |
| bool | open_load_fault |
| OLF fault flag (read-only); load disconnected if OL enabled. | |
| bool | hit_not_reached |
| HHF fault flag (read-only); IHIT not reached by end of tHIT. | |
| bool | plunger_movement_fault |
| DPM fault flag (read-only); no valid plunger movement. | |
| bool | communication_error |
| COMER flag (read-only); SPI error detected. | |
| bool | undervoltage |
| UVM fault flag (read-only); clear by reading STATUS at init. | |
STATUS register structure.
Maps directly to the 32-bit STATUS register (0x00). Contains channel activation, hardware configuration, fault masks, fault flags, and the global ACTIVE bit.
| Byte | Bits | Field | Description |
|---|---|---|---|
| 3 | 31:24 | ONCH[7:0] | Channel on/off bits (1=on, 0=off) |
| 2 | 23:16 | M_OVT, M_OCP, etc. | Fault mask bits + FREQM |
| 1 | 15:8 | CM76, CM54, etc. | Channel-pair mode configuration |
| 0 | 7:0 | OVT, OCP, etc. | Fault flags (read-only) + ACTIVE |
|
inline |
Default constructor.
|
inline |
Parse a 32-bit register value.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Check if any fault flag is active.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Build 32-bit register value from writable fields.
| bool max22200::StatusConfig::active |
Global enable (0=low-power, 1=normal); set to 1 during init.
| ChannelMode max22200::StatusConfig::channel_pair_mode_10 |
CH0/CH1 pair mode.
| ChannelMode max22200::StatusConfig::channel_pair_mode_32 |
CH2/CH3 pair mode.
| ChannelMode max22200::StatusConfig::channel_pair_mode_54 |
CH4/CH5 pair mode.
| ChannelMode max22200::StatusConfig::channel_pair_mode_76 |
CH6/CH7 pair mode; change only when both CH6 and CH7 are OFF.
| uint8_t max22200::StatusConfig::channels_on_mask |
Channel on/off bitmask (bit N = channel N) Can be updated with fast 8-bit write to STATUS[31:24] For channels with trigger_from_pin=true, ONCH bit is ignored (TRIG pin controls)
| bool max22200::StatusConfig::communication_error |
COMER flag (read-only); SPI error detected.
| bool max22200::StatusConfig::communication_error_masked |
COMER mask (default=true); when true COMER does not assert FAULT pin.
| bool max22200::StatusConfig::hit_not_reached |
HHF fault flag (read-only); IHIT not reached by end of tHIT.
| bool max22200::StatusConfig::hit_not_reached_masked |
HHF fault mask; when true HHF does not assert FAULT pin.
| bool max22200::StatusConfig::master_clock_80khz |
Master clock base (false=100kHz, true=80kHz); affects fCHOP.
| bool max22200::StatusConfig::open_load_fault |
OLF fault flag (read-only); load disconnected if OL enabled.
| bool max22200::StatusConfig::open_load_fault_masked |
OLF fault mask; when true OLF does not assert FAULT pin.
| bool max22200::StatusConfig::overcurrent |
OCP fault flag (read-only); output exceeded OCP level.
| bool max22200::StatusConfig::overcurrent_masked |
OCP fault mask; when true OCP does not assert FAULT pin.
| bool max22200::StatusConfig::overtemperature |
OVT fault flag (read-only); die over temp.
| bool max22200::StatusConfig::overtemperature_masked |
OVT fault mask; when true OVT does not assert FAULT pin.
| bool max22200::StatusConfig::plunger_movement_fault |
DPM fault flag (read-only); no valid plunger movement.
| bool max22200::StatusConfig::plunger_movement_fault_masked |
DPM fault mask; when true DPM does not assert FAULT pin.
| bool max22200::StatusConfig::undervoltage |
UVM fault flag (read-only); clear by reading STATUS at init.
| bool max22200::StatusConfig::undervoltage_masked |
UVM fault mask; when true UVM does not assert FAULT pin.