pub struct StatusReg(pub u8);Tuple Fields§
§0: u8Implementations§
Source§impl StatusReg
impl StatusReg
Sourcepub fn oc_detected(&self) -> bool
pub fn oc_detected(&self) -> bool
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
Sourcepub fn over_temp(&self) -> bool
pub fn over_temp(&self) -> bool
Latching overtemperature detection flag. If the device becomes too hot, it shuts down. This bit clears upon read.
Sourcepub fn feedback_controller_timed_out(&self) -> bool
pub fn feedback_controller_timed_out(&self) -> bool
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.
Sourcepub fn diagnostic_result(&self) -> bool
pub fn diagnostic_result(&self) -> bool
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.
Sourcepub fn device_id(&self) -> u8
pub fn device_id(&self) -> u8
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)