#[allow(unused_imports)]
use crate::TicBase;
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
pub enum OperationState {
Reset = 0,
Deenergized = 2,
SoftError = 4,
WaitingForErrLine = 6,
StartingUp = 8,
Normal = 10,
}
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum PlanningMode {
Off = 0,
TargetPosition = 1,
TargetVelocity = 2,
}
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
pub enum ResetCause {
PowerUp = 0,
Brownout = 1,
ResetLine = 2,
Watchdog = 4,
Software = 8,
StackOverflow = 16,
StackUnderflow = 32,
}
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
pub enum DecayMode {
Mixed = 0,
Slow = 1,
Fast = 2,
Mixed25 = 3,
Mixed75 = 4,
}
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum StepMode {
Full = 0,
Half = 1,
Microstep4 = 2,
Microstep8 = 3,
Microstep16 = 4,
Microstep32 = 5,
Microstep2_100p = 6,
Microstep64 = 7,
Microstep128 = 8,
Microstep256 = 9,
}
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum AgcMode {
Off = 0,
On = 1,
ActiveOff = 2,
}
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum AgcBottomCurrentLimit {
P45 = 0,
P50 = 1,
P55 = 2,
P60 = 3,
P65 = 4,
P70 = 5,
P75 = 6,
P80 = 7,
}
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
pub enum AgcCurrentBoostSteps {
S5 = 0,
S7 = 1,
S9 = 2,
S11 = 3,
}
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum AgcFrequencyLimit {
Off = 0,
F225Hz = 1,
F450Hz = 2,
F675Hz = 3,
}
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum ControlPin {
SCL = 0,
SDA = 1,
TX = 2,
RX = 3,
RC = 4,
}
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum PinState {
HighImpedance = 0,
InputPullUp = 1,
OutputLow = 2,
OutputHigh = 3,
}
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
pub enum InputState {
NotReady = 0,
Invalid = 1,
Halt = 2,
Position = 3,
Velocity = 4,
}
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
#[non_exhaustive]
pub enum Flags {
Energized = 0,
PositionUncertain = 1,
ForwardLimitActive = 2,
ReverseLimitActive = 3,
HomingActive = 4,
}
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum MotorDriverError {
None = 0,
OverCurrent = 1,
OverTemperature = 2,
}
#[derive(FromPrimitive, ToPrimitive, Debug, PartialEq, Eq)]
#[allow(missing_docs)]
pub enum HpDriverError {
OverTemperature = 0,
OverCurrentA = 1,
OverCurrentB = 2,
PreDriverFaultA = 3,
PreDriverFaultB = 4,
UnderVoltage = 5,
Verify = 7,
}