HF-MAX22200 Driver 0.1.0-dev
HF-MAX22200 C++ Driver
Loading...
Searching...
No Matches
Check

Get last fault flags byte received from Command Register write.

Get last fault flags byte received from Command Register writeEvery time the Command Register is written (Phase 1 of SPI protocol), the device responds with STATUS[7:0] (Fault Flag Byte) on SDO. This method returns the most recent value received.

Returns
STATUS[7:0] byte from last Command Register write
Note
Check for communication error: return value = 0x04 (COMER flag)
This byte contains: OVT, OCP, OLF, HHF, DPM, COMER, UVM, ACTIVE bits

for communication error:

uint8_t fault_byte = driver.GetLastFaultByte();
if (fault_byte == 0x04) {
// Communication error detected
}