pub enum DshotCommand {
Show 37 variants
MotorStop = 0,
Beep1 = 1,
Beep2 = 2,
Beep3 = 3,
Beep4 = 4,
Beep5 = 5,
EscInfo = 6,
SpinDirection1 = 7,
SpinDirection2 = 8,
ThreeDModeOn = 9,
ThreeDModeOff = 10,
SettingsRequest = 11,
SettingsSave = 12,
ExtendedTelemetryEnable = 13,
ExtendedTelemetryDisable = 14,
SpinDirectionNormal = 20,
SpinDirectionReversed = 21,
Led0On = 22,
Led1On = 23,
Led2On = 24,
Led3On = 25,
Led0Off = 26,
Led1Off = 27,
Led2Off = 28,
Led3Off = 29,
AudioStreamModeToggle = 30,
SilentModeToggle = 31,
SignalLineTelemetryEnable = 32,
SignalLineTelemetryDisable = 33,
SignalLineContinuousErpmTelemetry = 34,
SignalLineContinuousErpmPeriodTelemetry = 35,
SignalLineTemperatureTelemetry = 42,
SignalLineVoltageTelemetry = 43,
SignalLineCurrentTelemetry = 44,
SignalLineConsumptionTelemetry = 45,
SignalLineErpmTelemetry = 46,
SignalLineErpmPeriodTelemetry = 47,
}Variants§
MotorStop = 0
Beep1 = 1
Wait at least 260ms before next command.
Beep2 = 2
Wait at least 260ms before next command.
Beep3 = 3
Wait at least 260ms before next command.
Beep4 = 4
Wait at least 260ms before next command.
Beep5 = 5
Wait at least 260ms before next command.
EscInfo = 6
Wait at least 12ms before next command.
SpinDirection1 = 7
Needs 6 transmissions.
SpinDirection2 = 8
Needs 6 transmissions.
ThreeDModeOn = 9
Needs 6 transmissions.
ThreeDModeOff = 10
Needs 6 transmissions.
SettingsRequest = 11
SettingsSave = 12
Needs 6 transmissions. Wait at least 35ms before next command.
ExtendedTelemetryEnable = 13
Needs 6 transmissions.
ExtendedTelemetryDisable = 14
Needs 6 transmissions.
SpinDirectionNormal = 20
Needs 6 transmissions.
SpinDirectionReversed = 21
Needs 6 transmissions.
Led0On = 22
Led1On = 23
Led2On = 24
Led3On = 25
Led0Off = 26
Led1Off = 27
Led2Off = 28
Led3Off = 29
AudioStreamModeToggle = 30
SilentModeToggle = 31
SignalLineTelemetryEnable = 32
Needs 6 transmissions. Enables individual signal line commands.
SignalLineTelemetryDisable = 33
Needs 6 transmissions. Disables individual signal line commands.
SignalLineContinuousErpmTelemetry = 34
Needs 6 transmissions. Enables individual signal line commands.
SignalLineContinuousErpmPeriodTelemetry = 35
Needs 6 transmissions. Enables individual signal line commands.
SignalLineTemperatureTelemetry = 42
Temperature: 1ºC per LSB.
SignalLineVoltageTelemetry = 43
Voltage: 10mV per LSB, 40.95V max.
SignalLineCurrentTelemetry = 44
Current: 100mA per LSB, 409.5A max.
SignalLineConsumptionTelemetry = 45
Power: 10mAh per LSB, 40.95Ah max.
SignalLineErpmTelemetry = 46
erpm: 100erpm per LSB, 409500erpm max.
SignalLineErpmPeriodTelemetry = 47
16us per LSB, 65520us max.
Implementations§
Source§impl DshotCommand
impl DshotCommand
Source§impl DshotCommand
impl DshotCommand
pub const fn repetitions_required(self) -> u8
pub const fn delay_required_us(self) -> u32
Trait Implementations§
Source§impl Clone for DshotCommand
impl Clone for DshotCommand
Source§fn clone(&self) -> DshotCommand
fn clone(&self) -> DshotCommand
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for DshotCommand
Source§impl Debug for DshotCommand
impl Debug for DshotCommand
Source§impl Default for DshotCommand
impl Default for DshotCommand
Source§fn default() -> DshotCommand
fn default() -> DshotCommand
impl Eq for DshotCommand
Source§impl PartialEq for DshotCommand
impl PartialEq for DshotCommand
impl StructuralPartialEq for DshotCommand
Source§impl TryFrom<u8> for DshotCommand
impl TryFrom<u8> for DshotCommand
Source§fn try_from(value: u8) -> Result<Self, DshotError>
fn try_from(value: u8) -> Result<Self, DshotError>
Validating conversion from u8 to Command. Invalid values return error.