pub trait DshotProtocol {
// Required methods
fn compute_crc(value: u16) -> u16;
fn is_inverted() -> bool;
}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).
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.