Enum tmc2209::reg::State [−][src]
pub enum State {}Show variants
GCONF(GCONF), GSTAT(GSTAT), IFCNT(IFCNT), SLAVECONF(SLAVECONF), OTP_PROG(OTP_PROG), OTP_READ(OTP_READ), IOIN(IOIN), FACTORY_CONF(FACTORY_CONF), IHOLD_IRUN(IHOLD_IRUN), TPOWERDOWN(TPOWERDOWN), TSTEP(TSTEP), TPWMTHRS(TPWMTHRS), VACTUAL(VACTUAL), TCOOLTHRS(TCOOLTHRS), SGTHRS(SGTHRS), SG_RESULT(SG_RESULT), COOLCONF(COOLCONF), MSCNT(MSCNT), MSCURACT(MSCURACT), CHOPCONF(CHOPCONF), DRV_STATUS(DRV_STATUS), PWMCONF(PWMCONF), PWM_SCALE(PWM_SCALE), PWM_AUTO(PWM_AUTO),
Expand description
A dynamic representation of a register’s 32-bit state.
Variants
GCONF(GCONF)
GSTAT(GSTAT)
IFCNT(IFCNT)
SLAVECONF(SLAVECONF)
OTP_PROG(OTP_PROG)
OTP_READ(OTP_READ)
IOIN(IOIN)
FACTORY_CONF(FACTORY_CONF)
IHOLD_IRUN(IHOLD_IRUN)
TPOWERDOWN(TPOWERDOWN)
TSTEP(TSTEP)
TPWMTHRS(TPWMTHRS)
VACTUAL(VACTUAL)
TCOOLTHRS(TCOOLTHRS)
SGTHRS(SGTHRS)
SG_RESULT(SG_RESULT)
COOLCONF(COOLCONF)
MSCNT(MSCNT)
MSCURACT(MSCURACT)
CHOPCONF(CHOPCONF)
DRV_STATUS(DRV_STATUS)
PWMCONF(PWMCONF)
PWM_SCALE(PWM_SCALE)
PWM_AUTO(PWM_AUTO)
Implementations
Construct a register state from its address and data represented as a u32
.
Construct the default register state associated with the given address.
Attempt to retrieve a reference to a register of type R
from the dynamic register
State
representation.
Returns an Err
if the register type does not match.
Attempt to retrieve a mutable reference to a register of type R
from the dynamic
register State
representation.
Returns an Err
if the register type does not match.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.