DshotProtocol

Trait DshotProtocol 

Source
pub trait DshotProtocol {
    // Required methods
    fn compute_crc(value: u16) -> u16;
    fn is_inverted() -> bool;
    fn get_translated_throttle(speed: u16) -> u16;
}
Expand description

Defines the behavior of a DShot protocol variant.

Required Methods§

Source

fn compute_crc(value: u16) -> u16

Computes the 4-bit CRC for the upper 12 bits of the frame.

Source

fn is_inverted() -> bool

Returns true if the signal is inverted (bidirectional mode).

Source

fn get_translated_throttle(speed: u16) -> u16

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§