pub struct Control1Reg(pub u8);Tuple Fields§
§0: u8Implementations§
Source§impl Control1Reg
impl Control1Reg
Sourcepub fn startup_boost(&self) -> bool
pub fn startup_boost(&self) -> bool
This bit applies higher loop gain during overdrive to enhance actuator transient response.
Sourcepub fn ac_couple(&self) -> bool
pub fn ac_couple(&self) -> bool
This bit applies a 0.9-V common mode voltage to the IN/TRIG pin when an AC- coupling capacitor is used. This bit is only useful for analog input mode. This bit should not be asserted for PWM mode or external trigger mode. 0: Common-mode drive disabled for DC-coupling or digital inputs modes 1: Common-mode drive enabled for AC coupling
Sourcepub fn drive_time(&self) -> u8
pub fn drive_time(&self) -> u8
LRA Mode: Sets initial guess for LRA drive-time in LRA mode. Drive time is automatically adjusted for optimum drive in real time; however, this register should be optimized for the approximate LRA frequency. If the bit is set too low, it can affect the actuator startup time. If it is set too high, it can cause instability. Optimum drive time (ms) ≈ 0.5 × LRA Period Drive time (ms) = DRIVE_TIME[4:0] × 0.1 ms + 0.5 ms ERM Mode: Sets the sample rate for the back-EMF detection. Lower drive times cause higher peak-to-average ratios in the output signal, requiring more supply headroom. Higher drive times cause the feedback to react at a slower rate. Drive Time (ms) = DRIVE_TIME[4:0] × 0.2 ms + 1 ms
Sourcepub fn set_startup_boost(&mut self, value: bool)
pub fn set_startup_boost(&mut self, value: bool)
This bit applies higher loop gain during overdrive to enhance actuator transient response.
Sourcepub fn set_ac_couple(&mut self, value: bool)
pub fn set_ac_couple(&mut self, value: bool)
This bit applies a 0.9-V common mode voltage to the IN/TRIG pin when an AC- coupling capacitor is used. This bit is only useful for analog input mode. This bit should not be asserted for PWM mode or external trigger mode. 0: Common-mode drive disabled for DC-coupling or digital inputs modes 1: Common-mode drive enabled for AC coupling
Sourcepub fn set_drive_time(&mut self, value: u8)
pub fn set_drive_time(&mut self, value: u8)
LRA Mode: Sets initial guess for LRA drive-time in LRA mode. Drive time is automatically adjusted for optimum drive in real time; however, this register should be optimized for the approximate LRA frequency. If the bit is set too low, it can affect the actuator startup time. If it is set too high, it can cause instability. Optimum drive time (ms) ≈ 0.5 × LRA Period Drive time (ms) = DRIVE_TIME[4:0] × 0.1 ms + 0.5 ms ERM Mode: Sets the sample rate for the back-EMF detection. Lower drive times cause higher peak-to-average ratios in the output signal, requiring more supply headroom. Higher drive times cause the feedback to react at a slower rate. Drive Time (ms) = DRIVE_TIME[4:0] × 0.2 ms + 1 ms