pub struct Control4Reg(pub u8);Tuple Fields§
§0: u8Implementations§
Source§impl Control4Reg
impl Control4Reg
Sourcepub fn auto_cal_time(&self) -> u8
pub fn auto_cal_time(&self) -> u8
This bit sets the length of the auto calibration time. The AUTO_CAL_TIME[1:0] bit should be enough time for the motor acceleration to settle when driven at the RATED_VOLTAGE[7:0] value. 0: 150 ms (minimum), 350 ms (maximum) 1: 250 ms (minimum), 450 ms (maximum) 2: 500 ms (minimum), 700 ms (maximum) 3: 1000 ms (minimum), 1200 ms (maximum)
Sourcepub fn set_auto_cal_time(&mut self, value: u8)
pub fn set_auto_cal_time(&mut self, value: u8)
This bit sets the length of the auto calibration time. The AUTO_CAL_TIME[1:0] bit should be enough time for the motor acceleration to settle when driven at the RATED_VOLTAGE[7:0] value. 0: 150 ms (minimum), 350 ms (maximum) 1: 250 ms (minimum), 450 ms (maximum) 2: 500 ms (minimum), 700 ms (maximum) 3: 1000 ms (minimum), 1200 ms (maximum)
Sourcepub fn otp_status(&self) -> bool
pub fn otp_status(&self) -> bool
OTP Memory status 0: OTP Memory has not been programmed 1: OTP Memory has been programmed
Sourcepub fn set_otp_status(&mut self, value: bool)
pub fn set_otp_status(&mut self, value: bool)
OTP Memory status 0: OTP Memory has not been programmed 1: OTP Memory has been programmed
Sourcepub fn otp_program(&self) -> bool
pub fn otp_program(&self) -> bool
This bit launches the programming process for one-time programmable (OTP) memory which programs the contents of register 0x16 through 0x1A into nonvolatile memory. This process can only be executed one time per device. See the Programming On-Chip OTP Memory section for details.
Sourcepub fn set_otp_program(&mut self, value: bool)
pub fn set_otp_program(&mut self, value: bool)
This bit launches the programming process for one-time programmable (OTP) memory which programs the contents of register 0x16 through 0x1A into nonvolatile memory. This process can only be executed one time per device. See the Programming On-Chip OTP Memory section for details.