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.

The address of the register with which this state is associated.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Feeds this value into the given Hasher.

Feeds a slice of this type into the given Hasher.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Formats the value using the given formatter

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.