MAX22200 Driver 0.1.0
API reference
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
max22200::Status Struct Reference

STATUS as read (ReadStatus()): the channels that are on and the seven flags. More...

#include <max22200_types.hpp>

Public Member Functions

constexpr bool AnyFlag () const noexcept
 

Public Attributes

uint8_t on_mask {0}
 ONCH[7:0]: bit n = channel n on.
 
bool overtemperature {false}
 OVT (cleared by this read).
 
bool overcurrent {false}
 OCP: some channel has an OCP flag in FAULT.
 
bool open_load {false}
 OLF: some channel has an OLF flag in FAULT.
 
bool hit_not_reached {false}
 HHF: some channel has an HHF flag in FAULT.
 
bool plunger {false}
 DPM: some channel has a DPM flag in FAULT.
 
bool communication {false}
 COMER: a write was ignored for its clock count.
 
bool undervoltage {false}
 UVM: VM fell below UVLO (cleared by this read).
 
bool active {false}
 ACTIVE.
 
uint32_t raw {0}
 The whole register.
 

Detailed Description

STATUS as read (ReadStatus()): the channels that are on and the seven flags.

Member Function Documentation

◆ AnyFlag()

constexpr bool max22200::Status::AnyFlag ( ) const
inlineconstexprnoexcept
Returns
true when any of the seven flags is set.

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