pub struct StatusReg(pub u8);
Latching overcurrent detection flag. If the load impedance is below
the load-impedance threshold, the device shuts down and periodically
attempts to restart until the impedance is above the threshold
Latching overtemperature detection flag. If the device becomes too hot,
it shuts down. This bit clears upon read.
Contains status for the feedback controller. This indicates when the ERM
back-EMF has been zero for more than ~10 ms in ERM mode, and
indicates when the LRA frequency tracking has lost frequency lock in LRA
mode. This bit is for debug purposes only, and may sometimes be set
under normal operation when extensive braking periods are used. This bit
will clear upon read.
This flag stores the result of the auto-calibration routine and the diagnostic
routine. The flag contains the result for whichever routine was executed
last. The flag clears upon read. Test result is not valid until the GO bit self-
clears at the end of the routine.
Auto-calibration mode:
0: Auto-calibration passed (optimum result converged)
1: Auto-calibration failed (result did not converge)
Diagnostic mode:
0: Actuator is functioning normally
1: Actuator is not present or is shorted, timing out, or giving
out–of-range back-EMF.
Device identifier. The DEVICE_ID bit indicates the part number to the user.
The user software can ascertain the device capabilities by reading this
register.
4: DRV2604 (contains RAM, does not contain licensed ROM library)
3: DRV2605 (contains licensed ROM library, does not contain RAM)
6: DRV2604L (low-voltage version of the DRV2604 device)
7: DRV2605L (low-voltage version of the DRV2605 device)
fn bit_range(&self, msb: usize, lsb: usize) -> T | |
Formats the value using the given formatter. Read more