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§
Sourcefn compute_crc(value: u16) -> u16
fn compute_crc(value: u16) -> u16
Computes the 4-bit CRC for the upper 12 bits of the frame.
Sourcefn is_inverted() -> bool
fn is_inverted() -> bool
Returns true if the signal is inverted (bidirectional mode).
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.